重叠的 HTTPS 请求?
有没有一个示例,我可以执行重叠的 HTTPS 请求,同时在返回的结果到达时获取它们。哪种语言支持线程执行此操作?
任何这样的例子将不胜感激!
谢谢。
Is there an example where I am able to do overlapping HTTPS requests while getting the returned results as they arrive. Language which supports threads to do this?
Any examples of this would be much appreciated!
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
curl
多请求功能 在这种情况下可能有用。该示例使用常规http
,但也应该适用于https
。如果您需要在数据到来时对其进行处理,请使用由CURLOPT_WRITEFUNCTION
选项。curl
multi-request functionality may be useful in this case. The example is with regularhttp
but should work withhttps
too. If you need to process data as they come, use curl's write handler functions set byCURLOPT_WRITEFUNCTION
option.