cURL / Mailing Lists / curl-library / Single Mail

curl-library

Testing Curl put for Rest with XML

From: Rajesh Khan <rajeshkhan808_at_gmail.com>
Date: Fri, 6 Apr 2012 20:21:37 -0600

The following cul command works when i am passing a single XML object
curl -X PUT -HContent-type:application/xml --data
"<User><ip_address>foo</ip_address></User>"
http://localhost:8080/Rest/rest/sub/Whatever

but when passing two objects like such curl -X PUT
-HContent-type:application/xml --data "
"<User><ip_address>foo</ip_address></User>"
"<Field><page_uri>something</page_uri></Field>""
http://localhost:8080/EdaRest/rest/sub/Whatever
fails ? one object is User and other is Field is this the correct parameter
when passing two objects as xml ??

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-07