Skip to content

Instantly share code, notes, and snippets.

@cgansen
Created January 14, 2014 20:54
Show Gist options
  • Select an option

  • Save cgansen/8425505 to your computer and use it in GitHub Desktop.

Select an option

Save cgansen/8425505 to your computer and use it in GitHub Desktop.
$ curl -v -L -I http://wp.allowed.org
* About to connect() to wp.allowed.org port 80 (#0)
* Trying 5.12.75.108...
* connected
* Connected to wp.allowed.org (5.12.75.108) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Host: wp.allowed.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily
< Server: nginx/1.2.3
Server: nginx/1.2.3
< Date: Tue, 14 Jan 2014 20:53:09 GMT
Date: Tue, 14 Jan 2014 20:53:09 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 160
Content-Length: 160
< Connection: close
Connection: close
< Location: http://www.pinterest.com
Location: http://www.pinterest.com
<
* Closing connection #0
* Issue another request to this URL: 'http://www.pinterest.com'
* About to connect() to www.pinterest.com port 80 (#0)
* Trying 54.235.105.67...
* connected
* Connected to www.pinterest.com (54.235.105.67) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Host: www.pinterest.com
> Accept: */*
>
< HTTP/1.1 302 FOUND
HTTP/1.1 302 FOUND
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Age: 0
Age: 0
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< Date: Tue, 14 Jan 2014 20:53:12 GMT
Date: Tue, 14 Jan 2014 20:53:12 GMT
< Location: https://www.pinterest.com/
Location: https://www.pinterest.com/
< Pinterest-Breed: CORGI
Pinterest-Breed: CORGI
< Pinterest-Generated-By: ngapp-0b8a152b
Pinterest-Generated-By: ngapp-0b8a152b
< Pinterest-Version: fbe05d7
Pinterest-Version: fbe05d7
< Server: nginx
Server: nginx
< Set-Cookie: csrftoken=f1S6QTftDdh1xtlLlUYvDjnuDhB7TAyi; Domain=.pinterest.com; expires=Tue, 13-Jan-2015 20:53:12 GMT; Max-Age=31449600; Path=/
Set-Cookie: csrftoken=f1S6QTftDdh1xtlLlUYvDjnuDhB7TAyi; Domain=.pinterest.com; expires=Tue, 13-Jan-2015 20:53:12 GMT; Max-Age=31449600; Path=/
< Set-Cookie: _pinterest_sess="eJwzDPY1SDIpMAzwCfIOdzVIcwlONKvy9ndPD/W0tY8vycxNtfUN8TXxD0mu8s1KNvVNt7VVK04tLs5MsfXMSq6MzI00igr3yvULycmMygo0jgxxy4gKD6zwc3HLigpJNvYL8TX2zcrI9gTqAwBOryM+"; Domain=.pinterest.com; expires=Fri, 09-Jan-2015 20:53:12 GMT; Max-Age=31103999; Path=/
Set-Cookie: _pinterest_sess="eJwzDPY1SDIpMAzwCfIOdzVIcwlONKvy9ndPD/W0tY8vycxNtfUN8TXxD0mu8s1KNvVNt7VVK04tLs5MsfXMSq6MzI00igr3yvULycmMygo0jgxxy4gKD6zwc3HLigpJNvYL8TX2zcrI9gTqAwBOryM+"; Domain=.pinterest.com; expires=Fri, 09-Jan-2015 20:53:12 GMT; Max-Age=31103999; Path=/
< Vary: User-Agent, Cookie
Vary: User-Agent, Cookie
< Via: 1.1 varnish
Via: 1.1 varnish
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< X-Pinterest-RID: 497487478670
X-Pinterest-RID: 497487478670
< X-Varnish: 1568483067
X-Varnish: 1568483067
< Connection: keep-alive
Connection: keep-alive
<
* Connection #0 to host www.pinterest.com left intact
* Issue another request to this URL: 'https://www.pinterest.com/'
* About to connect() to www.pinterest.com port 443 (#1)
* Trying 54.235.105.67...
* connected
* Connected to www.pinterest.com (54.235.105.67) port 443 (#1)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using AES256-SHA
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Pinterest Inc; OU=Engineering; CN=*.pinterest.com
* start date: 2012-09-27 00:00:00 GMT
* expire date: 2015-10-02 12:00:00 GMT
* subjectAltName: www.pinterest.com matched
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert High Assurance CA-3
* SSL certificate verify ok.
> HEAD / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8y zlib/1.2.5
> Host: www.pinterest.com
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Age: 0
Age: 0
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< Date: Tue, 14 Jan 2014 20:53:14 GMT
Date: Tue, 14 Jan 2014 20:53:14 GMT
< Pinterest-Breed: CORGI
Pinterest-Breed: CORGI
< Pinterest-Generated-By: ngapp-efe6cfc3
Pinterest-Generated-By: ngapp-efe6cfc3
< Pinterest-Version: fbe05d7
Pinterest-Version: fbe05d7
< Server: nginx
Server: nginx
< Set-Cookie: csrftoken=NmaBtbVP5POicnxTqoJzxxWYVYZqHuKR; Domain=.pinterest.com; expires=Tue, 13-Jan-2015 20:53:14 GMT; Max-Age=31449600; Path=/
Set-Cookie: csrftoken=NmaBtbVP5POicnxTqoJzxxWYVYZqHuKR; Domain=.pinterest.com; expires=Tue, 13-Jan-2015 20:53:14 GMT; Max-Age=31449600; Path=/
< Set-Cookie: _pinterest_sess="eJxLdc7LLHAKKbF0qwgOdgrRTqqKMA/xyPBOcjOxtY8vycxNtfUN8TXxD0mu8s1KNvVztLVVK04tLs5MsfXMjcr2dQkt9zWKyvELCaz0dQk08c1yNfFzCcuJCo/K9K1yy/VzScnxDQ+s8ky3tQUAhTMjqQ=="; Domain=.pinterest.com; expires=Fri, 09-Jan-2015 20:53:14 GMT; Max-Age=31103999; Path=/
Set-Cookie: _pinterest_sess="eJxLdc7LLHAKKbF0qwgOdgrRTqqKMA/xyPBOcjOxtY8vycxNtfUN8TXxD0mu8s1KNvVztLVVK04tLs5MsfXMjcr2dQkt9zWKyvELCaz0dQk08c1yNfFzCcuJCo/K9K1yy/VzScnxDQ+s8ky3tQUAhTMjqQ=="; Domain=.pinterest.com; expires=Fri, 09-Jan-2015 20:53:14 GMT; Max-Age=31103999; Path=/
< Vary: User-Agent, Cookie, Accept-Encoding
Vary: User-Agent, Cookie, Accept-Encoding
< Via: 1.1 varnish
Via: 1.1 varnish
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< X-Pinterest-RID: 388815240890
X-Pinterest-RID: 388815240890
< X-Ua-Compatible: IE=edge
X-Ua-Compatible: IE=edge
< X-Varnish: 1712497398
X-Varnish: 1712497398
< Connection: keep-alive
Connection: keep-alive
<
* Connection #1 to host www.pinterest.com left intact
* Closing connection #0
* Closing connection #1
* SSLv3, TLS alert, Client hello (1):
@raykrueger
Copy link

Weird, that's not what it does for me. DNS Bait and switch maybe?

$ curl -v "http://wp.allowed.org" > /dev/null
* Adding handle: conn: 0x7ff88a803000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7ff88a803000) send_pipe: 1, recv_pipe: 0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to wp.allowed.org port 80 (#0)
*   Trying 5.12.75.108...
* Connected to wp.allowed.org (5.12.75.108) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: wp.allowed.org
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
* Server nginx/1.2.3 is not blacklisted
< Server: nginx/1.2.3
< Date: Tue, 14 Jan 2014 20:59:17 GMT
< Content-Type: text/html
< Content-Length: 160
< Connection: close
< Location: http://twitter.jobdeals.us/a.php?r=y
<
{ [data not shown]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment