On Feb 14, 9:33 pm, Krishna Gollapudi <[email protected]> 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

Your jmeter script needs to:

* maintain a session
* parse the form and submit the security token contained therin

otherwise, the security component will just blackhole your post.

if you're already doing that have a look at the security component
code - when you find where it is discarding the post, you should know
how to correct your script.

AD
PS "entirexes"?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to