相关疑难解决方法(0)

如何使用file_get_contents在PHP中发布数据?

我正在使用PHP的函数file_get_contents()来获取URL的内容,然后我通过变量处理标头$http_response_header.

现在问题是某些URL需要将一些数据发布到URL(例如,登录页面).

我怎么做?

我意识到使用stream_context我可以做到这一点,但我并不完全清楚.

谢谢.

php http http-post file-get-contents

287
推荐指数
2
解决办法
32万
查看次数

标签 统计

file-get-contents ×1

http ×1

http-post ×1

php ×1