Skip to content

Instantly share code, notes, and snippets.

@karupanerura
Created April 28, 2014 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karupanerura/11361126 to your computer and use it in GitHub Desktop.
Save karupanerura/11361126 to your computer and use it in GitHub Desktop.
bash-4.1# curl -L http://cpanmin.us
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
bash-4.1# curl -vvvv -L http://cpanmin.us
* About to connect() to cpanmin.us port 80 (#0)
* Trying 202.181.96.213... connected
* Connected to cpanmin.us (202.181.96.213) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: cpanmin.us
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: nginx/1.2.7
< Date: Mon, 28 Apr 2014 03:31:59 GMT
< Content-Type: text/html; charset=iso-8859-1
< Transfer-Encoding: chunked
< Connection: keep-alive
< Location: https://raw.github.com/miyagawa/cpanminus/master/cpanm
<
* Ignoring the response-body
* Connection #0 to host cpanmin.us left intact
* Issue another request to this URL: 'https://raw.github.com/miyagawa/cpanminus/master/cpanm'
* About to connect() to raw.github.com port 443 (#1)
* Trying 103.245.222.133... connected
* Connected to raw.github.com (103.245.222.133) port 443 (#1)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using SSL_RSA_WITH_RC4_128_SHA
* Server certificate:
* subject: CN=www.github.com,O="Fastly, Inc.",L=San Francisco,ST=California,C=US
* start date: Feb 25 00:00:00 2014 GMT
* expire date: Mar 02 12:00:00 2015 GMT
* common name: www.github.com
* issuer: CN=DigiCert High Assurance CA-3,OU=www.digicert.com,O=DigiCert Inc,C=US
> GET /miyagawa/cpanminus/master/cpanm HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: raw.github.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Mon, 28 Apr 2014 03:31:59 GMT
< Server: Apache
< Location: https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm
< Content-Length: 0
< Accept-Ranges: bytes
< Via: 1.1 varnish
< Age: 0
< X-Served-By: cache-ty66-TYO
< X-Cache: MISS
< X-Cache-Hits: 0
< Vary: Accept-Encoding
<
* Connection #1 to host raw.github.com left intact
* Issue another request to this URL: 'https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm'
* About to connect() to raw.githubusercontent.com port 443 (#2)
* Trying 103.245.222.133... connected
* Connected to raw.githubusercontent.com (103.245.222.133) port 443 (#2)
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using SSL_RSA_WITH_RC4_128_SHA
* Server certificate:
* subject: CN=www.github.com,O="Fastly, Inc.",L=San Francisco,ST=California,C=US
* start date: Feb 25 00:00:00 2014 GMT
* expire date: Mar 02 12:00:00 2015 GMT
* common name: www.github.com
* issuer: CN=DigiCert High Assurance CA-3,OU=www.digicert.com,O=DigiCert Inc,C=US
> GET /miyagawa/cpanminus/master/cpanm HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: raw.githubusercontent.com
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< Date: Mon, 28 Apr 2014 03:31:59 GMT
< Server: Apache
< Content-Length: 226
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
* Closing connection #2
* Closing connection #0
* Closing connection #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment