seungwookj / sandrop

Automatically exported from code.google.com/p/sandrop
0 stars 0 forks source link

Can't get to espn.com / m.imgur #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. With the proxy running, use a browser to go to espn.com
2. Note the page fails to load, and the url changes to the mobile version of 
the home page
3. Hit refresh to see the mobile version of the page load

What is the expected output? What do you see instead?
The mobile version of the website to load without the need to manually reload.

What steps will reproduce the problem? (imgur)
1. With the proxy running, use a browser to go to imgur.com
2. Note the static content loads, but the loading indicator continues to spin 
as the page attempts to ajax in images
3. If Chrome is available, launch it
4. Enable "Request desktop site" 
5. Go to imgur.com and note the desktop site loads properly

What is the expected output? What do you see instead?
Expected images to be displayed properly when visiting m.imgur.com. Instead no 
images are displayed and the loading indicator spins continuously.

What version of the product are you using? On what operating system?
Android 4.4.2

Please provide any additional information below.

Original issue reported on code.google.com by thomas.j...@gmail.com on 29 Jan 2014 at 12:01

GoogleCodeExporter commented 8 years ago
Will look at it.

Original comment by supp.san...@gmail.com on 29 Jan 2014 at 7:41

GoogleCodeExporter commented 8 years ago
Yes, something force close redirection. Will try to figure out.
Problem could be with this weird connection close header. X-Cnection: close
Maybe SandroProxy should always close connection if 301, 302 code happens.

HTTP/1.1 keepAlive: null reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://espn.com:80/ : 301 Moved Permanently
Response:
301 Moved Permanently
Date: Thu, 30 Jan 2014 09:54:03 GMT
Server: Apache
Location: http://m.espn.go.com/wireless/index?i=COM
Content-Length: 249
*X-Cnection: close*
Content-Type: text/html; charset=iso-8859-1

Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
IOException retrieving the response for 
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM : java.io.IOException: No 
data received from the server
Reading the response
Request :
GET http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM HTTP/1.1
Host: m.espn.go.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision 
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko) 
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: optimizelySegments=
Existing socket is valid, reusing it!
com.android.browser requested : GET 
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM
Reading request from the com.android.browser <10004>
Version: HTTP/1.1 keepAlive: Keep-Alive reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://m.espn.go.com:80/wireless/index?i=COM : 302 Moved Temporarily
Response:
302 Moved Temporarily
Connection: Keep-Alive
Location: http://m.espn.go.com/wireless/index?w=1doxn&i=COM
Server: barista/3.3.6
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20

Reading the response
Request :
GET http://m.espn.go.com:80/wireless/index?i=COM HTTP/1.1
Host: m.espn.go.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision 
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko) 
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: optimizelySegments=
Connect to m.espn.go.com:80
Opening a new connection
com.android.browser requested : GET http://m.espn.go.com:80/wireless/index?i=COM
Reading request from the com.android.browser <10004>
Version: HTTP/1.1 keepAlive: null reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://espn.com:80/ : 301 Moved Permanently
Response:
301 Moved Permanently
Date: Thu, 30 Jan 2014 09:54:03 GMT
Server: Apache
Location: http://m.espn.go.com/wireless/index?i=COM
Content-Length: 249
X-Cnection: close
Content-Type: text/html; charset=iso-8859-1

Reading the response
Request :
GET http://espn.com:80/ HTTP/1.1
Host: espn.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision 
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko) 
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7

Connect to espn.com:80
Opening a new connection
com.android.browser requested : GET http://espn.com:80/

Original comment by supp.san...@gmail.com on 30 Jan 2014 at 10:04

GoogleCodeExporter commented 8 years ago
Tried also the same with desktop. The same dropping of connection happens.
Difference is that SandroProxy sends:

HTTP/1.0 500 SandroProxy error
Content-Type: text/html
Connection: Close

Without SandroProxy chrome on pc receive proper headers and then illegal 
closing of socket happens. 
You can see this in chrome devtools as canceled request.

What can be changed is that SandroProxy also simulate the same. 
Just sends headers from server and then close connections, before any content 
is send.

But I must say that server should not just cancel connections.
You can see this kind of requests as red chrome devtools on pc.
Probably would show the same if for android chrome remote debugging.
https://developers.google.com/chrome-developer-tools/docs/remote-debugging

About imugr. Can not reproduce problem. It's working just fine.
Maybe try again and send more details.

Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
***********IOException retrieving the response for 
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM : *******
***********java.io.IOException: No data received from the server***********
Reading the response
Request :
GET http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM HTTP/1.1
Host: m.espn.go.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
X-Requested-With: com.android.browser
User-Agent: Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; HTC Vision 
Build/JDQ39; CyanogenMod-10.1) AppleWebKit/534.30 (KHTML, like Gecko) 
Version/4.0 Mobile Safari/534.30
Accept-Encoding: gzip,deflate
Accept-Language: en-US
Accept-Charset: utf-8, iso-8859-1, utf-16, *;q=0.7
Cookie: optimizelySegments=
Existing socket is valid, reusing it!
com.android.browser requested : GET 
http://m.espn.go.com:80/wireless/index?w=1doxn&i=COM
Reading request from the com.android.browser <10004>
Version: HTTP/1.1 keepAlive: Keep-Alive reuseCount:1
Finished writing the response to the com.android.browser <10004>
Writing the response to the com.android.browser <10004>
http://m.espn.go.com:80/wireless/index?i=COM : 302 Moved Temporarily
Response:
302 Moved Temporarily
Connection: Keep-Alive
Location: http://m.espn.go.com/wireless/index?w=1doxn&i=COM
Server: barista/3.3.6
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20

Original comment by supp.san...@gmail.com on 30 Jan 2014 at 11:31

GoogleCodeExporter commented 8 years ago
Changes:
http://code.google.com/p/sandrop/source/detail?r=ab70b57767009e778d0a8370be5d3e6
c5d5d9cae&name=1_5_99_server_close_conn
new version 1.5.100 on Google Play

Original comment by supp.san...@gmail.com on 31 Jan 2014 at 8:04

GoogleCodeExporter commented 8 years ago
Whoah, thanks for the quick turnaround!

Original comment by thomas.j...@gmail.com on 4 Feb 2014 at 12:28

GoogleCodeExporter commented 8 years ago

Original comment by supp.san...@gmail.com on 10 Feb 2014 at 3:49