aspose file tools*
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: 42950
    
  70
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??