Before I dig deeper into this issue I wanted to ask if I'm using the
EncoderRepresentation correctly.
Person.getVariants()
returns
new EncoderRepresentation(Encoding.GZIP,
new StringRepresentation(json.toString(4), MediaType.APPLICATION_JSON));
This works great in the browser, just the way it should.
But not from curl when I don't send the Accept: gzip.
curl -v -H "Accept: application/json" http://localhost:8182/person/mark
* About to connect() to localhost port 8182
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8182
> GET /person/mark HTTP/1.1
> User-Agent: curl/7.15.4 (i686-pc-cygwin) libcurl/7.15.4 OpenSSL/0.9.8d
> zlib/1.2.3
> Host: localhost:8182
> Accept: application/json
>
< HTTP/1.1 200 The request has succeeded
< Date: Sat, 18 Nov 2006 02:26:22 GMT
< Server: Noelios-Restlet-Engine/1.0b21
< Content-Encoding: gzip
< Content-Type: application/json; charset=ISO-8859-1
< ETag: "-138557757"
< Content-Length: 240
gzip content follows
The server shouldn't send gzip unless the client asks for it, right?
Chris
--
Chris Grindstaff | http://gstaff.org