Chris,
I have the file in a byte array and want to write to a web server ! Is there any
other types of PUT's for this ?
thank you
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
Jeff Roberts wrote:
> Is it possible to write/overwrite a file on a web server with
> the HttpWebRequest Class ? I am currently using
> HttpWebRequest to read a file from a web site and need to
> know if I can also write the file, given I have permission to
> do so. I know I can't seek, but can
I've tried with PUT method (request.Method="PUT" and it works, it writes
the file to directory (if you have permisions and PUT is allowed on
server, PUT is also very fast, cause it goes through ISAPI directly to
disc).
Concerning id/pwd it you can set them in Credential property, the
usage depe
Hi!
I haven't tried this, but based on the documentation this should be
possible. You can set the Method property of HttpWebRequest to "PUT",
and specify the user name and password through the Credentials property.
Also don't forget to set the ContentLength to the size of the file.
After that you