Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active August 22, 2016 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjunichi/41b92f1abfaeb36fb535995021c2a92e to your computer and use it in GitHub Desktop.
Save kjunichi/41b92f1abfaeb36fb535995021c2a92e to your computer and use it in GitHub Desktop.
"POST /glsl HTTP/1.1\r\nHost: localhost:8000\r\nContent-Type: application/x-www-form-urlencoded\r\nOrigin: http://localhost:8000\r\nContent-Length: 5\r\nConnection: keep-alive\r\nAccept: */*\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7\r\nReferer: http://localhost:8000/static/index.html\r\nAccept-Language: ja-jp\r\nAccept-Encoding: gzip, deflate\r\n\r\n"
#<HTTP::Request:0x7fc074816ea0 body=nil, buf="/glsl", last_header_value="gzip, deflate", method="GET", last_header_field="Accept-Encoding", headers={"Host"=>"localhost:8000", "Content-Type"=>"application/x-www-form-urlencoded", "Origin"=>"http://localhost:8000", "Content-Length"=>"5", "Connection"=>"keep-alive", "Accept"=>"*/*", "User-Agent"=>"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7", "Referer"=>"http://localhost:8000/static/index.html", "Accept-Language"=>"ja-jp", "Accept-Encoding"=>"gzip, deflate"}>

safariでのPOST

"POST /glsl HTTP/1.1\r\nHost: localhost:8000\r\nContent-Type: application/x-www-form-urlencoded\r\nOrigin: http://localhost:8000\r\nContent-Length: 7\r\nConnection: keep-alive\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7\r\nReferer: http://localhost:8000/static/index.html\r\nAccept-Language: ja-jp\r\nAccept-Encoding: gzip, deflate\r\n\r\n"
#<HTTP::Request:0x7f86a2830720 body=nil, buf="/glsl", last_header_value="gzip, deflate", method="GET", last_header_field="Accept-Encoding", headers={"Host"=>"localhost:8000", "Content-Type"=>"application/x-www-form-urlencoded", "Origin"=>"http://localhost:8000", "Content-Length"=>"7", "Connection"=>"keep-alive", "Accept"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "User-Agent"=>"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7", "Referer"=>"http://localhost:8000/static/index.html", "Accept-Language"=>"ja-jp", "Accept-Encoding"=>"gzip, deflate"}>

FirefoxでのPOST

"POST /glsl HTTP/1.1\r\nHost: localhost:8000\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nReferer: http://localhost:8000/static/index.html\r\nCookie: __atuvc=1%7C8\r\nConnection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 7\r\n\r\np1=test"
#<HTTP::Request:0x7fc074816e70 path="/glsl", body="p1=test", method="POST", headers={"Host"=>"localhost:8000", "User-Agent"=>"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0", "Accept"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language"=>"en-US,en;q=0.5", "Accept-Encoding"=>"gzip, deflate", "Referer"=>"http://localhost:8000/static/index.html", "Cookie"=>"__atuvc=1%7C8", "Connection"=>"keep-alive", "Upgrade-Insecure-Requests"=>"1", "Content-Type"=>"application/x-www-form-urlencoded", "Content-Length"=>"7"}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment