This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
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.
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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HtmlUnit 2.8 - possible to get the HttpClient??
 
It's not a secret anymore!