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
data.
       --post-file=FILE      use the POST method; send contents of FILE.

Not sure about the binary part though

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

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. 
(http://lists.pushtotest.com/pipermail/users/2002-March/000064.html)

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.

Cheers, 
Ludovic Lecanuet.




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

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



hi,

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?

thanks
regards
matthias





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

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
subsidiaries.

END OF DISCLAIMER



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to