users@glassfish.java.net

Requests with Content-Encoding: gzip

From: <glassfish_at_javadesktop.org>
Date: Mon, 22 Mar 2010 04:54:06 PDT

I have created a simple RESTful web service that accept XML requests. For testing I can successfully post an XML file from the command line with

  curl --header 'Content-Type: application/xml' -d'@request.xml' http://localhost/ws/rest/upload

Now I'm trying to send a gzip-compressed request:

  curl --header 'Content-Type: application/xml' --header 'Content-Encoding: gzip' -d'@request.xml.gz' http://localhost/ws/rest/upload

However Glassfish rejects it with 400: Bad Request. What is wrong?

Thanks

Mirko
[Message sent by forum member 'mnasato']

http://forums.java.net/jive/thread.jspa?messageID=393101