Skip to content

Instantly share code, notes, and snippets.

@ichiban
Created February 21, 2016 08:57
Show Gist options
  • Select an option

  • Save ichiban/887fb4894532c0a44b18 to your computer and use it in GitHub Desktop.

Select an option

Save ichiban/887fb4894532c0a44b18 to your computer and use it in GitHub Desktop.
HTTPサーバの進捗(Content-Lengthが与えられてないときは0とみなすべき?)
$ ./1w
**** message begin ****
method: "GET"
uri: "/"
major: "1"
minor: "1"
field: "Host"
value: "localhost:9000"
field: "Connection"
value: "keep-alive"
field: "Cache-Control"
value: "max-age=0"
field: "Accept"
value: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
field: "Upgrade-Insecure-Requests"
value: "1"
field: "User-Agent"
value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36"
field: "Accept-Encoding"
value: "gzip, deflate, sdch"
field: "Accept-Language"
value: "en-US,en;q=0.8,ja;q=0.6"
**** header complete ****
body: "
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment