Skip to content

Instantly share code, notes, and snippets.

@karlcow
Last active August 29, 2015 14:17
Show Gist options
  • Save karlcow/86c497d259d4286557cd to your computer and use it in GitHub Desktop.
Save karlcow/86c497d259d4286557cd to your computer and use it in GitHub Desktop.

Firefox Android.

Everything is working well.

→ http --print hH http://www.vente-privee.com/ 'User-Agent:Mozilla/5.0 (Android; Mobile; rv:36.0) Gecko/36.0 Firefox/36.0'

The request:

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.vente-privee.com
User-Agent: Mozilla/5.0 (Android; Mobile; rv:36.0) Gecko/36.0 Firefox/36.0

The response: First redirection.

HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Length: 0
Date: Wed, 25 Mar 2015 22:39:26 GMT
Location: /vp4/
Server: AkamaiGHost

Let's follow with a new HTTP request

GET /vp4/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.vente-privee.com
User-Agent: Mozilla/5.0 (Android; Mobile; rv:36.0) Gecko/36.0 Firefox/36.0

The response, moved to the mobile site.

HTTP/1.1 302 Moved Temporarily
Cache-Control: private, max-age=0
Connection: keep-alive
Connection: Transfer-Encoding
Content-Type: text/html
Date: Wed, 25 Mar 2015 22:39:41 GMT
Location: http://m.vente-privee.com
Server: Microsoft-IIS/7.5
Set-Cookie: context=; path=/
Transfer-Encoding:  chunked
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET

Firefox OS

Now let's see for Firefox OS User Agent (on smartphones)

→ http --print hH http://www.vente-privee.com/ 'User-Agent:Mozilla/5.0 (Mobile; rv:36.0) Gecko/36.0 Firefox/36.0'

The request:

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.vente-privee.com
User-Agent: Mozilla/5.0 (Mobile; rv:36.0) Gecko/36.0 Firefox/36.0

The first response:

HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Length: 0
Date: Wed, 25 Mar 2015 22:46:38 GMT
Location: /vp4/
Server: AkamaiGHost

Let's follow on this.

GET /vp4/ HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: www.vente-privee.com
User-Agent: Mozilla/5.0 (Mobile; rv:36.0) Gecko/36.0 Firefox/36.0
HTTP/1.1 302 Moved Temporarily
Cache-Control: private, max-age=0
Connection: keep-alive
Content-Length: 145
Content-Type: text/html; charset=utf-8
Date: Wed, 25 Mar 2015 22:47:54 GMT
Location: /vp4/Login/Portal.ashx
Server: Microsoft-IIS/7.5
Set-Cookie: context=; path=/
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET

We receive now the Desktop site.

So there's a difference of behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment