Skip to content

Instantly share code, notes, and snippets.

@thefloweringash
Created December 10, 2013 05:03
Show Gist options
  • Save thefloweringash/7885946 to your computer and use it in GitHub Desktop.
Save thefloweringash/7885946 to your computer and use it in GitHub Desktop.
Vodafone's "transparent" proxy is still extracting gzipped tars.
lorne@argon$ curl -vsL -o - http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz | file -
* Adding handle: conn: 0x7fd610803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fd610803a00) send_pipe: 1, recv_pipe: 0
* About to connect() to www.python.org port 80 (#0)
* Trying 82.94.164.162...
* Connected to www.python.org (82.94.164.162) port 80 (#0)
> GET /ftp/python/2.7.6/Python-2.7.6.tgz HTTP/1.1
> User-Agent: curl/7.30.0
> Host: www.python.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 10 Dec 2013 04:59:21 GMT
* Server Apache/2.2.16 (Debian) is not blacklisted
< Server: Apache/2.2.16 (Debian)
< Last-Modified: Sun, 10 Nov 2013 07:44:06 GMT
< ETag: "1748043-e0b32b-4eacdc7ac5d80"
< Accept-Ranges: bytes
< Content-Type: application/x-tar
< Via: 1.1 BC5-ACLD
< Content-Length: 65751040
< Connection: Keep-Alive
< Age: 45
<
{ [data not shown]
/dev/stdin: POSIX tar archive (GNU)
* Failed writing body (0 != 1577)
* Closing connection 0
lorne@argon$ http_proxy=10.1.0.2:3128 curl -vsL -o - http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz | file -
* About to connect() to proxy 10.1.0.2 port 3128 (#0)
* Trying 10.1.0.2...
* Adding handle: conn: 0x7fa3da003a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fa3da003a00) send_pipe: 1, recv_pipe: 0
* Connected to 10.1.0.2 (10.1.0.2) port 3128 (#0)
> GET http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz HTTP/1.1
> User-Agent: curl/7.30.0
> Host: www.python.org
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Tue, 10 Dec 2013 04:59:56 GMT
< Server: Apache/2.2.16 (Debian)
< Last-Modified: Sun, 10 Nov 2013 07:44:06 GMT
< ETag: "1748043-e0b32b-4eacdc7ac5d80"
< Accept-Ranges: bytes
< Content-Length: 14725931
< Content-Type: application/x-tar
< Content-Encoding: x-gzip
< X-Cache: MISS from localhost
< X-Cache-Lookup: MISS from localhost:8888
* HTTP/1.0 proxy connection set to keep alive!
< Proxy-Connection: keep-alive
<
{ [data not shown]
/dev/stdin: gzip compressed data, from Unix, last modified: Sun Nov 10 20:42:26 2013, max compression
* Failed writing body (0 != 2732)
* Closing connection 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment