Using .NET to Post a file to Server HttpWebRequest or WebClient
问题 Okay so here is the deal. As the question states, I'm trying to POST a file to a webserver and am having a few issues. I've tried posting this same file to the same webserver using Curl.exe and have had no issues. I've posted the flags I used with curl just incase they might point out any potential reasons why I'm having trouble with the .NET classes. curl.exe --user "myUser:myPass" --header "Content-Type: application/gzip" --data-binary "@filename.txt.gz" --cookie "data=service; data-ver=2;