Drkcore

12 10 2005 Tweet

Wget

-d -nvオプションでプロトコルの通信観察

wget -d -nv http://www.google.co.jp DEBUG output created by Wget 1.8.2 on linux-gnu. Caching www.google.co.jp => 66.249.89.99 66.249.89.104 Created socket 3. Releasing 0x97d8688 (new refcount 1). ---request begin--- GET / HTTP/1.0 User-Agent: Wget/1.8.2 Host: www.google.co.jp Accept: */* Connection: Keep-Alive ---request end--- HTTP/1.0 200 OK Cache-Control: private Content-Type: text/html Set-Cookie: PREF=ID=baf86144a9be5a54:TM=1129121888:LM=1129121888:S=reVdqc7erWetD6sn; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.jp cdm: 1 2 3 4 5 6 Stored cookie .google.co.jp 80 / permanent 0 Mon Jan 18 04:14:07 2038 PREF ID=baf86144a9be5a54:TM=1129121888:LM=1129121888:S=reVdqc7erWetD6sn Server: GWS/2.1 Date: Wed, 12 Oct 2005 12:58:08 GMT Connection: Close Closing fd 3 21:58:08 URL:http://www.google.co.jp/ [2255] -> "index.html" [1]

-Sオプションでヘッダー確認

wget -S http://www.google.co.jp --22:03:33-- http://www.google.co.jp/ => `index.html.1' www.google.co.jp をDNSに問いあわせています... 完了しました。 www.google.co.jp[66.249.89.104]:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 1 HTTP/1.0 200 OK 2 Cache-Control: private 3 Content-Type: text/html 4 Set-Cookie: PREF=ID=1ce3fbd22c53afbf:TM=1129122213:LM=1129122213:S=WZxpmqf7Lv35vEwc; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.co.jp 5 Server: GWS/2.1 6 Date: Wed, 12 Oct 2005 13:03:33 GMT 7 Connection: Close [ <=> ] 2,255 367.02K/s 22:03:34 (367.02 KB/s) - `index.html.1' を保存しました [2255]

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021