| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: SSL, X.509 and cURL (sending XML)
From: Cris Bailiff <c.bailiff_at_awayweb.com>
Date: Wed, 18 Jul 2001 17:05:29 +1000
Armando,
I think you are trying to send your document from the curl command line
curl --data "<?xml version="1.0">" --other-args https://blahblah/blah
If this was unix, I'd say you're being affected by the quoting rules of
The shell normally splits commands up at each white space, so the
Each quote matches with the next, and preserves whitespace, but is not
<?xml version=1.0>
to your application as one string, but only because there are no spaces
<?xml cersion=
and
1.0
and
>
passed as 3 separate parameters - you'd see immediately thats its
You can fix this in many ways - probably the simplest for you might be
curl --data '<?xml version="1.0">' --otherargs https://blahblahblah/blah
The ' match each other, and you get a single parameter with all your
An alternative is to put all your data in a file (say, input.xml ), and
curl --data @input.xml --otherargs https://blahblah/blah
Hope this helps
Cris
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info