HTTP Request sampler's Content Encoding field is related to Accept-Charset
header. UTF-8, UTF-16, ISO-8859-1, etc.
If you want to allow gzip you should use an HTTP Header Manager inside you
sampler with a parameter/value like one of these:
Accept-Encoding/gzip
or
Accept-Encoding/gzip,defalte
or
some other combination of content compression encoding values.
Hope it helps you.
Flávio Cysne
2012/8/10 Andrej van der Zee <andrejvanderzee@gmail.com>
> Hi,
>
> I am trying to gzip an HTTP *request* to the server (responses work
> fine by setting the HTTP header Accept-Encoding: gzip). I found an
> option in the sampler called "Content encoding" so I thought: Bingo!
> But unfortunately I get the following Java exception preventing the
> request from even being send to the server:
>
> Response code: Non HTTP response code: java.io.UnsupportedEncodingException
> Response message: Non HTTP response message: gzip
>
> So what is the purpose of the sampler setting? If not setting the
> "Content-Encoding" HTTP request header and gzip the request, which
> would be rather confusing, how should I gzip HTTP requests?
>
> Cheers,
> Andrej
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
|