Visual Basic 2010 HTTP POST Request
17,934
You can do this via HttpWebRequest. Just set the HttpWebRequest.Method to "POST".
For details, see the example on the MSDN page for HttpWebRequest.Method. The call to GetReponse will return a WebReponse which includes a Stream. You can then read the string information from the Stream using a StreamReader.
Author by
jSherz
Newcastle Upon Tyne developer, interesting in functional programming (Scala) & DevOps. Currently working in the NodeJS ecosystem and automating everything AWS with Terraform, Ansible & Packer.
Updated on June 11, 2022Comments
-
jSherz about 2 years
How can I send a POST HTTP request to a server (in Visual Basic 2010) and then receive the reply into a string.