FYI the HTTP Sampler supports PUT http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Request
On Thu, Oct 14, 2010 at 4:14 PM, Simon Sadedin <[email protected]>wrote: > > On 23/08/2010 10:32 PM, Tushar Joshi wrote: > >> Priya, >> >> AFAIK RESTful API follows calling web server with GET and POST messages. >> JMeter fully supports GET and POST methods and hence I see no problem in >> using JMeter for RESTful services >> > This isn't quite true. Many RESTful APIs utilize PUT requests, some even > use DELETE. However most will accept POST especially if you supply the > header > > X-HTTP-Method-Override: <real header> > > However even then you might have problems with JMeter because a) the server > might not accept that header and want a real PUT but also b) because many > RESTful APIs use the raw body of the PUT or POST rather than form encoding, > whereas JMeter expects to encode the requests parameters. I'm not sure if > there's a way to get JMeter to send such a request - there might well be, > but it goes beyond my experience. > > So it depends a bit exactly how "RESTful" the API is. > > Cheers, > > Simon > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

