I managed to get it working - it seems that on PUT requests you are
required to declare an encoding scheme, whereas on POST you are not, so
when I set it to UTF8 it started working as expected.

On Fri, Feb 10, 2012 at 2:59 PM, Philippe Mouawad <
[email protected]> wrote:

> Hello,
> CAN you open jmeter.log and search for this exception full stack trace ?
>
> Maybe you should open à bug in Bugzilla attaching your most simple test
> plan showing thé issue + jmeter.log and if public the Website you're
> testing.
> Please remove any confidential data.
> Regards
> Philippe
>
> On Friday, February 10, 2012, Eric Olson <[email protected]> wrote:
> > Hi,
> >
> > I'm trying to use an HTTP sampler to send a PUT request, but I can't get
> it
> > to accept my payload, nor can I get it to accept an empty body.  In both
> > cases I get the following error:
> >
> > Response code: Non HTTP response code: java.lang.NullPointerException
> > Response message: Non HTTP response message: charsetName
> >
> > This same request works fine when switched to POST - it seems to only be
> > PUT that won't work.  I did some quick googling and found an article from
> > 2008 claiming PUT doesn't work in JMeter (unless you load body from a
> file,
> > but I need the ability to dynamically alter the body).  That can't
> possibly
> > still be the case, can it?  I'm trying to send a json payload, and I've
> set
> > a header to override content type to application/json.
> >
> > -Eric
> >
>
> --
> Cordialement.
> Philippe Mouawad.
>

Reply via email to