Skip to content

Instantly share code, notes, and snippets.

@kysnm
Created November 27, 2016 11:13
Show Gist options
  • Save kysnm/ca5237d4ac96764b9cfe6ac1547710cf to your computer and use it in GitHub Desktop.
Save kysnm/ca5237d4ac96764b9cfe6ac1547710cf to your computer and use it in GitHub Desktop.
~ curl -i -vvv -N http://localhost:9292 --trace-ascii trace-ascii.log
Warning: --trace-ascii overrides an earlier trace/verbose option
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: WEBrick/1.3.1 (Ruby/2.3.0/2015-12-25)
Date: Sun, 27 Nov 2016 11:02:08 GMT
Connection: Keep-Alive

David
David
David
David
curl: (18) transfer closed with outstanding read data remaining
➜  ~ cat trace-ascii.log
== Info: Rebuilt URL to: http://localhost:9292/
== Info:   Trying ::1...
== Info: TCP_NODELAY set
== Info: Connected to localhost (::1) port 9292 (#0)
=> Send header, 78 bytes (0x4e)
0000: GET / HTTP/1.1
0010: Host: localhost:9292
0026: User-Agent: curl/7.51.0
003f: Accept: */*
004c:
<= Recv header, 18 bytes (0x12)
0000: HTTP/1.1 200 OK
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 47 bytes (0x2f)
0000: Server: WEBrick/1.3.1 (Ruby/2.3.0/2015-12-25)
<= Recv header, 37 bytes (0x25)
0000: Date: Sun, 27 Nov 2016 11:02:08 GMT
<= Recv header, 24 bytes (0x18)
0000: Connection: Keep-Alive
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 35 bytes (0x23)
0000: David
0007: David
000e: David
0015: David
001c: David
== Info: transfer closed with outstanding read data remaining
== Info: Curl_http_done: called premature == 1
== Info: Closing connection 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment