This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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: 42954
    
  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..
 
I agree. Here's the link: http://kickstarter.com/rocket-mass-heater
 
subject: HtmlUnit 2.8 - possible to get the HttpClient??