2 ms·
It seems to depend on the User-Agent: < HTTP/1.1 301 Moved Permanently < Date: Sun, 21 Aug 2011 02:55:16 GMT < Server: hi < Location: http://dl.dropbox
by siavash 15y ago
It seems to depend on the User-Agent:
< HTTP/1.1 301 Moved Permanently
< Date: Sun, 21 Aug 2011 02:55:16 GMT
< Server: hi
< Location: http://dl.dropbox.com/u/81822/fans.jpg
< Cache-Control: private,max-age=300
< Expires: Sun, 21 Aug 2011 03:00:16 GMT
< Content-Length: 0
< Connection: close
< Content-Type: text/html; charset=UTF-8
<
* Closing connection #0
But with a quite common User-Agent:
curl -v http://t.co/emmQt03 -H "User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.04 Chromium/14.0.825.0 Chrome/14.0.825.0 Safari/535.1"
< HTTP/1.1 200 OK
< Date: Sun, 21 Aug 2011 02:56:05 GMT
< Server: hi
< Content-Type: text/html; charset=utf-8
< Cache-Control: private,max-age=300
< Expires: Sun, 21 Aug 2011 03:01:05 GMT
< Content-Length: 183
< Vary: Accept-Encoding
< Connection: close
<
* Closing connection #0
<noscript><META http-equiv="refresh" content="0;URL=http://dl.dropbox.com/u/81822/fans.jpg></noscript><script>location.replace(http:\/\/dl.dropbox.com\/u\/81822\/fans.jpg)</script>
- martinkallstrom 15y agoIf they didn't detect user agents they would break the possibility of doing short link expansion with repeated HEAD requests following the chain of redirects. Which a wide range of services need to do efficiently.