ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Re: HTTP calls
Date Thu, 27 Sep 2001 22:53:27 GMT
Look into Jakarta's Cactus project also.   It includes some custom Ant tasks
for some of its functionality, and integrates well with HttpUnit.   Also,
another project to look at is the Latka project in Jakarta Commons - seems
very similar to what you are wishing for.



----- Original Message -----
From: "Gurdev S Parmar" <>
To: <>
Sent: Thursday, September 27, 2001 3:48 PM
Subject: Re: Re: HTTP calls

Presently, you got it right:) I am looking for
something to automate our JSP demo testing.
Thanks, for the reference of HttpUnit. From what
I have seen of it, it seems sufficient for my
present requirements.

But I really feel that the framework of Ant is just
right to make something with which we complete an http
transaction. For this we need ability to login
and maintain a session, get a form from the response,
 fill it, submit it, etc.

Maybe, If I get some time I'll sit down and
make a task like above.


On Fri, 28 Sep 2001 Steve Loughran wrote :

There are some extended HTTP tasks (get, post, head) which I should put into
the ant1.5 tree, which will do some of what you want, such as
-let you specify one cookie (or any other header items). The limit of one
cookie is an artifact of the package which can cause problems.
-build up request parameters or post data
-save the output into a property

However, I dont think anyone has given much thought to what you are looking
at, which seems to be either scraping or testing web pages. Yes?

Scraping could be possible, the scrape taglib (under shows it is possible to have a simple scrapes in
XML, or with the web page in a property there are other possible means to
extract regions.

If it for web page testing, consider using HttpUnit to have Junit tests
which scrape and test a page, calling these tests from ant is pretty simple.

----- Original Message -----
From: "Gurdev S Parmar" <>
To: <>
Sent: Thursday, September 27, 2001 11:38
Subject: HTTP calls

I am new to the list and don't know if this has been
discussed before.

Have you given a thought on supporting HTTP calls as
Ant tasks complete with (automatic) cookie handling.
With features like parsing the resultant HTML page
and look for tags of interest? If someone has
worked with Web Language by Compaq or the LGPLed
HTTPClient(java) package you'll know what I am talking

Is something of this nature is on cards?


View raw message