Skip to content

Instantly share code, notes, and snippets.

@raphaelsaunier
Last active August 29, 2015 14:13
Show Gist options
  • Save raphaelsaunier/db05d870db2a9a419ab0 to your computer and use it in GitHub Desktop.
Save raphaelsaunier/db05d870db2a9a419ab0 to your computer and use it in GitHub Desktop.
developer.vimeo.com redirecting to vimeo.com

Valid response:

$ curl -I developer.vimeo.com
HTTP/1.1 200 OK
Date: Wed, 21 Jan 2015 11:35:43 GMT
Server: Apache
Expires: Tue, 20 Jan 2015 23:35:43 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Vary: User-Agent,Accept-Encoding
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: IE=edge
X-Frame-Options: sameorigin
Connection: close
Content-Type: text/html; charset=UTF-8

Same request a few seconds later, sends a 301 redirect:

$ curl -I developer.vimeo.com
HTTP/1.1 301 Moved Permanently
Server: nginx
Content-Type: text/html; charset=UTF-8
Expires: Tue, 20 Jan 2015 23:34:55 GMT
Location: https://vimeo.com/
Via: 1.1 varnish
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
X-Varnish-Cache: 0
X-VServer: dfvimeowebproxy5
Content-Length: 0
Accept-Ranges: bytes
Date: Wed, 21 Jan 2015 11:34:55 GMT
Via: 1.1 varnish
Age: 0
Connection: keep-alive
X-Served-By: cache-fra1226-FRA
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1421840094.999071,VS0,VE100
Vary: User-Agent,Accept-Encoding

Some pages also have a redirection loop:

$ curl -I https://developer.vimeo.com/api/endpoints
HTTP/1.1 301 Moved Permanently
Date: Wed, 21 Jan 2015 19:52:21 GMT
Server: nginx
Content-Type: text/html; charset=UTF-8
Expires: Wed, 21 Jan 2015 07:52:21 GMT
Location: https://developer.vimeo.com/api/endpoints
Via: 1.1 varnish
X-Varnish-Cache: 0
X-VServer: dfvimeowebproxy5
Transfer-Encoding: chunked
Accept-Ranges: bytes
Via: 1.1 varnish
Age: 0
X-Served-By: cache-fra1239-FRA
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1421869941.185131,VS0,VE97
Vary: User-Agent,Accept-Encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment