开发者

httpwebrequest with events vb2008

开发者 https://www.devze.com 2023-02-20 02:50 出处:网络
Is it possibl to get events of httpwebrequest? for example whn i make a post request, then in the events procedure i should be getting something like this in the following order say

Is it possibl to get events of httpwebrequest? for example whn i make a post request, then in the events procedure i should be getting something like this in the following order say

  • connecting to website
  • connected to website
  • posting request
  • re开发者_StackOverflowquest posted
  • waiting for response
  • receiving response
  • response received
  • disconnecting
  • disconnected

Or how to i implement something like this with the webrequest?


You'll want to use the WebClient class instead. This class offers several events, although not all of the ones you're looking for.

0

精彩评论

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