File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HtmlUnit 2.8 - possible to get the HttpClient??

 
olze oli
Ranch Hand
Posts: 149
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 149
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic