Skip to content

Instantly share code, notes, and snippets.

@captn3m0
Created December 26, 2017 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save captn3m0/fc4d37af6b8b7ed92c56ea249a4765e6 to your computer and use it in GitHub Desktop.
Save captn3m0/fc4d37af6b8b7ed92c56ea249a4765e6 to your computer and use it in GitHub Desktop.
Zomato HTTP/1 and HTTP/2 difference

The zomato website gives timeouts over HTTP/1, but connects fine over HTTP/2

$ curl https://www.zomato.com -I && curl https://www.zomato.com -I  --http1.0 --connect-timeout 1 --max-time 1

HTTP/2 403 
server: AkamaiGHost
mime-version: 1.0
content-type: text/html
content-length: 264
expires: Tue, 26 Dec 2017 04:02:17 GMT
cache-control: max-age=0, no-cache, no-store
pragma: no-cache
date: Tue, 26 Dec 2017 04:02:17 GMT
vary: Accept-Encoding, User-Agent
strict-transport-security: max-age=31536000

curl: (28) Operation timed out after 1001 milliseconds with 0 bytes received
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment