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 <[email protected]> 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

Reply via email to