Hi Florent,

The response body is merely an unparsed content string, not real binary. If you 
know for sure that it is actually XML, you can try to use 
xdmp:unquote($response[2]), that just might do the trick.

Kind regards,
Geert

>


Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.


> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Florent Georges
> Sent: woensdag 4 maart 2009 11:55
> To: General Mark Logic Developer Discussion; Danny Sokolsky
> Subject: Re: [MarkLogic Dev General] xdmp:http-get() and
> multipart response
>
>
> Danny Sokolsky wrote:
>
>   Thanks for your response,
>
> > If the request is a POST with a multipart/form-data type
> [...] Is that
> > what you are trying to do?
>
>   Not really.  I look for the other way around: when sending
> a GET and the *response* is a multipart one.  For what I've
> seen, the response is returned as a plain binary content, but
> I would like to have each part independently (part's headers
> + part's content.)  Do I have to parse the raw multipart
> response in XQuery, or is there anything existing for that purpose?
>
>   Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to