httpwebrequest 与事件 vb2008
是否可以获取httpwebrequest的事件?例如,当我发出发布请求时,那么在事件过程中,我应该按以下顺序得到类似的内容:
- 连接到网站,
- 连接到网站
- 发布
- 请求,发布请求,
- 等待响应,
- 接收响应
- ,收到响应
- 连接
- ,断开
,或者我如何实现像这样的网络请求吗?
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
- request posted
- waiting for response
- receiving response
- response received
- disconnecting
- disconnected
Or how to i implement something like this with the webrequest?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用
WebClient
类代替。本课程提供多项活动,但并非您想要的所有活动。You'll want to use the
WebClient
class instead. This class offers several events, although not all of the ones you're looking for.