The test plan has only one sampler, and loop count is zero, and the
Cookie Manager is set to clear cookies each iteration. So there is no
chance that the cookie will be sent anywhere.

The sampler is also set to Redirect Automatically, which means you
should not be seeing 302s.


On 05/12/06, JerryWho <[EMAIL PROTECTED]> wrote:

Hi Stefan,

Stefan Adamovsky wrote:
>
> The Http Sampler2 is the Http Request HTTP Client!
> Try to use the standard sampler HTTP Request, be sure you selected Follow
> Redirects. Add the HTTP Cookie Manager, select Clear Cookies for each
> interaction, set cookie Policy to compatibility. Don't try to add Session
> IDs or something like that here, the Cookie Manager will store these
> things for you and the will automatical sended with your HTTP Requests....
> Add a HTTP Header Manager!
>

I tried this, but without success. Looking at the first request I see that
the cookie was sent:
GET / HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.5.0_06
Host: test.jerrywho.de
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-type: application/x-www-form-urlencoded

HTTP/1.1 302 Found
Date: Tue, 05 Dec 2006 19:00:52 GMT
Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29
X-Powered-By: PHP/4.4.3
Set-Cookie: MeinCookie=1165345252
Location: /ziel.php
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

But the redirected request doesn't use the cookie:
GET /ziel.php HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.5.0_06
Host: test.jerrywho.de
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-type: application/x-www-form-urlencoded

HTTP/1.1 200 OK
Date: Tue, 05 Dec 2006 19:00:52 GMT
Server: Apache/1.3.37 (Unix) PHP/4.4.3 mod_perl/1.29
X-Powered-By: PHP/4.4.3
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

I put my Jmeter-config on that webserver: http://test.jerrywho.de/Demo.jmx
Maybe you can have a look at it?

TIA
--
View this message in context: 
http://www.nabble.com/Losing-Cookie-while-following-redirect-tf2761354.html#a7705832
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to