2011-06-04 51 views
0

如何檢查CURL請求?如何在IIS上調試curl?

我的PHP腳本託管在IIS上,我想爲CURL找到一些調試工具。 你能提出一些小提琴手風格的東西嗎?

(或者,也許有使用小提琴手自己的方式,我沒有這樣做,因爲如果我讓我的捲曲隧道通過代理127.0.0.1它使CONNECT請求,而不是GET)

+0

飄渺現在是Wireshark:http://www.wireshark.org/ – 2011-06-04 14:16:24

+0

你也許可以運行使用PHP命令行腳本,以避免IIS可能導致的問題。 – 2011-06-05 04:46:24

+0

你想從哪個環境進行調試? – KyleWpppd 2011-06-06 16:47:04

回答

1

wireshark不工作對於HTTPS而言僅用於HTTP。

你可以改變你的curl腳本來使用HTTP嗎?

1

詳細模式下使用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.