$ curl
http://bbs.leowood.net/ -v
* About to connect() to
bbs.leowood.net port 80 (#0)
* Trying 58.176.229.230... connected
* Connected to
bbs.leowood.net (58.176.229.230) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.16.3 (i686-pc-linux-gnu) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host:
bbs.leowood.net> Accept: */*
>
< HTTP/1.1 302 Object moved
< Date: Thu, 27 Nov 2014 14:34:39 GMT
< Server: Microsoft-IIS/6.0
< X-Powered-By:
ASP.NET< Location:
http://bbs.leowood.net:88/< Content-Length: 147
< Content-Type: text/html
<
<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="
http://bbs.leowood.net:88/">here</a>.</body>
那个例子是先请求 80 端口然后 302 到 88 端口