First of all, you need to send a request; but you are not doing anything like that. In this case, you need to use the class
System.Net.HttpWebRequest
, create an instance through the factory method
as you actually do:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[
^],
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[
^].
You will find some code samples in the MSDN articles referenced above.
But most important thing is: the server side should be designed to get a request and interpret it as a request for creation of a file (which is a standard HTTP file upload) or modify the file on some custom request. It works this way, no matter if you have a Web Service or a Web site on the server end. In other words, you need some server-side programming. As this is your site, you can do it, but you need some server-side scripting technology configured for your HTTP server: ASP.NET, PHP, WSGI with Python — you name it.
—SA