You can try Canoo WebTest. It will do what you want (but might be overkill
for you depending on what you are trying to do):
http://webtest.canoo.com/webtest/
You would achieve what you want with the following three ant tasks:
<steps>
<invoke url="setFileFieldExample.jsp"/> <!-- or asp or php -->
<setFileField fileName="myFile.csv" name="myFileFieldName"/>
<clickButton name="myButton"/>
</steps>
WebTest -uses-> HtmlUnit -uses-> HttpClient
The latest version is using httpclient 3.0 final.
Cheers, Paul.
phillip rhodes wrote:
I am trying to post a new form fields along with a CSV (comma separated file)
Paul King <[EMAIL PROTECTED]> wrote:
What kind of post are you trying to do? File field within a form?
XML Post?
Cheers, Paul.
phillip rhodes wrote:
Hi,
I have been searching in vain for this thus far. Anyone aware of a ant task
that uses httpclient to post files?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization
Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]