Closed Bug 957464 Opened 6 years ago Closed Last year

youyuan.com sends text/vnd.wap.wml Content-Type to Firefox OS

Categories

(Web Compatibility :: Mobile, defect, P5)

Other
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: hsteen, Assigned: angelc04)

References

()

Details

(Whiteboard: [mobile-compat-form][wap][serversniff][country-cn][sitewait])

Site: http://www.youyuan.com/
youyuan.com sends WAP page

:: Steps To Reproduce

youyuan.com sends text/vnd.wap.wml content

:: Expected Result

Mobile site

:: Actual Result

WAP site

:: Additional Information

Software Version: 1.1
Reporter's User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] → [mobile-compat-form][wap][serversniff][country-cn][contactready]
Safari  iOS iPod   Mobile Content (redirection to touch web site)
Here we have two different behavior depending if we access www.youyuan.com and youyuan.com



Safari  ipod iOS  youyuan.com     -> touch.youyuan.com                      (text/html mobile)
Safari  ipod iOS  www.youyuan.com -> youyuan.com       -> touch.youyuan.com (text/html mobile)
Firefox Android   youyuan.com     -> touch.youyuan.com                      (text/html mobile)
Firefox Android   www.youyuan.com                                           (text/html DESKTOP)
Opera   Android   youyuan.com     -> touch.youyuan.com                      (text/html mobile)
Opera   Android   www.youyuan.com                                           (text/html DESKTOP)
UCWeb   Android   youyuan.com     -> touch.youyuan.com                      (text/html mobile)
UCWeb   Android   www.youyuan.com                                           (text/html DESKTOP)
Firefox OS        youyuan.com                                               (text/vnd.wap.wml WAP)
Firefox OS        www.youyuan.com                                           (text/html DESKTOP)


Tested the touch.youyuan.com on Firefox OS and Firefox Android and it works perfectly.
We need to ask them to redirect users to to touch.youyuan.com when they enter youyuan.com on Firefox OS.

btw, Opera and UCWeb on Android have the same issue than Firefox Android for www.youyuan.com, they receive the desktop site while Safari on iOS is redirected to the mobile site. It's not consistent, though I'm not sure if it should be fixed for www. People might want the desktop site.





→ http --print hH http://www.youyuan.com/ "User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.youyuan.com
User-Agent:  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Cache-Control: max-age=60
Connection: keep-alive
Content-Encoding: gzip
Content-Language: zh-CN
Content-Type: text/html; charset=UTF-8
Date: Thu, 17 Apr 2014 09:45:05 GMT
Last-Modified: Thu, 17 Apr 2014 09:44:23 GMT
Server: nginx
Transfer-Encoding: chunked
Vary: Accept-Encoding


→ http --print hH http://youyuan.com/ "User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: youyuan.com
User-Agent:  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 3787
Content-Type: text/vnd.wap.wml; charset=UTF-8
Date: Thu, 17 Apr 2014 09:46:07 GMT
Server: yy/1.0.4
Set-Cookie: JSESSIONID=aaaFWsGugwuwh9VLdfVvu; path=/

→ http --print hH http://youyuan.com/ "User-Agent:  Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: youyuan.com
User-Agent:   Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53

HTTP/1.1 302 Found
Cache-Control: no-cache
Connection: close
Content-Length: 98
Content-Type: text/html; charset=utf-8
Date: Thu, 17 Apr 2014 09:51:12 GMT
Location: http://touch.youyuan.com/fr--1096--fr/index.jwml?w1totouch=1
Server: yy/1.0.4
Set-Cookie: JSESSIONID=aaazCx2V_jlVN76nogVvu; path=/


→ http --print hH http://www.youyuan.com/ "User-Agent:  Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.youyuan.com
User-Agent:   Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53

HTTP/1.1 302 Moved Temporarily
Connection: keep-alive
Content-Length: 154
Content-Type: text/html
Date: Thu, 17 Apr 2014 09:51:49 GMT
Location: http://youyuan.com
Server: nginx

