• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HtmlUnit 2.8 - possible to get the HttpClient??

 
olze oli
Ranch Hand
Posts: 166
  • 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
Posts: 42969
73
  • 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: 166
  • 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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic