开发者

Visual Basic 2010 HTTP POST Request

开发者 https://www.devze.com 2023-01-20 10:22 出处:网络
How can I send a POST HTTP request to a server (in Visual Basic 2010) and then receive t开发者_运维问答he reply into a string.You can do this via HttpWebRequest.Just set the HttpWebRequest.Method to \

How can I send a POST HTTP request to a server (in Visual Basic 2010) and then receive t开发者_运维问答he reply into a string.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消