Closed Bug 828360 Opened 9 years ago Closed 8 years ago

sport.pl doesn't recognize B2G UA as mobile

Categories

(Web Compatibility :: Mobile, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lmandel, Assigned: adamopenweb)

References

()

Details

(Whiteboard: [uaoverride] [country-pl] [serversniff] [sitewait])

sport.pl serves a desktop site to B2G. Bug 823364 added an UA override for this domain. The override should be removed once the domain serves mobile content to B2G. This bug tracks the evangelism for the site to recognize the B2G UA and the removal of the override at that time.
Blocks: sport.pl
Whiteboard: [uaoverride]
Whiteboard: [uaoverride] → [uaoverride] [country-pl]
Server side detection of the User Agent with redirection to a mobile domain.
Without UA override, the desktop content is received by ZTE + Firefox OS. 

The site needs to be contacted to be redirected to the mobile site.

# Firefox OS

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.sport.pl
User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 301 Moved Permanently
Content-Length: 242
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Aug 2013 18:01:14 GMT
Location: http://www.sport.pl/sport/0,0.html
Server: Apache

GET /sport/0,0.html HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.sport.pl
User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: text/html; charset=iso-8859-2
Date: Fri, 09 Aug 2013 18:04:00 GMT
P3P: CP="NOI DSP COR NID PSAo OUR IND"
Server: Apache
Set-Cookie: SERWISYN_SID=ZHTLSFvQxbnskLh1tJ7Yr2YwgMMVqxJytXbNGx0CGzTXXTtxTnf2!-1229181973; path=/; HttpOnly
Set-Cookie: test=66A130A24A10k1376071440148; domain=.sport.pl; expires=Sun, 09-Aug-2015 18:04:00 GMT; path=/
Transfer-Encoding: chunked
Vary: Accept-Encoding,User-Agent
X-Powered-By: Servlet/2.5 JSP/2.1
X-Server-Name: (null)

# Firefox for Android

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.sport.pl
User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 301 Moved Permanently
Content-Length: 242
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Aug 2013 18:04:27 GMT
Location: http://www.sport.pl/sport/0,0.html
Server: Apache

GET /sport/0,0.html HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.sport.pl
User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 301 Moved Permanently
Content-Length: 240
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 09 Aug 2013 18:06:31 GMT
Location: http://m.sport.pl/sport/0,0.html
Server: Apache

GET /sport/0,0.html HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: m.sport.pl
User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Connection: close
Content-Encoding: gzip
Content-Language: pl-PL
Content-Type: text/html; charset=UTF-8
Date: Fri, 09 Aug 2013 18:06:56 GMT
P3P: CP="NOI DSP COR NID DEV PSA OUR IND UNI"
Server: Apache
Set-Cookie: MINI_SID=pMJ2SFvQ3VT7pLJ4ZRF2RnyGGtDzLpJtJQ1409w2W0VcQ0hcbB02!1513616887; path=/; HttpOnly
Set-Cookie: test=66A130A24A10k1376071616548; domain=.sport.pl; expires=Sun, 09-Aug-2015 18:06:56 GMT; path=/
Transfer-Encoding: chunked
Vary: User-Agent,Accept-Encoding
X-Powered-By: Servlet/2.5 JSP/2.1
X-Server-Name: (null)
Assignee: nobody → kdubost
Whiteboard: [uaoverride] [country-pl] → [uaoverride] [country-pl] [serversniff]
Assignee: kdubost → nobody
Whiteboard: [uaoverride] [country-pl] [serversniff] → [uaoverride] [country-pl] [serversniff] [contactready]
Site is run by Agora http://www.agora.pl. I've reached out on anther bug, making this bug dependent.
Assignee: nobody → astevenson
Status: NEW → ASSIGNED
Depends on: 828354
Whiteboard: [uaoverride] [country-pl] [serversniff] [contactready] → [uaoverride] [country-pl] [serversniff] [sitewait]
This is fixed as well.

http -h GET http://www.sport.pl/0,0.html User-Agent:'Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0'
HTTP/1.1 301 Moved Permanently
Content-Length: 234
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 23 Apr 2014 14:43:06 GMT
Location: http://m.sport.pl/0,0.html
Server: Apache
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Blocks: 995831
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.