cURL / Mailing Lists / curl-library / Single Mail

curl-library

XML request posting

From: Naved Khan <navedk_at_cybage.com>
Date: Sat, 19 Apr 2003 18:20:35 +0530

Hi,

I'm using curl to send an XML request to an HTTPS server.

curl -v --header "Content-type: text/xml" -d
"Servername=abc&Username=XXX&Password=xxx&AcknowledgementTo=abc_at_xyz.com&XML=
<?xml version = "1.0" encoding = "UTF-8"?><!DOCTYPE Naved SYSTEM
"Naved.dtd"><Connect><GetObjNames><Depth>CAMP</Depth><ClientName>Orbit</Clie
ntName></GetObjNames></Connect>" https://server/myconnect.exe -k

I get the following error from the server side XML (Xerces) parser:
"Error: Expected quoted string"

Any idea what this is?? Is it something to do with curl syntax?

Basically, I want to send send some name value pairs and one XML request as
shown above. Is the above syntax correct?
Are there any examples which show using curl for http posting name value
pairs and XML request from file?

Thanks and Regards,
Naved

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-20