→ http --print hH http://youyuan.com/ "User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: youyuan.com
User-Agent:  Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 302 Found
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 98
Content-Type: text/html; charset=utf-8
Date: Thu, 17 Apr 2014 09:52:23 GMT
Location: http://touch.youyuan.com/fr--1096--fr/index.jwml?w1totouch=1
Server: yy/1.0.4
Set-Cookie: JSESSIONID=aaaUUQSGsH_bR6FeFgVvu; path=/


→ http --print hH http://www.youyuan.com/ "User-Agent: Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0"
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, compress
Host: www.youyuan.com
User-Agent:  Mozilla/5.0 (Android; Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Cache-Control: private
Cache-Control: max-age=60
Connection: keep-alive
Content-Encoding: gzip
Content-Language: en-US
Content-Type: text/html; charset=UTF-8
Date: Thu, 17 Apr 2014 09:52:46 GMT
Last-Modified: Thu, 17 Apr 2014 09:52:46 GMT
Server: nginx
Set-Cookie: JSESSIONID=aaas67VKJzgz28yaLgVvu; path=/
Transfer-Encoding: chunked
Vary: Accept-Encoding
Assignee: nobody → yliu
Status: NEW → ASSIGNED
See Also: → 941241
Summary: youyuan.com sends WAP page → youyuan.com sends text/vnd.wap.wml Content-Type to Firefox OS
Adding the more general Bug about WAP issues for Chinese Web sites.
Depends on: 997668
BTW when we are contacting them, we can also recommend them to improve the script in their mobile touch home page. This is not effective.

This following script:

<script type="text/javascript">
    window.setInterval(function (){//10秒 更换注册页数据
        $.post("/reg_1096forward.jwml",{'randhid':document.getElementById('randhid').value},function(txt0){
            $("#showforwardinfo").html(txt0);
        });
    },10000);
</script>

performs every 10s perform an HTTP POST to refresh a tile of images. 
BUT it also downloads again jquery-1.9.1 with a different parameter so each time: 157 KB
http://touch.youyuan.com/chart/touch1/jquery-1.9.1.min.js?_=1397787654247

Not necessary. Recommendations:

1. HTTP GET instead of HTTP POST for rotating the images.
2. Do put a parameter on jquery URI and do not download it every time.
This behaviour has somewhat improved. I no longer get WML content. We're not sent to the touch.yuoyuan site though, we get a simplified version.
Hm..testing with SlimerJS still triggers WML response from the server, but I'm not seeing that on device even when leaving out the www. prefix. Weird. Karl, are you seeing any changes?

(Not that it matters much, we should still ask for the touch version so we should contact them)
With Firefox OS, on ZTE Open 1.2, entering

* youyuan.com, I get a "well this is embarassing".
* www.youyuan.com, I get the desktop site.
* touch.youyuan.com, I get a working site.
Flags: needinfo?(hsteen)
oh and even asking for HTML, I still receive wap.


→ http --print hH http://youyuan.com/ "User-Agent: Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0" "Accept: text/html"

GET / HTTP/1.1
Accept:  text/html
Accept-Encoding: gzip, deflate, compress
Host: youyuan.com
User-Agent:  Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0

HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 3933
Content-Type: text/vnd.wap.wml; charset=UTF-8
Date: Mon, 28 Apr 2014 02:09:02 GMT
Server: yy/1.0.4
Set-Cookie: JSESSIONID=aaayArAOMMwqs7Dv7fMwu; path=/


That would be another interesting survey with regards to how UA sniffing destroy what the browser is requesting.
* youyuan.com - I'm taken to w2.youyuan.com which is a simplified mobile site but works OK. This is in Fx OS 1.4, on device. As I said, we should contact them and ask for the touch version - whether and when it breaks by sending wap and whether and when it breaks by sending a feature phone site is less important IMO.
Flags: needinfo?(hsteen)
We have already contacted youyuan. They are working on this website.
Whiteboard: [mobile-compat-form][wap][serversniff][country-cn][contactready] → [mobile-compat-form][wap][serversniff][country-cn][sitewait]
Assignee: yliu → pcheng
Priority: -- → P5
Closing as we are not working on Firefox OS anymore.
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → WONTFIX
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.