http post with ant for file uploading
Posted
by paleozogt
on Stack Overflow
See other posts from Stack Overflow
or by paleozogt
Published on 2010-03-31T18:55:32Z
Indexed on
2010/04/13
19:43 UTC
Read the original article
Hit count: 602
ant
As part of my Ant build process, I'd like to upload files to a webserver via HTTP Post. Ant only comes with an HTTP Get task. However, Ant Contrib seems to have an HTTP Post task. The problem is that it doesn't have any authentication (like get does) or any way to specify a file upload (despite what the docs say, "rawFile" is not part of the distro).
My question is: does Ant Contrib's Post task actually support what I want, but in a non-obvious way (perhaps I have to do it by hand)? Or is there some other way to do this?
© Stack Overflow or respective owner