hi all,
How tp send a file to any website using http protocol in vb.net windows application
Thanks,
How to send a file to any website using vb.net windows application
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted May 27, 2011, 3:39 AM EDT
Do you have all the credentials for accessing the web? Then we can !.
Posted May 27, 2011, 4:25 AM EDT
As Jagan if you have user name & password then you can the file to the sites.
For this you have to use webclient and use upload method.
string uriString = "http://yoursitename.com";
WebClient myWebClient = new WebClient();
string UploadData = "Read the file /data here";
myWebClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] byteArray = Encoding.ASCII.GetBytes(UploadData);
byte[] responseArray = myWebClient.UploadData(uriString, "POST", byteArray);
MessageBox.Show(Encoding.ASCII.GetString(responseArray));
Hope this helps you.