Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant task for HTTP POST?

 
Jonathan Dodds
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there an Ant task that can perform an HTTP POST request?

The Get task will perform an HTTP GET but is there a way to POST?

Thanks.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't used it, but after a few google searches I found Post task in antelope


Google result on "http post site:ant.apache.org" got a hit on the
Ant related projects page
 
Jonathan Dodds
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

The versions of the post task in antelope and ant-contrib don't appear to meet my needs though. I need to POST an XML request and I need support for Basic Auth.
[ March 30, 2006: Message edited by: Jonathan Dodds ]
 
Alex Sherwin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have created an Apache 2.0 licensed, full featured and easy to use ant http task. It utilizes core java.net.* classes and has no third party library dependencies.

It can do POST/PUT with files or in-line entities, and has flexible options for setting required headers, authentication and status code checking for build failure on unexpected results.

http://missinglinkcode.wordpress.com/2011/03/15/apache-ant-http-task
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic