java - HtmlUnit - "Browser Not Supported" Error on website using JQuery -


i use htmlunit login website , click link file downloaded, however, website, uses jquery, returns "browser not supported" error. there way htmlunit can set normal browser website?

any appreciated.

i'm trying following settings, error still occurring:

    public void surf(job job) {      system.out.println("[enter] surf");      try {          string applicationname = "netscape";         string applicationversion = "5.0 (macintosh; intel mac os x 10_11_3) applewebkit/537.36 (khtml, gecko) chrome/51.0.2704.106 safari/537.36 opr/38.0.2220.41";         string useragent = "mozilla/5.0 (macintosh; intel mac os x 10_11_3) applewebkit/537.36 (khtml, gecko) chrome/51.0.2704.106 safari/537.36 opr/38.0.2220.41";         int browserversionnumeric = 51;          browserversion browser = new browserversion(applicationname, applicationversion, useragent, browserversionnumeric);          webclient webclient = new webclient(browser);          final htmlpage page = webclient.getpage("https://www.europasports.com");          system.out.println(page);      } catch (exception e) {         e.printstacktrace();     }      system.out.println("[exit] surf"); } 

netscape discontinued in march 2008, that's why getting message. no longer exists! if targeting apple, suggest use safari, google chrome has the largest browser usage share


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -