Skip to content

Instantly share code, notes, and snippets.

@kellabyte
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save kellabyte/db163d97cff860ac4485 to your computer and use it in GitHub Desktop.

Select an option

Save kellabyte/db163d97cff860ac4485 to your computer and use it in GitHub Desktop.

HTTP Response

The HTTP response is identical on both servers so that constructing the response is equal on both.

h2o

curl -v http://server:8080/
* Hostname was NOT found in DNS cache
*   Trying 192.168.0.14...
* Connected to 192.168.0.14 (192.168.0.14) port 8080 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 192.168.0.14:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< date: Wed, 05 Nov 2014 14:36:11 GMT
* Server h2o/0.1 is not blacklisted
< server: h2o/0.1
< connection: keep-alive
< content-length: 10
< content-type: text/html
< last-modified: Tue, 04 Nov 2014 19:03:14 GMT
< etag: "545922f2-a"
<
It works!
* Connection #0 to host 192.168.0.14 left intact

Haywire

curl -v http://server:8000/
* Hostname was NOT found in DNS cache
*   Trying 192.168.0.14...
* Connected to 192.168.0.14 (192.168.0.14) port 8000 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 192.168.0.14:8000
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Haywire/master is not blacklisted
< Server: Haywire/master
< Date: Fri, 31 Aug 2011 00:31:53 GMT
< Content-Type: text/html
< Connection: Keep-Alive
< Last-Modified: Tue, 04 Nov 2014 19:03:14 GMT
< etag: 545922f2-a
< Content-Length: 12
<
It works!
* Connection #0 to host 192.168.0.14 left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment