简体   繁体   English

有什么比卷曲更快?

[英]What is faster than curl?

I'm trying to build out a script that creates domain API registration URLs and sends them through the appropriate API to complete the registration. 我正在尝试构建一个脚本,该脚本创建域API注册URL,并通过适当的API发送它们以完成注册。 Right now I'm using curl and each request takes roughly 2 seconds. 现在,我正在使用curl,每个请求大约需要2秒钟。 Are there faster languages or methods to doing this vs. using PHP to do the processing. 有没有比使用PHP进行处理更快的语言或方法。

I was once in a position where cURL was not an option by the constraints of the project I was working on. 由于我正在从事的项目的限制,我曾经无法使用cURL。 I learned about streams and ended up using code similar to what is in this article. 我了解了流,并最终使用了与本文类似的代码。 http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/ http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/

That is only another method, I've never compared efficiency. 那只是另一种方法,我从未比较过效率。 There is another thread on SO asking a similar question. SO上还有另一个线程在问类似的问题。 I would assume that each has its advantages in various circumstances. 我认为每种情况在各种情况下都有其优势。

Is the PHP CURL api cleaner/faster/better than using streams for HTTP/HTTPS access? 与使用流进行HTTP / HTTPS访问相比,PHP CURL api是否更干净/更快/更好?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM