Uploading to a web from windows.forms application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I need to upload files programatically from a windows.forms application to a
web server hosting my domain. the web server dosen't have asp installed this
has to be done purely from the client end without any assistance from any
programs on the server end

so my app should be able to:
1. open a connection to the site
2. transfer a file fromt he client to a certain directory on the site
3. cloes the connection to complete with no fuss.

thanks,
--Zacho
 
i think this shoud do what i want, i can at least download, i tested it and
it works wonderfully.

about uploading, I have 2 more questions.
the "uploadfile" function has a "method" argument, how many/which types of
methods are there?

I used the "POST" method in my test. When uploading I got a response "method
not allowed" how do i tell my domain that a certain folder in the web should
allow uploading with the post method? Or am i required to pass a username and
password arguments somewhere/ somehow?

I would prefer that the uploading is password protected.

My domain is hosted on an apache server, if that makes a difference.

alrite, i rated your post!
thanks.

will someone pleas answer my other two questions regarding the usage of the
"uploadfile" function?

regards...Zacho
 
Back
Top