wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes HtmlUnit 2.8 - possible to get the HttpClient?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "HtmlUnit 2.8 - possible to get the HttpClient??" Watch "HtmlUnit 2.8 - possible to get the HttpClient??" New topic
Author

HtmlUnit 2.8 - possible to get the HttpClient??

olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
hi,

im using htmlunit because i want to simulate a browser (execute js etc.) which is not possible in httpclient 4
but i need some functions of httpclient 4 (set another redirect strategy etc.)
is it possible to get the httpclient of htmlunit and modify it?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
I don't know the answer to that question, but be aware that HtmlUnit does not use the redirection facilities of HttpClient. So the change would be to HtmlUnit's configuration, not HttpClient's.


Ping & DNS - my free Android networking tools app
olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
yes thanks its working (after a couple of hours changing httpclient with htmlunit) even without modifying httpclient, so looks like they already make something like this..
 
 
subject: HtmlUnit 2.8 - possible to get the HttpClient??
 
Similar Threads
java.lang.IllegalAccessError: tried to access field
Using JSP to post data to external url without losing control focus
How to get a HttpClient object from selenium HtmlUnitDriver ?
httpclient - commons
Easy way to parse HTTP response