我正在使用PHP的函数file_get_contents()来获取URL的内容,然后我通过变量处理标头$http_response_header.
file_get_contents()
$http_response_header
现在问题是某些URL需要将一些数据发布到URL(例如,登录页面).
我怎么做?
我意识到使用stream_context我可以做到这一点,但我并不完全清楚.
谢谢.
php http http-post file-get-contents
file-get-contents ×1
http ×1
http-post ×1
php ×1