cURL / Mailing Lists / curl-users / Single Mail

curl-users

Posting a text file containing xml to a web site

From: Steven R. Shourds <srs_at_perfectionsoftware.com>
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?

Thanks,
Steve
www.perfectionsoftware.com
 

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
Received on 2002-06-28