0
如何检查CURL请求?如何在IIS上调试curl?
我的PHP脚本托管在IIS上,我想为CURL找到一些调试工具。 你能提出一些小提琴手风格的东西吗?
(或者,也许有使用小提琴手自己的方式,我没有这样做,因为如果我让我的卷曲隧道通过代理127.0.0.1它使CONNECT请求,而不是GET)
如何检查CURL请求?如何在IIS上调试curl?
我的PHP脚本托管在IIS上,我想为CURL找到一些调试工具。 你能提出一些小提琴手风格的东西吗?
(或者,也许有使用小提琴手自己的方式,我没有这样做,因为如果我让我的卷曲隧道通过代理127.0.0.1它使CONNECT请求,而不是GET)
wireshark不工作对于HTTPS而言仅用于HTTP。
你可以改变你的curl脚本来使用HTTP吗?
详细模式下使用curl -v
。
从man curl
-v/--verbose
Makes the fetching more verbose/talkative. Mostly useful for debugging. A line starting
with '>' means "header data" sent by curl, '<' means "header data" received by curl that
is hidden in normal cases, and a line starting with '*' means additional info provided by
curl.
Note that if you only want HTTP headers in the output, -i/--include might be the option
you're looking for.
If you think this option still doesn't give you enough details, consider using --trace or
--trace-ascii instead.
This option overrides previous uses of --trace-ascii or --trace.
飘渺现在是Wireshark:http://www.wireshark.org/ – 2011-06-04 14:16:24
你也许可以运行使用PHP命令行脚本,以避免IIS可能导致的问题。 – 2011-06-05 04:46:24
你想从哪个环境进行调试? – KyleWpppd 2011-06-06 16:47:04