Skip to content

Instantly share code, notes, and snippets.

@zhuangya
Created December 9, 2011 02:48
Show Gist options
  • Save zhuangya/1449917 to your computer and use it in GitHub Desktop.
Save zhuangya/1449917 to your computer and use it in GitHub Desktop.
[ 10:44上午 ] [ nos@NosMacbookPro:~ ]
$ curl ifconfig.me
123.114.32.48 # I am in Beijing, China right now..
[ 10:45上午 ] [ nos@NosMacbookPro:~ ]
$ curl -i pubnub.com
HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.67
Date: Fri, 09 Dec 2011 02:46:06 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: http://www.pubnub.com/
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/0.7.67</center>
</body>
</html>
[ 10:46上午 ] [ nos@NosMacbookPro:~ ]
$ curl -i www.pubnub.com
HTTP/1.1 302 Found
Location: http://www.google.com/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Date: Fri, 09 Dec 2011 02:46:21 GMT
Server: sffe
Content-Length: 219
X-XSS-Protection: 1; mode=block
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment