You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Alex Turner <Al...@Project-Network.com> on 2006/08/29 14:02:42 UTC

RE: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies

Sen,

The cookie would be coming from the server to start with.  You will only see it in the request in a later request.  You should look in the response or in the next request to the same domain.

Cheers

AJ

Alexander J Turner Ph.D.
www.deployview.com
www.nerds-central.blogspot.com
www.project-network.com

-----Original Message-----
From: Sen, Kakoli [mailto:Kakoli.Sen@ps.net] 
Sent: 29 August 2006 07:44
To: JMeter Users List
Subject: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies

Hi,
  This is what I did : Added View tree to the proxy server. Then the site with the cookie produces the fol. in 'Request' tab of view tree :


GET  <http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm> http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm

[no cookies]

Request Headers:
Accept-Encoding: gzip, deflate
Host: www.codehouse.com
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Cookie: cookie_demo=@id_first_nameKakoli@id_last_nameSen@id_age33
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*

And the 'Response data' in HTML does not reflect the data stored in the cookies.

But the page in IE reflects the data store in the cookies.

Now, where is the problem? 

Also, how do I map the cookie data as it appears in the 'Request' of view tree to HTTP cookie manager?

If the proxy could record the cookie directly onto a cookie manager like it does for header in Http header manager, then all this confusion could have been avoided.

Regards,

Kakoli

-----Original Message-----
From: Alex Turner [  <ma...@Project-Network.com> mailto:Alex.Turner@Project-Network.com]
Sent: Monday, August 28, 2006 6:38 PM
To: JMeter Users List
Subject: RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies


Sen,

If you run the proxy with a tree viewer, then you get the cookies turning up in the recorded headers.  You can then copy these over to the cookie manager.

AJ

Alexander J Turner Ph.D.
www.deployview.com
www.nerds-central.blogspot.com
www.project-network.com

-----Original Message-----
From: Sen, Kakoli [  <ma...@ps.net> mailto:Kakoli.Sen@ps.net]
Sent: 28 August 2006 12:47
To: JMeter Users List
Subject: TPN POSSIBLE SPAM:Jmeter proxy recording cookies

Hi all,
    I am recording requests to an HTTP site which uses cookies, through JMeter's proxy. But the proxy does not seem to record the cookies. Is that so?
   Then how do I test a web-site having cookies? I intend to use the Cookie Manager with hard-coded cookie values, which I thought would be automatically recorded by the proxy.

Regards,
Kakoli

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 25/08/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 25/08/2006


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




-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006
 

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


Re: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies

Posted by sebb <se...@gmail.com>.
As Alex says, cookies come from the server, not the client.

Headers are defined by the client, and so you need to enter them in
the Header Manager - and the proxy records them if required.

Cookies are not, so are not recorded; you just need a Cookie Manager
to look after them when you re-run the test.

S.
On 29/08/06, Alex Turner <Al...@project-network.com> wrote:
> Sen,
>
> The cookie would be coming from the server to start with.  You will only see it in the request in a later request.  You should look in the response or in the next request to the same domain.
>
> Cheers
>
> AJ
>
> Alexander J Turner Ph.D.
> www.deployview.com
> www.nerds-central.blogspot.com
> www.project-network.com
>
> -----Original Message-----
> From: Sen, Kakoli [mailto:Kakoli.Sen@ps.net]
> Sent: 29 August 2006 07:44
> To: JMeter Users List
> Subject: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies
>
> Hi,
>  This is what I did : Added View tree to the proxy server. Then the site with the cookie produces the fol. in 'Request' tab of view tree :
>
>
> GET  <http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm> http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm
>
> [no cookies]
>
> Request Headers:
> Accept-Encoding: gzip, deflate
> Host: www.codehouse.com
> Accept-Language: en-us
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
> Cookie: cookie_demo=@id_first_nameKakoli@id_last_nameSen@id_age33
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
>
> And the 'Response data' in HTML does not reflect the data stored in the cookies.
>
> But the page in IE reflects the data store in the cookies.
>
> Now, where is the problem?
>
> Also, how do I map the cookie data as it appears in the 'Request' of view tree to HTTP cookie manager?
>
> If the proxy could record the cookie directly onto a cookie manager like it does for header in Http header manager, then all this confusion could have been avoided.

> Regards,
>
> Kakoli
>
> -----Original Message-----
> From: Alex Turner [  <ma...@Project-Network.com> mailto:Alex.Turner@Project-Network.com]
> Sent: Monday, August 28, 2006 6:38 PM
> To: JMeter Users List
> Subject: RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies
>
>
> Sen,
>
> If you run the proxy with a tree viewer, then you get the cookies turning up in the recorded headers.  You can then copy these over to the cookie manager.
>
> AJ
>
> Alexander J Turner Ph.D.
> www.deployview.com
> www.nerds-central.blogspot.com
> www.project-network.com
>
> -----Original Message-----
> From: Sen, Kakoli [  <ma...@ps.net> mailto:Kakoli.Sen@ps.net]
> Sent: 28 August 2006 12:47
> To: JMeter Users List
> Subject: TPN POSSIBLE SPAM:Jmeter proxy recording cookies
>
> Hi all,
>    I am recording requests to an HTTP site which uses cookies, through JMeter's proxy. But the proxy does not seem to record the cookies. Is that so?
>   Then how do I test a web-site having cookies? I intend to use the Cookie Manager with hard-coded cookie values, which I thought would be automatically recorded by the proxy.
>
> Regards,
> Kakoli
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 25/08/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 25/08/2006
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006
>
>
> ---------------------------------------------------------------------
> 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