Hi Guru,
I am new here. Can you please guide me on how to do the HTTPS Upload?
Thanks,
kiko_m
Printable View
Hi Guru,
I am new here. Can you please guide me on how to do the HTTPS Upload?
Thanks,
kiko_m
Gurus,
When I'm using the following:
I get the following error:Code:WebClient wc = new WebClient();
NetworkCredential nc = new NetworkCredential();
nc.UserName = _username;
nc.Password = _pwd;
wc.Credentials = nc;
wc.UploadFile("https://xxx.xxx.xxx/TEST/test.csv", "C:\\test.csv");
any ideas guys?Code:The remote server returned an error: (404) Not Found.
Error 404 is the webserver telling you that the file you requested does not exist.
if you paste...
https://xxx.xxx.xxx/TEST/test.csv
into a web browser, you should get the same error. My guess is you want something like...'
https://xxx.xxx.xxx/TEST/test.asp OR
https://xxx.xxx.xxx/TEST/test.aspx OR
https://xxx.xxx.xxx/TEST/test.html OR
https://xxx.xxx.xxx/TEST/test.php
Hi sotoasty,
Thank you for your reply.
My goal here is just to upload a plain text file in the TEST directory. That is why i used the test.csv in the wc.Upload()
So it is not actually a page that i want to open in a browser.
Thanks.
Using HTTP(s) upload, you can not upload to a directory, you can only POST to a page, so you need a page which can take this.
http://www.csharpfriends.com/Article...?articleID=115
http://articles.techrepublic.com.com...1-5109284.html