Also check if the site has csrf protection. Sent on my BlackBerry® from Vodafone
-----Original Message----- From: Deepak Shetty <[email protected]> Date: Mon, 23 Aug 2010 10:35:10 To: JMeter Users List<[email protected]> Reply-To: "JMeter Users List" <[email protected]> Subject: Re: Jmeter gets response code 403 on post methods This is asked and answered in various forms on these mail archives - But basically you need to compare what is being sent by your browser (fiddler - live http headers etc) to what your test script sends . This usually needs you to a. Ensure that Follow redirects are sent on all samplers (instead of redirect automatically) b. Figure out how your application manages session ids (if by cookie , you should be ok , if by parameter in URL then your script wont work) c. Figure out which parameters are dynamic and use extractors to extract them into variables and send them as part of the next request. Take a look at what your browser does for the 3 steps you mention and compare with Jmeter. Use the View Results Tree Listener in Jmeter regards deepak On Mon, Aug 23, 2010 at 10:26 AM, cal0y <[email protected]>wrote: > > Hi, > > I am not a developer and i am new to Jmeter. I have recorded a simpe > testplan through jmeter proxy server and i think the steps were recorded > fine. When i run the test plan the post method returns a Response code > 403(Forbidden) every time. This post method is simply a submit form that > requires values from the user and save them in the database. At first i > thought i just missed a cookie manager but it still returned a Response > Code > 403 after i added one. Am i missing something else? Any help would > appreciated. > > My test plan looks like this: > > Test Plan > Thread Group > Http Request Defaults > Http Cookie Manager > Http Request for main page load > Http Request for Submit page load > Http Request for Submit page submission (Post method) > > Here are the header manager values of the post method: > > Content-Type application/x-www-form-urlencoded > Accept-Language en-us,en;q=0.5 > Accept > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Keep-Alive 300 > User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.9.1.11) Gecko/20100701 Firefox/3.5.11 (.NET CLR 3.5.30729) > Referer http://localhost:8080********* > Accept-Encoding gzip,deflate > Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Jmeter-gets-response-code-403-on-post-methods-tp2645078p2645078.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

