curl-library
Re: Testing Curl put for Rest with XML
Date: Fri, 6 Apr 2012 22:29:35 -0700
In case you dont get a better response, have you thought about putting both
those items into one peice of XML?
I mean for instance this:
<data><User><ip_address>foo</ip_address></User><Field><page_uri>something</page_uri></Field></data>
On Fri, Apr 6, 2012 at 7:21 PM, Rajesh Khan <rajeshkhan808_at_gmail.com> wrote:
> 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
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-07