The zip built-ins (xdmp:zip-get et al) do not do gzip, just zip.  You
will have to send the binary content off somewhere else (to Java for
example, or preprocess it before it gets to MarkLogic) to gunzip it.  If
it was zip you could make it work completely within MarkLogic Server.
Maybe there is a parameter to Apache-Coyote to use zip instead of gzip?

-Danny

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Eric
Palmitesta
Sent: Tuesday, January 06, 2009 10:31 AM
To: ML Developer Mailing List
Subject: [MarkLogic Dev General] xdmp:http-get and gzip

I have an Apache-Coyote/1.1 server which likes to send data gip'd.  I've

changed the default Accept-Encoding in FireFox from "gzip,deflate" to ""

  and "*", and the response Content-Encoding is still "gzip" (should I 
be trying something else?).  For now I'm assuming that there isn't a way

to force the server not to send compressed binary data.

Can MarkLogic's xdmp:http-get handle gzip Content-Encoding?

I'm getting "Invalid UTF-8 escape sequence, document is not UTF-8 
encoded", I believe because it's operating on binary (gzip) data.  The 
data I'm requesting is xml.

Is there maybe a way to use xdmp:zip-get to re-inflate the stream?

Cheers,

Eric
_______________________________________________
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