天道酬勤,学无止境

http-unit

HttpUnit WebConversation SSL Issues

How can I ignore SSL certificate issues from the context of the WebConversation or WebRequest object? I know I can create a fake TrustManager that accepts all certificates but how can I set this in the HttpUnit context? Here is the exception I am getting: [Security:090508]Certificate chain received from my.domain.com - NUM.NUM.NUM.NUM was incomplete., [Security:090477]Certificate chain received from my.domain.com - NUM.NUM.NUM.NUM was not trusted causing SSL handshake failure. I need to somehow set the SSLSocket settings to the WebConversation or WebRequest object; looking at the JavaDocs for

2021-06-11 18:40:47    分类:问答    java   ssl   https   http-unit

HttpUnit/HtmlUnit equivalent for android

I'm looking for a browser-simulating library on android, which handles things like loading a website (http/https) Redirections: HTTP (3xx Status Codes), JavaScript, HMTL tags filling out html-forms easy html parsing (could fall back to JSoup for that one) HttpUnit or HtmlUnit would do just fine, but both of them are a pain to get running on android. Is there any other option other than (Android)HttpClient (and therefore doing lots of the above on my own)? Or can I somehow get use of the android webkit/browser? Thanks in advance!

2021-04-04 21:47:34    分类:问答    android   htmlunit   http-unit