0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Curlを使用したデバッグ方法メモ

0
Posted at

よく使いそうなものをリストアップしていく。

リクエスト時にホスト名を指定する。

$ curl -sIXGET http://*.*.*.* -H "host: example.com" --insecure

オプション

  • -s, --silent: サイレントモード。進行状況メーターやエラー メッセージを表示しない。
  • -I, --head: ヘッダーのみを取得。
  • -X, --request <method>: リクエストに使用するメソッドを変更する。デフォルトはGET。なので、-XGETは無意味らしい
  • -H, --header \<header/@file\>: 送信される情報に含める追加のヘッダーを指定する。
  • -k, --insecure: 検証ステップをスキップし、チェックせずに続行する。
  • -L, --location: Locationヘッダにより要求したページが異なるロケーションに移動した場合、新しい場所でリクエストをやり直す。
  • -S, --show-error: -s, --silentとともに使用すると、curlが失敗した場合にエラーメッセージが表示される。
  • -D, --dump-header: 受け取ったプロトコルヘッダを指定したファイルに書き込む。ヘッダーを受信しない場合、このオプションを使用すると空のファイルが作成される。

参考:DNSレコードを変更せずにカスタムドメインでのアクセスをデバッグする方法

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?