Created
August 7, 2013 16:48
-
-
Save aprescott/6175861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# imgur redirecting direct image links from t.co on the first click ? | |
# A subsequent visit in the same browser seems to work fine, so maybe | |
# they remember it via the cookie. | |
# 1. See i.imgur.com/foo.jpg link in a tweet. | |
# 2. Visit it with a redirect through t.co. | |
# 3. See imgur.com/foo page instead of just the image. | |
# 4. Visit the same link from (1) again. | |
# 5. See the regular image at i.imgur.com/foo.jpg, as usual. | |
$ curl -I -H "Referer: http://t.co/6UIhFkZMGD" http://i.imgur.com/wKcDVoo.jpg | |
HTTP/1.1 302 Moved Temporarily | |
Server: cloudflare-nginx | |
Date: Wed, 07 Aug 2013 16:43:46 GMT | |
Content-Type: text/html | |
Content-Length: 165 | |
Connection: keep-alive | |
Location: http://imgur.com/wKcDVoo | |
$ curl -I http://i.imgur.com/wKcDVoo.jpg | |
HTTP/1.1 200 OK | |
Server: cloudflare-nginx | |
Date: Wed, 07 Aug 2013 16:43:52 GMT | |
Content-Type: image/jpeg | |
Content-Length: 142565 | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment