harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "李竞沁" <littlee1...@gmail.com>
Subject Re: [classlib] [luni] HttpURLConnection does not have the "Accept" header (HARMONY-6036)
Date Tue, 09 Dec 2008 04:14:15 GMT
Hi Tim,Should we give some default value to some HTTP headers, such as
Accept: */*?

Actually RI used to have the method URLConnection.
setDefaultRequestProperty(), but now it is deprecated. I have no idea about
it.

On Tue, Dec 9, 2008 at 12:00 PM, Tim Ellison <t.p.ellison@gmail.com> wrote:

> Kevin Zhou wrote:
> > Maybe this violates the HTTP/1.1 spec, should we abandon these servers?
> > No, I don't think so. RI, IE and Firefox all send Accept header to
> support
> > such servers.
> > Why don't we follow this as well to satisfy with our potential clients?
>
> Thanks for the explanation -- it is starting to make sense now you tell
> me the server is misbehaving.
>
> Remaining question: do we just mimic the RI's accept header which seems
> to have a preference for some mime types, or just go for Accept: */* ?
>
> Regards,
> Tim
>
>


-- 
Yours sincerely,
Charles Lee

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message