ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Chmura" <>
Subject RE: HTTP post of binary data?
Date Fri, 06 Jun 2003 16:18:17 GMT
I don't know if it will help, but if you can do an exec

Wget has a 
       --post-data=STRING    use the POST method; send STRING as the
       --post-file=FILE      use the POST method; send contents of FILE.

Not sure about the binary part though

-----Original Message-----
From: []

Sent: Friday, June 06, 2003 12:02 PM
To: Ant Users List
Cc: Ant Users List
Subject: Re: HTTP post of binary data?

Hi Matthias,

        I was facing the same issue few weeks ago !
To solve it, I used a piece of JAVA code which simulate the HTTP upload 
from a form. 

I do not take time to convert it in a specific task but I was using it 
from the JAVA task and it works fine.

Ludovic Lecanuet.

"Merdes, Matthias" <>
06/06/03 11:59
Please respond to "Ant Users List"

        To:     "Ant Users List" <>
        cc:     ^
        Subject:        HTTP post of binary data?


i am using the antelope external HTTP POST task and it works fine for
text files. i cannot find out how to send binary data though. (as in an
http file upload to a webserver. yes, i have to use POST b/c i have to
automate an html form-based file dialogue that talks to a web app i
cannot change...)

probably i would have to load binary data from a file,
somehow encode it, and then send it just like any other property. 

the problem is that the ant loadfile task is for textfiles, also ant
doesn't seem to have an encoding task...

anybody suggestions?


To unsubscribe, e-mail:
For additional commands, e-mail:

Visit us at

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited and
may be unlawful. Any views expressed in this e-mail are those of the
individual sender, except where the sender specifically states them to
be the views of Clearstream International or of any of its affiliates or


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message