users@jax-rs-spec.java.net

[jax-rs-spec users] Re: Media type in client request

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Sun, 10 Mar 2013 14:59:56 +0100

On Mar 7, 2013, at 1:25 PM, Arun Gupta <Arun.p.Gupta_at_oracle.COM> wrote:

> In the Client API, what is the usecase for specifying the media type in the request() method ?
>
> Typically, I'd typify the get() method in which case on-the-wire format does not really matter.

You may want to hint server what data types you accept or prefer. See HTTP Accept header documentation for more.

Marek
>
> Arun
>
> --
> http://twitter.com/arungupta
> http://blogs.oracle.com/arungupta
>