You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Carleen <di...@gmail.com> on 2013/01/24 02:14:15 UTC

POST request returns 415 error

Hello all:

I'm using a HTTP Request sampler and made the POST body as small as
possible. I even took the xml out and just used text. No matter what's in
the body, I get a 415 - Unsupported Media Type error. What am I missing? My
implementation is HC3, protocol https, and I don't have anything else
selected (other than the POST, of course). I also set the Content-Type to
text/xml.

I should add that this POST works fine in SoapUI, so I don't think it's a
server issue.
-- 
Carleen

Re: POST request returns 415 error

Posted by Philippe Mouawad <ph...@gmail.com>.
Did you check the content type of your request ?

What is it ? What should it be ? To set it, add a header manager as child
of your sampler and set :

   -

   content-type in column1
   -

   application/xml in columnz


I suppose it's you ?:
http://stackoverflow.com/questions/14491521/jmeter-post-returns-415-unsupported-media-type

https://twitter.com/philmdot

On Thu, Jan 24, 2013 at 2:14 AM, Carleen <di...@gmail.com> wrote:

> Hello all:
>
> I'm using a HTTP Request sampler and made the POST body as small as
> possible. I even took the xml out and just used text. No matter what's in
> the body, I get a 415 - Unsupported Media Type error. What am I missing? My
> implementation is HC3, protocol https, and I don't have anything else
> selected (other than the POST, of course). I also set the Content-Type to
> text/xml.
>
> I should add that this POST works fine in SoapUI, so I don't think it's a
> server issue.
> --
> Carleen
>



-- 
Cordialement.
Philippe Mouawad.

Re: POST request returns 415 error

Posted by Shmuel Krakower <sh...@gmail.com>.
Hi
Would suggest that if not sure what is missing, try to record it with the
HTTP Proxy Server.
Another thing which you can do to understand what's missing, is use
Wireshark when playing your script and when running the same from SoapUI
and then simply compare them up.

Best,

Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.


On Thu, Jan 24, 2013 at 3:14 AM, Carleen <di...@gmail.com> wrote:

> Hello all:
>
> I'm using a HTTP Request sampler and made the POST body as small as
> possible. I even took the xml out and just used text. No matter what's in
> the body, I get a 415 - Unsupported Media Type error. What am I missing? My
> implementation is HC3, protocol https, and I don't have anything else
> selected (other than the POST, of course). I also set the Content-Type to
> text/xml.
>
> I should add that this POST works fine in SoapUI, so I don't think it's a
> server issue.
> --
> Carleen
>