You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Chris Hall <ch...@yahoo.com> on 2008/08/22 15:51:11 UTC
Session ID changes for a POST request
Hi all,
I've been getting problems with Session ID's.
I've added a HTTP cookie manager, which seems to have resolved most of my
problems, but I@ve come across an instance where the session ID is not being
passed correctly to the URL.
ie
GET request #1:
GET http://localhost:8080/welcome.do?action=form
Cookie Data:
JSESSIONID=195374BBEEE86BB9633B1CF93B48A03C
Request Headers:
Connection: keep-alive
but on the next page
POST request #1:
POST
http://localhost:8080/gate.do;jsessionid=927141B2B85E34E8F586B1FEC7CED71C?action=index
POST data:
Name=MyName&Password=pass
Cookie Data:
JSESSIONID=195374BBEEE86BB9633B1CF93B48A03C
Request Headers:
Connection: keep-alive
Content-Length: 294
Content-Type: application/x-www-form-urlencoded
>From here, you can see the cookie has the same session ID for both requests,
except for the post, the url passed is incorrect.
am i missing something simple here? I'm very new to JMeter it has to be
said.
Rgds,
Chris
--
View this message in context: http://www.nabble.com/Session-ID-changes-for-a-POST-request-tp19107615p19107615.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: Session ID changes for a POST request
Posted by Andrey Beznogov <an...@googlemail.com>.
Hi,
please check the HTTP Request Sampler which generates the POST request
. If its Path is set to
"/gate.do;jsessionid=927141B2B85E34E8F586B1FEC7CED71C?action=index",
then thats where the problem is.
I am not sure if it will work, but try changing it to "/gate.do?action=index".
Regards,
Andrey
On Fri, Aug 22, 2008 at 5:51 PM, Chris Hall <ch...@yahoo.com> wrote:
>
> Hi all,
> I've been getting problems with Session ID's.
>
> I've added a HTTP cookie manager, which seems to have resolved most of my
> problems, but I@ve come across an instance where the session ID is not being
> passed correctly to the URL.
>
> ie
> GET request #1:
> GET http://localhost:8080/welcome.do?action=form
>
> Cookie Data:
> JSESSIONID=195374BBEEE86BB9633B1CF93B48A03C
>
> Request Headers:
> Connection: keep-alive
>
> but on the next page
> POST request #1:
>
> POST
> http://localhost:8080/gate.do;jsessionid=927141B2B85E34E8F586B1FEC7CED71C?action=index
>
> POST data:
> Name=MyName&Password=pass
>
> Cookie Data:
> JSESSIONID=195374BBEEE86BB9633B1CF93B48A03C
>
> Request Headers:
> Connection: keep-alive
> Content-Length: 294
> Content-Type: application/x-www-form-urlencoded
>
> From here, you can see the cookie has the same session ID for both requests,
> except for the post, the url passed is incorrect.
>
> am i missing something simple here? I'm very new to JMeter it has to be
> said.
>
> Rgds,
> Chris
> --
> View this message in context: http://www.nabble.com/Session-ID-changes-for-a-POST-request-tp19107615p19107615.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
>
>
--
diem perdidi
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org