From: David D. K. <ddk...@ki...> - 2005-07-15 14:48:57
|
Shouldn't the web server be smart enough NOT to send compressed responses if the client doesn't advertise that it can handle them? I'm pretty sure the client must tell the web server if it can handle compressed responses, and if it can't, then the web server shouldn't send them back. Are you adding an HTTP header to the outgoing request to advertise this from within Htmlunit? Or is the web server "forcing" compressed content on Htmlunit, and if so, what web server are you using? Dave On Jul 11, 2005, at 1:43 PM, Brad Clarke wrote: > I would think that would be a httpclient thing, but they seem to > have dumped it off > to their client applications: > > http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/ > 200502.mbox/%3C4...@ya...%3E > > Doesn't look hard but I've no way to test it so I wouldn't know if > it worked. If > you'd like to submit a patch it would be appreciated :) > > > Brad C > > --- Ritesh Trivedi <ru...@ya...> wrote: > > >> Hi, >> >> Looks like HTMLUnit is not handling the compressed responses from >> the http server >> (http 1.1). Most of the browsers seem to uncompress the response >> from the server >> based on (content-encoding http response header value) and render >> the page. >> >> Does HTMLUnit have any support for compressed response? >> >> Thanks >> Ritesh >> |