cURL / Mailing Lists / curl-users / Single Mail

curl-users

-F option and ASP

From: Lecas, Christophe <Christophe_Lecas_at_intuit.com>
Date: Mon, 14 Feb 2000 11:12:15 -0800

I can't make the -F option work to post the content of a file:

I use the following command:

curl -F "OFXFILE=@req.ofx" localhost/ofxfile.asp

where :
- req.ofx is a simple text file
- ofxfile.asp looks like
<HTML>
<%
response.write(request("OFXFILE"))
%>
</HTML>

Result is:
<HTML>

</HTML>

When I use the -d option

curl -F "OFXFILE=text" localhost/ofxfile.asp

then it works, the result is:

<HTML>
text
</HTML>

Any idea why the -F does not work in my first example ? The platform is IIS
4 on NT 4.

Thanks,

- Christophe Lecas -
christophe_lecas_at_intuit.com
Received on 2000-02-14