• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

httpclient - commons

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i just read some articles on the commons, but i am looking specifically at the httpclient now. It looks to me like this can be used, maybe is used as some sort of testing engine like the httpunit.jar
Retrieve a webpage, and take a look at the outcome.
So my questions are:
1. can you chain pages, like filling in a form stretching over multiple pages, and then test the whole form filling procedure
2. can you use javascript in this httpclient, and use the dom-model ?
thanks
friso
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Commons HttpClient doesn't deal with the HTML/JavaScript level you're describing -- it concentrates on implementing the HTTP protocol and doing it well.
HttpUnit (and HtmlUnit, JWebUnit) on the other hand supports filling and submitting HTML forms and, to some degree, JavaScript on HTML pages.
 
Author
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HttpClient is concerned with sending HTTP requests from Java code and then handling the response in Java code.
If i am not mistaken, HtmlUnit uses HttpClient.
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Lasse Koskela and Harshad Oak, please see HttpClient features.
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i get the point. thanks,
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic