Answer the question
In order to leave comments, you need to log in
How to send a JSON array to the server with a Post request in C#?
Hello World. It is not entirely clear how to transfer such JSON arrays to the server, or rather, it is not clear how to pack them:
{
"clientKey":"dce6bcbb1a728ea8d871de6d169a2057",
"task":
{
"type":"NoCaptchaTask",
"websiteURL":"http:\/\/mywebsite.com\/recaptcha\/test.php",
"websiteKey":"6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16",
"proxyType":"http",
"proxyAddress":"8.8.8.8",
"proxyPort":8080,
"proxyLogin":"proxyLoginHere",
"proxyPassword":"proxyPasswordHere",
"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
}
}
Answer the question
In order to leave comments, you need to log in
encode to a string and send not as a url parameter or in headers, but as an http request body, google http body, usually you don’t need to add it manually to the request text, usually it is encapsulated inside libraries and their methods for post requests
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question