You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Lincoln, Adym" <Ad...@LibertyMutual.com> on 2006/02/06 21:47:03 UTC

Proxy Server Recorder...Capturing POST pages...

Hi all,

I'm using the HTTP Proxy Server element to capture and record a series
of web requests.  I setup the Proxy Server and a Recording Controller
without any issues.  I can get the HTTP requests to be recorded by the
Proxy Server (and the Recording Controller) except for pages that are
POST requests.

In the following recording session, I stepped thru a couple of Mantis
PHP pages while I had both the JMeter Proxy Server on as well as "tail
-f" of the Apache web server.  What's missing is the POST to the
set_project.php page on the JMeter Recording Controller.


Jmeter (Facsimile of the GUI screen)
-------------------------------------------------
+ -- WorkBench 
    |
    - -- HTTP Proxy Server 
    | 
    + -- Recording Controller
        | 
        + -- /mantis-dev/login_page.php 
        | 
        + -- /mantis-dev/login_cookie_test.php 
        | 
        + -- /mantis-dev/main_page.php 
        | 
        + -- /mantis-dev/main_page.php 
        | 
        + -- /mantis-dev/logout_page.php 
        | 
        + -- /mantis-dev/login_page.php 

Apache (NOTE: I removed the timestamps for space)
-------------------------------------------------
<snip>
127.0.0.1 - - [... -0500] "GET /mantis-dev/ HTTP/1.1" 302 -
127.0.0.1 - - [... -0500] "GET /mantis-dev/login_page.php HTTP/1.1" 200
3589
127.0.0.1 - - [... -0500] "POST /mantis-dev/login.php HTTP/1.1" 302 -
127.0.0.1 - - [... -0500] "GET
/mantis-dev/login_cookie_test.php?return=main_page.php HTTP/1.1" 302 -
127.0.0.1 - - [... -0500] "GET /mantis-dev/main_page.php HTTP/1.1" 200
35065
127.0.0.1 - - [... -0500] "POST /mantis-dev/set_project.php HTTP/1.1"
302 -
127.0.0.1 - - [... -0500] "GET /mantis-dev/main_page.php HTTP/1.1" 200
31569
127.0.0.1 - - [... -0500] "GET /mantis-dev/logout_page.php HTTP/1.1" 302
-
127.0.0.1 - - [... -0500] "GET /mantis-dev/login_page.php HTTP/1.1" 200
3589
</snip>

Why doesn't JMeter record the POST to login.php or set_project.php?  Can
JMeter be configured to capture these?  I couldn't find anything in the
docs or on Nabble...

thx in advance,

Adym Lincoln
I/S Corporate - I/S Internal Applications
603-245-8245
Ext : 58245
adym.lincoln@libertymutual.com

...
It's a bug planet...it's an ugly planet...ever feel like your software
project is going in the wrong direction.
...

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Proxy Server Recorder...Capturing POST pages...

Posted by sebb <se...@gmail.com>.
Seems like a bug.

Were there any errors reported in jmeter.log? Perhaps there was a
problem creating the sampler for the POST request.

S.
On 06/02/06, Lincoln, Adym <Ad...@libertymutual.com> wrote:
> Hi all,
>
> I'm using the HTTP Proxy Server element to capture and record a series
> of web requests.  I setup the Proxy Server and a Recording Controller
> without any issues.  I can get the HTTP requests to be recorded by the
> Proxy Server (and the Recording Controller) except for pages that are
> POST requests.
>
> In the following recording session, I stepped thru a couple of Mantis
> PHP pages while I had both the JMeter Proxy Server on as well as "tail
> -f" of the Apache web server.  What's missing is the POST to the
> set_project.php page on the JMeter Recording Controller.
>
>
> Jmeter (Facsimile of the GUI screen)
> -------------------------------------------------
> + -- WorkBench
>    |
>    - -- HTTP Proxy Server
>    |
>    + -- Recording Controller
>        |
>        + -- /mantis-dev/login_page.php
>        |
>        + -- /mantis-dev/login_cookie_test.php
>        |
>        + -- /mantis-dev/main_page.php
>        |
>        + -- /mantis-dev/main_page.php
>        |
>        + -- /mantis-dev/logout_page.php
>        |
>        + -- /mantis-dev/login_page.php
>
> Apache (NOTE: I removed the timestamps for space)
> -------------------------------------------------
> <snip>
> 127.0.0.1 - - [... -0500] "GET /mantis-dev/ HTTP/1.1" 302 -
> 127.0.0.1 - - [... -0500] "GET /mantis-dev/login_page.php HTTP/1.1" 200
> 3589
> 127.0.0.1 - - [... -0500] "POST /mantis-dev/login.php HTTP/1.1" 302 -
> 127.0.0.1 - - [... -0500] "GET
> /mantis-dev/login_cookie_test.php?return=main_page.php HTTP/1.1" 302 -
> 127.0.0.1 - - [... -0500] "GET /mantis-dev/main_page.php HTTP/1.1" 200
> 35065
> 127.0.0.1 - - [... -0500] "POST /mantis-dev/set_project.php HTTP/1.1"
> 302 -
> 127.0.0.1 - - [... -0500] "GET /mantis-dev/main_page.php HTTP/1.1" 200
> 31569
> 127.0.0.1 - - [... -0500] "GET /mantis-dev/logout_page.php HTTP/1.1" 302
> -
> 127.0.0.1 - - [... -0500] "GET /mantis-dev/login_page.php HTTP/1.1" 200
> 3589
> </snip>
>
> Why doesn't JMeter record the POST to login.php or set_project.php?  Can
> JMeter be configured to capture these?  I couldn't find anything in the
> docs or on Nabble...
>
> thx in advance,
>
> Adym Lincoln
> I/S Corporate - I/S Internal Applications
> 603-245-8245
> Ext : 58245
> adym.lincoln@libertymutual.com
>
> ...
> It's a bug planet...it's an ugly planet...ever feel like your software
> project is going in the wrong direction.
> ...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org