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