Instagram HTTP请求花费太长时间

时间:2019-04-20 20:41:20

标签: php http request instagram

将简单的HTTP请求发送到Instagram(例如:https://www.instagram.com/instagram/?__a=1)大约需要2-3秒,但是现在当我使用file_get_content()进行操作时,大约需要12-16秒。我想我缺少了什么。

我认为问题出在cookie中,但是我不确定应该怎么做,也许创建CURL请求?

echo file_get_content("https://www.instagram.com/instagram/?__a=1");

我希望输出在3秒内完成,但是实际的请求很长,大约需要12-16秒。

0 个答案:

没有答案
相关问题