Android Question Problem with HttpJob

Discussion in 'Android Questions' started by walmo, May 29, 2019.

  1. walmo

    walmo Member Licensed User

    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 ?
  2. DonManfred

    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.
  3. inakigarm

    inakigarm Well-Known Member Licensed User

    Have you tried setting the user agent on http request header ?
    MarkusR likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice