Http message with ant to download files

As part of my Ant build process, I would like to upload files to the web server via an HTTP message. Ant only works with the HTTP Get task. However, Ant Contrib seems to have an HTTP Post task. The problem is that it does not have basic authentication (for example, get) or in any way indicate the download of the file (despite the fact that the documents say, "rawFile" is not part of the distribution).

My question is: Ant Does the Contrib Post task actually support what I want, but in an unobvious way (maybe I need to do this manually)? Or is there any other way to do this?

+5
source share
7 answers

curl , ANT exec.

curl

+6

, ant http Apache 2.0. java.net. * .

POST/PUT , .

http://missinglinkcode.wordpress.com/2011/03/15/apache-ant-http-task/

+6

ant ​​ ant http " ", = http://code.google.com/p/missing-link/

+4

ant , jakarta commons http:

http://fikin-ant-tasks.sourceforge.net/

http post task.

ant exec java vm. .

P.S.: fikin ant /HTTP- java jakarta commons, . jakarta commons http client, 2

vm, ant, , , java-
jakarta commons httpclient google..

0

http post Antelope, , , .:/

0

AntLib ant , , HTTP- . .

0

ant -contrib, post. , . :

http://sourceforge.net/tracker/?func=detail&aid=3110414&group_id=36177&atid=416922

, ant -contrib.jar, post, . , ...

0

All Articles