Read the HTTP POST request of HttpWebRequest
I need to create Http POST requests and maybe a few GET requests as strings for some tests I am writing. Currently, my tests build them using a StringBuilder and hardcoded POST requests pulled out from fiddler kinda like this: var builder = new StringBuilder(); builder.Append("POST https://some.web.pg HTTP/1.1\r\n"); builder.Append("Content-Type: application/x-www-form-urlencoded\r\n"); builder.Append("Referer: https://some.referer.com\r\n"); builder.Append("Accept-Language: en-us\r\n"); builder.Append("Accept-Encoding: gzip, deflate\r\n"); builder.Append("User-Agent: Mozilla/5.0 (compatible;
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.