-wget的使い方ができるツール

*基本 [#ad010bc7]

** [#a81d7963]

**応用 [#a81d7963]

-指定されたURLを標準出力に表示

 curl http://www.google.com

-リダイレクト(302)に対応したオプション。TOPページはリダイレクトを利用しているケースが多いので標準で付けておくと良い

 curl -L http://www.google.com

-認証

 crul -u ID:PW http://URL/

-ステータスコードをチェック

 curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://www.google.co.jp/


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS