Hi Tim,No spec to insist what should be put in the request header. It is what the RI does.
On Tue, Dec 9, 2008 at 12:35 AM, Tim Ellison <[EMAIL PROTECTED]> wrote: > 李竞沁 wrote: > > Hi Kevin, > > The spec of Http said that "all headers except Host are optional.". And I > > have investigated in the java api spec. No information about what headers > > should be sent by the HttpURLConnection. It maybe a different behavior > > between RI and harmony. > > By the way, user can use setRequestProperty(key, value) method to set the > > header field which he want to send. > > Sorry, but I'm still back at questioning why we would express a > preference for test/html, image/gif and image/jpeg at all on the "GET /" > request. > > What am I missing? > Tim > -- Yours sincerely, Charles Lee
