Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleIllustrating HTTP compression with curl
$ url=http://md.incommon.org/InCommon/InCommon-metadata.xml

$ curl --verbose $url > /dev/null
*   Trying 207.75.165.125...
* Connected to md.incommon.org (140207.18275.44165.53125) port 80 (#0)
> GET /InCommon/InCommon-metadata.xml HTTP/1.1
> Host: md.incommon.org
> User-Agent: curl/7.43.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: TueFri, 0212 May 2017 1806:2015:1129 GMT
< Server: Apache
< Last-Modified: MonThu, 0111 May 2017 19:0220:1324 GMT
< ETag: "29bcdb42a03576-54e7b0fa0cbd954f447b0aaa5b"
< Accept-Ranges: bytes
< Content-Length: 4376517244053878
< Content-Type: application/samlmetadata+xml
< 
* Connection #0 to host md.incommon.org left intact

$ curl --verbose --compressed $url > /dev/null
*   Trying 207.75.165.125...
* Connected to md.incommon.org (140207.18275.44165.53125) port 80 (#0)
> GET /InCommon/InCommon-metadata.xml HTTP/1.1
> Host: md.incommon.org
> User-Agent: curl/7.43.0
> Accept: */*
> Accept-Encoding: deflate, gzip
> 
< HTTP/1.1 200 OK
< Date: TueFri, 0212 May 2017 1806:2316:4836 GMT
< Server: Apache
< Last-Modified: MonThu, 0111 May 2017 19:0220:1324 GMT
< ETag: "7fc6c9808ca7-54e7b0fa0e73154f447b0ac5af"
< Accept-Ranges: bytes
< Content-Length: 83739618424615
< Content-Encoding: gzip
< Vary: Accept-Encoding
< Content-Type: application/samlmetadata+xml
< 
* Connection #0 to host md.incommon.org left intact

...