users@jersey.java.net

RE: [Jersey] ImplicitProduces annotation

From: Camel Christophe <ccamel_at_cls.fr>
Date: Mon, 28 Jun 2010 14:34:34 +0200

Here is the curl request in verbose mode:

>curl -verbose -H "Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,i
mage/png,*/*;q=0.5" -u user:passwd http://localhost:8080/test-rest/foo
* About to connect() to proxy proxy.test.fr port 8080 (#0)
* Trying 10.1.10.4... connected
* Connected to proxy.test.fr (10.1.10.4) port 8080 (#0)
* Server auth using Basic with user 'user'
> GET http://localhost:8080/test-rest/foo HTTP/1.1
> Authorization: Basic YWRtaW46cGFzc3dk
> User-Agent: curl/7.19.5 (i586-pc-mingw32msvc) libcurl/7.19.5
zlib/1.2.3
> Host: localhost:8080
> Referer: rbose
> Proxy-Connection: Keep-Alive
> Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,i
mage/png,*/*;q=0.5
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: Apache-Coyote/1.1
< Content-Language: en
< X-Variant: application/xhtml+xml, text/html,
application/vnd.sun.wadl+xml, application/xml
< Content-Type: application/xml
< Date: Mon, 28 Jun 2010 12:31:12 GMT
< X-Cache: MISS from proxy
< Proxy-Connection: close
<
<

Strange isn't it ?