Android Question Problem with HttpJob

walmo

Active Member
Licensed User
Hi
Im trying to use HttpJob with a web page to access and download.
But looks like website is checking screen size to know if mobile or desktop device.
If i load website in webview with small screen size(600x600) then i get message that saying mobile website coming soon.
If i load website in webview with screen 1200x800 it loads everything.

But same error on Httpjob as there is no screen size.
What can i do ?
 

DonManfred

Expert
Licensed User
okhttputils is to request data on a onlineserver using http protocol.

Use a real downloadurl for ther data you want to fetch. Or are you requesting a "webpage" content?

Help us help you. Post all relevant infos and a working example or at least a url which does not work.

Sounds for me like a problem in the webpage. OR you are downloading a pagecontent using okhttputils where you should not. Means you are not suposed to download the pagecontent.

Hard to help with the infos you provided.
 
Upvote 0

inakigarm

Well-Known Member
Licensed User
Hi
Im trying to use HttpJob with a web page to access and download.
But looks like website is checking screen size to know if mobile or desktop device.
If i load website in webview with small screen size(600x600) then i get message that saying mobile website coming soon.
If i load website in webview with screen 1200x800 it loads everything.

But same error on Httpjob as there is no screen size.
What can i do ?
Have you tried setting the user agent on http request header ?
https://www.b4x.com/android/forum/threads/set-http-request-header-with-okhttputils2.39413/#content
 
Upvote 0
Top