This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 42958
    
  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://aspose.com/file-tools
 
subject: HtmlUnit 2.8 - possible to get the HttpClient??
 
jQuery in Action, 3rd edition