? on uploading file to url

scottfq

New member
Joined
Jun 18, 2004
Messages
1
Programming Experience
10+
I need to upload a text file with no headers to an https site. I have gotten the file to be posted correctly with the WebClient class, UploadFile method but it seems to automatically add headers.
I've checked the header collection right before the uploadfile command (I even tried clear and remove) but they are still added.

I also tried:
WebClient.UploadData - data is not acceptable by server
WebClient.OpenWrite/write - no errors but file doesn't show up on server side
HttpWebRequest class - use the same security credentials as the WebClient but get Unauthorized error from server.

Does anyone know how to prevent the headers from being added or of another way to post the file?? Any help?
 
Back
Top