簡體   English   中英

如何在 IIS 上調試 curl?

[英]How to debug curl on IIS?

如何檢查 CURL 請求?

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

(或者也許有一種使用提琴手本身的方法,我沒有這樣做,因為如果我讓我的 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.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM