You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by krishnajmeter <gn...@gmail.com> on 2011/02/14 21:29:25 UTC
JMeter - CakePHP - Form onSubmit - Invalid Request
Hello,
After reading my issue, If you feel like this is something related to
CakePHP please forgive me. I wanted to try all the available options.
I have been trying to test a CakePHP application using JMeter for a couple
of days now. It's for sure that after lot of research I am stuck with a
"Invalid Request" reply on form submit. I am tracking the token values from
the response and sending them into the next request. I used Tamper_data
plugin for FireBug to observe the request/response headers and
request/response parameters. Everything checks out really well with the
jmeter request headers and Post parameters. Even then I get "Invalid
Request" error from the controller. I am pasting the filter method in the
controller.
<?php
class EntirexesController extends AppController{
var $name = 'Entirexes';
var $helpers = array('Html','Form','Javascript');
var $components= array('RegistrationLookup');
var $uses = array();
function beforeFilter() {
parent::beforeFilter();
$this->Security->requirePost('delete');
$this->Security->requireAuth();
$this->set('active_tab', 'Help');
$this->set('crumbtrail', array(
'Help'=>'/index',
'Entirex Testing' => '/index'
));
}
thanks,
Krishna
--
View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-CakePHP-Form-onSubmit-Invalid-Request-tp3385028p3385028.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: JMeter - CakePHP - Form onSubmit - Invalid Request
Posted by Deepak Shetty <sh...@gmail.com>.
its probably more helpful if you paste what the browser sends/receives and
what jmeter sends/receives.
On Mon, Feb 14, 2011 at 12:29 PM, krishnajmeter <gn...@gmail.com>wrote:
>
> Hello,
> After reading my issue, If you feel like this is something related to
> CakePHP please forgive me. I wanted to try all the available options.
> I have been trying to test a CakePHP application using JMeter for a couple
> of days now. It's for sure that after lot of research I am stuck with a
> "Invalid Request" reply on form submit. I am tracking the token values from
> the response and sending them into the next request. I used Tamper_data
> plugin for FireBug to observe the request/response headers and
> request/response parameters. Everything checks out really well with the
> jmeter request headers and Post parameters. Even then I get "Invalid
> Request" error from the controller. I am pasting the filter method in the
> controller.
>
> <?php
> class EntirexesController extends AppController{
>
> var $name = 'Entirexes';
> var $helpers = array('Html','Form','Javascript');
> var $components= array('RegistrationLookup');
> var $uses = array();
> function beforeFilter() {
> parent::beforeFilter();
> $this->Security->requirePost('delete');
> $this->Security->requireAuth();
> $this->set('active_tab', 'Help');
> $this->set('crumbtrail', array(
> 'Help'=>'/index',
> 'Entirex Testing' => '/index'
> ));
> }
>
>
> thanks,
> Krishna
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/JMeter-CakePHP-Form-onSubmit-Invalid-Request-tp3385028p3385028.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>