cURL / Mailing Lists / curl-users / Single Mail


Posting a text file containing xml to a web site

From: Steven R. Shourds <>
Date: Fri, 28 Jun 2002 14:19:59 -0400

I want to post a file (test.txt) containing xml to a URL and wait for a response to put back into a local file.

The content-type must be "text/xml".

I am using the following command but it is failing. I know the Certificate and URL are correct.

curl -v -o c:\testit -E C:\FILES\TECH\CURL\PerfPrivateVerCert.pem -F test.txt https://x.x.x.x/NASApp/dpcus01/B2BConnectorDPCqa?tgt=JMSORDER01QA

Am I using the correct option (-F). Is there a way to specify the contect-type?


This email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
Received on 2002-06-28