WebClient vs. HttpWebRequest/HttpWebResponse
Using HttpWebRequest gives you more control on the request. You can set cookies, headers, protocol, etc… In the response, you can also retrieve the cookies and headers
Using HttpWebRequest gives you more control on the request. You can set cookies, headers, protocol, etc… In the response, you can also retrieve the cookies and headers
The correct way could be: Content-Disposition: inline; filename=”myfile.txt”