C# WebClient - Getting an HTML from URI instead of CSV -


i'm trying csv file following uri using c# webclient.

var copuri ="http://obieebr.banrep.gov.co/analytics/saw.dll?go&path=%2fshared%2fseries%20estad%c3%adsticas_t%2f1.%20ibr%2f1.1.ibr_csv_xml_ultimos_datos&download_type=csv&nquser=publico&nqpassword=publico" var client = new webclient(); var content = client.downloadstring(copuri); 

when try in browser csv file, above code returning authentication html file instead. how past html response csv file?

you have pass authorization credentials uri.

server rejected request due un-authenticate activity.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -