Re: cookie manager not working

2011-06-03 Thread sebb
On 3 June 2011 05:01, Daniel Watrous daniel.watr...@gmail.com wrote:
 Thank You.

 This works wonderfully. It's exactly what I was hoping to be able to
 accomplish. You all really went the extra mile to help me out.

 Can anyone tell me why my exclude definitions on the proxy didn't
 exclude the files I expected?

I already answered that. Probably spurious characters in the regexes.

BTW, you can select the Workbench and save it to a file, then Merge it later.

 Daniel

 On Thu, Jun 2, 2011 at 9:27 PM, Deepak Shetty shet...@gmail.com wrote:
 You are right , that is the problem . However im wondering what the right
 behavior is
 If I request /testjmeter/wp-login.php
 Then arent these valid paths for set-cookie
 /
 /testjmeter
 /testjmeter/wp-login.php
 /testjmeter/child/  -- This is the problematic one. I was under the
 impression this was allowed?

 if my page is at the root /wp-login.php then I think all directories under /
 are allowed in the Set-Cookie?

 I tried to look through the cookie RFC and didnt seem to find information
 one way or the other

 I can verify your fix works
 CookieManager.check.cookies=false -- Daniel this should work without needing
 to manipulate cookies (In my example set this in jmeter.properties and
 disable the pre processor that adds the cookie)



 regards
 deepak






 On Thu, Jun 2, 2011 at 6:48 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 02:32, Deepak Shetty shet...@gmail.com wrote:
  Ok i will . Visually the cookies look fine and one of them does get sent
 in
  the next request (the one without path and http only)

 When I try, I get several cookies rejected, e.g. with the message:

 (Illegal path attribute /testjmeter/wp-admin. Path of origin:
 /testjmeter/wp-login.php)

 Maybe that is part of the problem?

  Daniel : see if
 
 http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
  for you. I added the missing cookie programattically (various
  hardcodes but you shoould be able to login - logout doesnt work because I
  need to remove the cookie i set)
 
  regards
  deepak
 
  On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:
 
  On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
   There seems to be a Jmeter Bug
  
   Login request gets the following as response
  
   Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
   Set-Cookie:
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
   path=/testjmeter/wp-content/plugins; httponly
   *Set-Cookie:
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
   path=/testjmeter/wp-admin; httponly
   *Set-Cookie:
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
  
   All good here
 
  Perhaps not - please enable Cookie Manager Debug logging to see if any
  of the cookies have been rejected, and why.
 
   The next request
   GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
   Cookie Data:
   wordpress_test_cookie=WP+Cookie+check;
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
  
   doesnt have the cookie above  that I bolded which has an explicit path
  and
   httponly (not sure which of the attributes cause a problem)
  
   Programatically setting the cookies seem to be the only workaround
  without
   code fix, can you please confirm (I dont think expiry date has
 naything
  to
   do with , like you say , past expiry is used to delete a cookie)
   regards
   deepak
  
  
   On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
  
   Yes; perhaps it is deliberately sending expired dates in order to
   delete the cookies. I have seen another server do this.
  
   From some biref experiments with your test site, I suspect the login
   problem is nothing to do with expired cookies after all, but there is
   probably some other setting that is not correct.
  
   Look for parameters that have odd-looking values; they may be being
   set by Javascript in the browser, in which case you will have to work
   out how to extract the relevant values from the previous reponse.
  
   Or record the login twice, and compare the generated test plans to
 see
   which entries have changed. You then have to work out how to extract
   the values they need. The Save Responses to a File Listener can be
   helpful here.
  
   BTW, JMeter cannot currently handle deflate encoding, so make sure
 you
   don't enable that in the Header Manager.
  
   Also, Excludes *do* work - make sure that there aren't any trailing
   spaces or other spurious characters in the fields.
  
   On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com
 wrote:
Did any of you notice that the Date of the request is accurate and
 so
are some of the cookies? WordPress seems to deliberately send the
login related cookies with the year old 

Re: cookie manager not working

2011-06-03 Thread sebb
On 3 June 2011 04:27, Deepak Shetty shet...@gmail.com wrote:
 You are right , that is the problem . However im wondering what the right
 behavior is
 If I request /testjmeter/wp-login.php
 Then arent these valid paths for set-cookie
 /
 /testjmeter
 /testjmeter/wp-login.php
 /testjmeter/child/  -- This is the problematic one. I was under the
 impression this was allowed?

The Netscape specs (such as they are) are not entirely clear on this.
I have found the following:

[1] the pathname component of the URL is compared with the path
attribute, and if there is a match, the cookie is considered valid and
is sent along with the URL request. The path /foo would match
/foobar and /foo/bar.html. The path / is the most general path.

RFC2109 says cookies should be rejected if The value for the Path
attribute is not a prefix of the request-URI.

My reading is that  /testjmeter/child/ is not allowed by either cookie spec.

 if my page is at the root /wp-login.php then I think all directories under /
 are allowed in the Set-Cookie?

If the path is set to /, then all files and directories under it are allowed.
However, as far as I can tell, if the path is set to /wp-login.php
then it is only valid for /wp-login.php (and ./wp-login.php/xzy if
that exists)

 I tried to look through the cookie RFC and didnt seem to find information
 one way or the other

See above.

 I can verify your fix works
 CookieManager.check.cookies=false -- Daniel this should work without needing
 to manipulate cookies (In my example set this in jmeter.properties and
 disable the pre processor that adds the cookie)

Best to add this to user.properties

[1] http://curl.haxx.se/rfc/cookie_spec.html
[2] 
http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/cookies.html

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



Re: cookie manager not working

2011-06-03 Thread Deepak Shetty
even www.wordpress.com does the same thing and it seems to work fine in FF

*https://en.wordpress.com/wp-login.php*
POST /wp-login.php HTTP/1.1
Set-Cookie: wordpress=VALUE; expires=Fri, 17-Jun-2011 19:32:09 GMT; *
path=/wp-admin;* domain=.wordpress.com; httponly

the browser is at url / , the post is to url */wp-login.php *- what is the
path to be compared with - the url the browser is at or the URL that is
being posted to. ?


regards
deepak


On Fri, Jun 3, 2011 at 4:26 AM, sebb seb...@gmail.com wrote:

 On 3 June 2011 04:27, Deepak Shetty shet...@gmail.com wrote:
  You are right , that is the problem . However im wondering what the right
  behavior is
  If I request /testjmeter/wp-login.php
  Then arent these valid paths for set-cookie
  /
  /testjmeter
  /testjmeter/wp-login.php
  /testjmeter/child/  -- This is the problematic one. I was under the
  impression this was allowed?

 The Netscape specs (such as they are) are not entirely clear on this.
 I have found the following:

 [1] the pathname component of the URL is compared with the path
 attribute, and if there is a match, the cookie is considered valid and
 is sent along with the URL request. The path /foo would match
 /foobar and /foo/bar.html. The path / is the most general path.

 RFC2109 says cookies should be rejected if The value for the Path
 attribute is not a prefix of the request-URI.

 My reading is that  /testjmeter/child/ is not allowed by either cookie
 spec.

  if my page is at the root /wp-login.php then I think all directories
 under /
  are allowed in the Set-Cookie?

 If the path is set to /, then all files and directories under it are
 allowed.
 However, as far as I can tell, if the path is set to /wp-login.php
 then it is only valid for /wp-login.php (and ./wp-login.php/xzy if
 that exists)

  I tried to look through the cookie RFC and didnt seem to find information
  one way or the other

 See above.

  I can verify your fix works
  CookieManager.check.cookies=false -- Daniel this should work without
 needing
  to manipulate cookies (In my example set this in jmeter.properties and
  disable the pre processor that adds the cookie)

 Best to add this to user.properties

 [1] http://curl.haxx.se/rfc/cookie_spec.html
 [2]
 http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/cookies.html

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




Re: cookie manager not working

2011-06-03 Thread sebb
On 3 June 2011 20:36, Deepak Shetty shet...@gmail.com wrote:
 even www.wordpress.com does the same thing and it seems to work fine in FF

 *https://en.wordpress.com/wp-login.php*
 POST /wp-login.php HTTP/1.1
 Set-Cookie: wordpress=VALUE; expires=Fri, 17-Jun-2011 19:32:09 GMT; *
 path=/wp-admin;* domain=.wordpress.com; httponly

 the browser is at url / , the post is to url */wp-login.php *- what is the
 path to be compared with - the url the browser is at or the URL that is
 being posted to. ?

AIUI, the cookie path is to be compared with the current request URI,
i.e. /wp-login.php


 regards
 deepak


 On Fri, Jun 3, 2011 at 4:26 AM, sebb seb...@gmail.com wrote:

 On 3 June 2011 04:27, Deepak Shetty shet...@gmail.com wrote:
  You are right , that is the problem . However im wondering what the right
  behavior is
  If I request /testjmeter/wp-login.php
  Then arent these valid paths for set-cookie
  /
  /testjmeter
  /testjmeter/wp-login.php
  /testjmeter/child/  -- This is the problematic one. I was under the
  impression this was allowed?

 The Netscape specs (such as they are) are not entirely clear on this.
 I have found the following:

 [1] the pathname component of the URL is compared with the path
 attribute, and if there is a match, the cookie is considered valid and
 is sent along with the URL request. The path /foo would match
 /foobar and /foo/bar.html. The path / is the most general path.

 RFC2109 says cookies should be rejected if The value for the Path
 attribute is not a prefix of the request-URI.

 My reading is that  /testjmeter/child/ is not allowed by either cookie
 spec.

  if my page is at the root /wp-login.php then I think all directories
 under /
  are allowed in the Set-Cookie?

 If the path is set to /, then all files and directories under it are
 allowed.
 However, as far as I can tell, if the path is set to /wp-login.php
 then it is only valid for /wp-login.php (and ./wp-login.php/xzy if
 that exists)

  I tried to look through the cookie RFC and didnt seem to find information
  one way or the other

 See above.

  I can verify your fix works
  CookieManager.check.cookies=false -- Daniel this should work without
 needing
  to manipulate cookies (In my example set this in jmeter.properties and
  disable the pre processor that adds the cookie)

 Best to add this to user.properties

 [1] http://curl.haxx.se/rfc/cookie_spec.html
 [2]
 http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/cookies.html

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




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



Re: cookie manager not working

2011-06-03 Thread Deepak Shetty
I guess my confusion arises because most of the text talks about restricting
the scope of the cookies and the RFC only allows you to broaden the scope.In
any case the workaround is more than sufficient for these cases

regards
deepak


On Fri, Jun 3, 2011 at 1:05 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 20:36, Deepak Shetty shet...@gmail.com wrote:
  even www.wordpress.com does the same thing and it seems to work fine in
 FF
 
  *https://en.wordpress.com/wp-login.php*
  POST /wp-login.php HTTP/1.1
  Set-Cookie: wordpress=VALUE; expires=Fri, 17-Jun-2011 19:32:09 GMT; *
  path=/wp-admin;* domain=.wordpress.com; httponly
 
  the browser is at url / , the post is to url */wp-login.php *- what is
 the
  path to be compared with - the url the browser is at or the URL that is
  being posted to. ?

 AIUI, the cookie path is to be compared with the current request URI,
 i.e. /wp-login.php

 
  regards
  deepak
 
 
  On Fri, Jun 3, 2011 at 4:26 AM, sebb seb...@gmail.com wrote:
 
  On 3 June 2011 04:27, Deepak Shetty shet...@gmail.com wrote:
   You are right , that is the problem . However im wondering what the
 right
   behavior is
   If I request /testjmeter/wp-login.php
   Then arent these valid paths for set-cookie
   /
   /testjmeter
   /testjmeter/wp-login.php
   /testjmeter/child/  -- This is the problematic one. I was under the
   impression this was allowed?
 
  The Netscape specs (such as they are) are not entirely clear on this.
  I have found the following:
 
  [1] the pathname component of the URL is compared with the path
  attribute, and if there is a match, the cookie is considered valid and
  is sent along with the URL request. The path /foo would match
  /foobar and /foo/bar.html. The path / is the most general path.
 
  RFC2109 says cookies should be rejected if The value for the Path
  attribute is not a prefix of the request-URI.
 
  My reading is that  /testjmeter/child/ is not allowed by either cookie
  spec.
 
   if my page is at the root /wp-login.php then I think all directories
  under /
   are allowed in the Set-Cookie?
 
  If the path is set to /, then all files and directories under it are
  allowed.
  However, as far as I can tell, if the path is set to /wp-login.php
  then it is only valid for /wp-login.php (and ./wp-login.php/xzy if
  that exists)
 
   I tried to look through the cookie RFC and didnt seem to find
 information
   one way or the other
 
  See above.
 
   I can verify your fix works
   CookieManager.check.cookies=false -- Daniel this should work without
  needing
   to manipulate cookies (In my example set this in jmeter.properties and
   disable the pre processor that adds the cookie)
 
  Best to add this to user.properties
 
  [1] http://curl.haxx.se/rfc/cookie_spec.html
  [2]
 
 http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/reference/cookies.html
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
 
 
 

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




Re: cookie manager not working

2011-06-02 Thread Daniel Watrous
I'm still struggling with this. I've made the following video that
will hopefully give enough detail to help me along:
http://www.screencast.com/t/Dafijet8P9VS

I've also created a test site if that helps you troubleshoot this issue with me.
http://authnet.danielwatrous.com/testjmeter/
username: admin
password: test

The log file had to do with permissions. When I moved the jmeter files
outside of the program files folder it was able to create the log
file.

Thank you.

On Wed, Jun 1, 2011 at 7:40 PM, sebb seb...@gmail.com wrote:
 On 2 June 2011 02:06, Daniel Watrous daniel.watr...@gmail.com wrote:
 I've discovered that the cookies sent back by wordpress have an
 expires value one year before the date of the request. Browsers seem
 to store this as a session cookie, but I'm not sure why. Is there some
 way to tell the cookie manager to deal with these cookies that have an
 expires value before right now?

 No, not without modifying JMeter code.
 However, by judicious use of the Regex Extractor you should be able to
 extract the cookie from the header and then add it using a Header
 Manager.

 I've put in a post on the wordpress forum to figure out why they do it that 
 way.

 I also can't find a log file. How can I troubleshoot the reason a log
 file won't write?

 Check if the launch directory is writable. Are you sure there is no
 jmeter.log file?

 Daniel

 On Fri, May 27, 2011 at 7:29 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 14:17, Daniel Watrous daniel.watr...@gmail.com wrote:
 I had actually tried that before mailing to the list. I just tried it
 again with no change to whether cookies are sent or not.

 In that case, you'll need to enable debug logging  for the Cookie
 Manager: select it and use the Menu item Help/Enable Debug

 Output will be in the log file.

 I can't find the log file, but here's my java version:

 Unless you override the location in the jmeter.properties file, the
 log file will be in the directory where you started JMeter from, by
 default the bin directory, and will be called jmeter.log.

 C:\Program Files (x86)\Console2java -version
 java version 1.6.0_20
 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
 Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

 C:\Program Files (x86)\Console2

 Windows 7 x64

 thanks,

 Daniel



 On Fri, May 27, 2011 at 3:03 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 08:48, sebb seb...@gmail.com wrote:
 On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be compatibility mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to compatibility (first option) when using that

 Actually it's the last option when using Java 1.5, first when using
 1.6 - which is where the problem lies ...

 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to rfc109 (the last 
 option).

 This is odd, since the code specifically tries to set compatibility 
 mode.
 Looks like there may be a Java bug (or at least a change in behaviour).

 It's a change in Java behaviour - the order of cookie policies is
 different, because of internal changes to the libraries.

 JMeter incorrectly relies on the order of the entries. Oops.

 However, there's an easy work-round - just change the policy to 
 compatibility.


 Thanks in advance.

 Daniel

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




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



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



 -
 To unsubscribe, e-mail: 

Re: cookie manager not working

2011-06-02 Thread Bruce Ide
Jmeter's doing the right thing. If you're testing wordpress, file a bug with
them and tell them to fix their thing. If you're running an application
server yourself, I'd suspect it's something wrong with your application
server config.

You have the jmeter source, you could always change its behavior to do what
you want and recompile it. I'd start with CookieManager.java:

while (cookies.hasNext()) {
Cookie cook = (Cookie) cookies.next().getObjectValue();
final long expiresMillis = cook.getExpiresMillis();
if (expiresMillis == 0 || expiresMillis  now) { // only save
unexpired cookies
writer.println(cookieToString(cook));
}
}

Well there's your problem! I can't guarantee that's the only thing that
prevents expired cookies from being sent. I suspect there's probably also
some code in httpclient that checks to see if they're expired before sending
them back.

I'd be really hesitant to change the behavior of the test environment to
mask a bug you uncovered, though. Sending expired cookies IS a bug, and it's
something the guys running the server should fix.

-- 
Bruce Ide
flyingrhenqu...@gmail.com


Re: cookie manager not working

2011-06-02 Thread Daniel Watrous
I think it's a bit premature to suggest that WordPress is broken. It
is used on tens of millions of sites and people are able to login fine
every day.

Is there a jobs board for jmeter where I could hire a guru to get my
tests going?

Daniel

On Thu, Jun 2, 2011 at 9:35 AM, Bruce Ide flyingrhenqu...@gmail.com wrote:
 Jmeter's doing the right thing. If you're testing wordpress, file a bug with
 them and tell them to fix their thing. If you're running an application
 server yourself, I'd suspect it's something wrong with your application
 server config.

 You have the jmeter source, you could always change its behavior to do what
 you want and recompile it. I'd start with CookieManager.java:

        while (cookies.hasNext()) {
            Cookie cook = (Cookie) cookies.next().getObjectValue();
            final long expiresMillis = cook.getExpiresMillis();
            if (expiresMillis == 0 || expiresMillis  now) { // only save
 unexpired cookies
                writer.println(cookieToString(cook));
            }
        }

 Well there's your problem! I can't guarantee that's the only thing that
 prevents expired cookies from being sent. I suspect there's probably also
 some code in httpclient that checks to see if they're expired before sending
 them back.

 I'd be really hesitant to change the behavior of the test environment to
 mask a bug you uncovered, though. Sending expired cookies IS a bug, and it's
 something the guys running the server should fix.

 --
 Bruce Ide
 flyingrhenqu...@gmail.com


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



Re: cookie manager not working

2011-06-02 Thread sebb
On 2 June 2011 16:35, Bruce Ide flyingrhenqu...@gmail.com wrote:
 Jmeter's doing the right thing. If you're testing wordpress, file a bug with
 them and tell them to fix their thing. If you're running an application
 server yourself, I'd suspect it's something wrong with your application
 server config.

I'm inclined to agree - as far as I can tell, session cookies are
cookies without an expiry date or age.

 You have the jmeter source, you could always change its behavior to do what
 you want and recompile it. I'd start with CookieManager.java:

        while (cookies.hasNext()) {
            Cookie cook = (Cookie) cookies.next().getObjectValue();
            final long expiresMillis = cook.getExpiresMillis();
            if (expiresMillis == 0 || expiresMillis  now) { // only save
 unexpired cookies
                writer.println(cookieToString(cook));
            }
        }

 Well there's your problem!

That only affects the cookies that are stored in the cookies file
(which is not normally used).

 I can't guarantee that's the only thing that
 prevents expired cookies from being sent. I suspect there's probably also
 some code in httpclient that checks to see if they're expired before sending
 them back.

Yes.
JMeter currently uses the Commons HttpClient 3.1 cookie handling code.

 I'd be really hesitant to change the behavior of the test environment to
 mask a bug you uncovered, though. Sending expired cookies IS a bug, and it's
 something the guys running the server should fix.

If this is a general problem, I suppose it might make sense to add an
option to remove the expiry date from stale cookies, turning them into
session cookies.
But AFAIK this is the first time this has been reported [, and might
cause indigestion (!) in some cases].

Note that cookies won't be handled properly if you have selected
redirect automatically, because then JMeter does not see the cookies

 --
 Bruce Ide
 flyingrhenqu...@gmail.com


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



Re: cookie manager not working

2011-06-02 Thread Bruce Ide
  I think it's a bit premature to suggest that WordPress is broken. It
  is used on tens of millions of sites and people are able to login fine
 every day.

Number of users is not a quality metric! Look at Windows... (Heh heh heh)

 Well there's your problem!

 That only affects the cookies that are stored in the cookies file
 (which is not normally used).


Doh! It seemed like such a likely culprit, too!


  I'd be really hesitant to change the behavior of the test environment to
  mask a bug you uncovered, though. Sending expired cookies IS a bug, and
 it's
  something the guys running the server should fix.

 If this is a general problem, I suppose it might make sense to add an
 option to remove the expiry date from stale cookies, turning them into
 session cookies.
 But AFAIK this is the first time this has been reported [, and might
 cause indigestion (!) in some cases].


Well it sounds like the web browser is also storing and using the expired
cookie, and the remote server is honoring it! That's like 3 different bugs
he's uncovered so far! At this point I'd be rampaging like... something that
rampages a LOT... through 2 or 3 different bug forums.

I'm sure the Firefox guys would say No it's not! At least some people in
the real world do check cookie expiry dates, but it's probably optional.
I'm not inclined to go digging through RFCs to find out.

I'd say Wordpress sending out cookies from last year means someone hasn't
been minding a server like they should be. That really IS a problem.

I suppose you could add a Remove expiration dates to the cookie manager
panel, or a send expired cookies checkbox to the httpclient. Probably
wouldn't be a huge amount of coding, and would probably be only vaguely
atrocious.

Or perhaps a sampler or postprocessor that allows you to manipulate explicit
cookie values? That'd be a bit more work, but might be more palatable.

-- 
Bruce Ide
flyingrhenqu...@gmail.com


Re: cookie manager not working

2011-06-02 Thread sebb
On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
   I think it's a bit premature to suggest that WordPress is broken. It
   is used on tens of millions of sites and people are able to login fine
  every day.

 Number of users is not a quality metric! Look at Windows... (Heh heh heh)

 Well there's your problem!

 That only affects the cookies that are stored in the cookies file
 (which is not normally used).


 Doh! It seemed like such a likely culprit, too!


The actual expiry code is similar:

// Store session cookies as well as unexpired ones
if (exp == 0 || exp = System.currentTimeMillis()) {
newCookie.setVersion(cookie.getVersion());
add(newCookie); // Has its own debug log; removes
matching cookies
} else {
removeMatchingCookies(newCookie);
if (debugEnabled){
log.debug(Dropping expired Cookie:
+newCookie.toString());
}
}



  I'd be really hesitant to change the behavior of the test environment to
  mask a bug you uncovered, though. Sending expired cookies IS a bug, and
 it's
  something the guys running the server should fix.

 If this is a general problem, I suppose it might make sense to add an
 option to remove the expiry date from stale cookies, turning them into
 session cookies.
 But AFAIK this is the first time this has been reported [, and might
 cause indigestion (!) in some cases].


 Well it sounds like the web browser is also storing and using the expired
 cookie, and the remote server is honoring it! That's like 3 different bugs
 he's uncovered so far! At this point I'd be rampaging like... something that
 rampages a LOT... through 2 or 3 different bug forums.

 I'm sure the Firefox guys would say No it's not! At least some people in
 the real world do check cookie expiry dates, but it's probably optional.
 I'm not inclined to go digging through RFCs to find out.

 I'd say Wordpress sending out cookies from last year means someone hasn't
 been minding a server like they should be. That really IS a problem.

Agreed.

 I suppose you could add a Remove expiration dates to the cookie manager
 panel, or a send expired cookies checkbox to the httpclient. Probably
 wouldn't be a huge amount of coding, and would probably be only vaguely
 atrocious.

It's fairly simple to change the code itself, but there is additional
work needed to implement the GUI change and update the documentation.

It's not yet clear if this is a general problem affecting multiple
servers, or just WordPress servers, or just an issue with the
particular WordPress host.

 Or perhaps a sampler or postprocessor that allows you to manipulate explicit
 cookie values? That'd be a bit more work, but might be more palatable.

That can be done already with the Regex Processor and Header Manager,
or using the BSH or BSF test elements.

Might just be simpler to change the time on the box running JMeter ...

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



Re: cookie manager not working

2011-06-02 Thread Daniel Watrous
Did any of you notice that the Date of the request is accurate and so
are some of the cookies? WordPress seems to deliberately send the
login related cookies with the year old expiration. Others are fine.

I mention this because there seems to be an idea that the server time
is configured wrong.

On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
 On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
   I think it's a bit premature to suggest that WordPress is broken. It
   is used on tens of millions of sites and people are able to login fine
  every day.

 Number of users is not a quality metric! Look at Windows... (Heh heh heh)

 Well there's your problem!

 That only affects the cookies that are stored in the cookies file
 (which is not normally used).


 Doh! It seemed like such a likely culprit, too!


 The actual expiry code is similar:

                // Store session cookies as well as unexpired ones
                if (exp == 0 || exp = System.currentTimeMillis()) {
                    newCookie.setVersion(cookie.getVersion());
                    add(newCookie); // Has its own debug log; removes
 matching cookies
                } else {
                    removeMatchingCookies(newCookie);
                    if (debugEnabled){
                        log.debug(Dropping expired Cookie:
 +newCookie.toString());
                    }
                }



  I'd be really hesitant to change the behavior of the test environment to
  mask a bug you uncovered, though. Sending expired cookies IS a bug, and
 it's
  something the guys running the server should fix.

 If this is a general problem, I suppose it might make sense to add an
 option to remove the expiry date from stale cookies, turning them into
 session cookies.
 But AFAIK this is the first time this has been reported [, and might
 cause indigestion (!) in some cases].


 Well it sounds like the web browser is also storing and using the expired
 cookie, and the remote server is honoring it! That's like 3 different bugs
 he's uncovered so far! At this point I'd be rampaging like... something that
 rampages a LOT... through 2 or 3 different bug forums.

 I'm sure the Firefox guys would say No it's not! At least some people in
 the real world do check cookie expiry dates, but it's probably optional.
 I'm not inclined to go digging through RFCs to find out.

 I'd say Wordpress sending out cookies from last year means someone hasn't
 been minding a server like they should be. That really IS a problem.

 Agreed.

 I suppose you could add a Remove expiration dates to the cookie manager
 panel, or a send expired cookies checkbox to the httpclient. Probably
 wouldn't be a huge amount of coding, and would probably be only vaguely
 atrocious.

 It's fairly simple to change the code itself, but there is additional
 work needed to implement the GUI change and update the documentation.

 It's not yet clear if this is a general problem affecting multiple
 servers, or just WordPress servers, or just an issue with the
 particular WordPress host.

 Or perhaps a sampler or postprocessor that allows you to manipulate explicit
 cookie values? That'd be a bit more work, but might be more palatable.

 That can be done already with the Regex Processor and Header Manager,
 or using the BSH or BSF test elements.

 Might just be simpler to change the time on the box running JMeter ...

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



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



Re: cookie manager not working

2011-06-02 Thread Deepak Shetty
Hi
where are you seeing the invalid cookies(sorry havent seen your screencast).
i tried with firefox to login
I get

*http://authnet.danielwatrous.com/testjmeter/wp-login.php*

Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
Set-Cookie:
wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307234422%7Cc8c4e5bb5f9bacc38cf0d3f6a5a19125;
path=/testjmeter/wp-content/plugins; httponly
Set-Cookie:
wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307234422%7Cc8c4e5bb5f9bacc38cf0d3f6a5a19125;
path=/testjmeter/wp-admin; httponly
Set-Cookie:
wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307234422%7C0499d7fe3fd97c79cefda4d96eb98156;
path=/testjmeter/; httponly

*http://authnet.danielwatrous.com/testjmeter/wp-admin/*

Set-Cookie:
wp-settings-1=m8%3Dc%26m6%3Dc%26m10%3Dc%26m11%3Do%26m7%3Do%26m4%3Dc%26m12%3Dc%26m0%3Dc%26m1%3Dc;
expires=Sat, 02-Jun-2012 00:40:23 GMT; path=/testjmeter/
Set-Cookie: wp-settings-time-1=1307061623; expires=Sat, 02-Jun-2012 00:40:23
GMT; path=/testjmeter/

Atleast the browser behaves correctly - as far as I remember setting the
expiry date to the past is equivalent to deleting the cookie - so if you set
expiry in the past , then the browser wont send the cookie either

regards
deepak


On Thu, Jun 2, 2011 at 5:30 PM, Daniel Watrous daniel.watr...@gmail.comwrote:

 Did any of you notice that the Date of the request is accurate and so
 are some of the cookies? WordPress seems to deliberately send the
 login related cookies with the year old expiration. Others are fine.

 I mention this because there seems to be an idea that the server time
 is configured wrong.

 On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
  On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
I think it's a bit premature to suggest that WordPress is broken. It
is used on tens of millions of sites and people are able to login
 fine
   every day.
 
  Number of users is not a quality metric! Look at Windows... (Heh heh
 heh)
 
  Well there's your problem!
 
  That only affects the cookies that are stored in the cookies file
  (which is not normally used).
 
 
  Doh! It seemed like such a likely culprit, too!
 
 
  The actual expiry code is similar:
 
 // Store session cookies as well as unexpired ones
 if (exp == 0 || exp = System.currentTimeMillis()) {
 newCookie.setVersion(cookie.getVersion());
 add(newCookie); // Has its own debug log; removes
  matching cookies
 } else {
 removeMatchingCookies(newCookie);
 if (debugEnabled){
 log.debug(Dropping expired Cookie:
  +newCookie.toString());
 }
 }
 
 
 
   I'd be really hesitant to change the behavior of the test environment
 to
   mask a bug you uncovered, though. Sending expired cookies IS a bug,
 and
  it's
   something the guys running the server should fix.
 
  If this is a general problem, I suppose it might make sense to add an
  option to remove the expiry date from stale cookies, turning them into
  session cookies.
  But AFAIK this is the first time this has been reported [, and might
  cause indigestion (!) in some cases].
 
 
  Well it sounds like the web browser is also storing and using the
 expired
  cookie, and the remote server is honoring it! That's like 3 different
 bugs
  he's uncovered so far! At this point I'd be rampaging like... something
 that
  rampages a LOT... through 2 or 3 different bug forums.
 
  I'm sure the Firefox guys would say No it's not! At least some people
 in
  the real world do check cookie expiry dates, but it's probably
 optional.
  I'm not inclined to go digging through RFCs to find out.
 
  I'd say Wordpress sending out cookies from last year means someone
 hasn't
  been minding a server like they should be. That really IS a problem.
 
  Agreed.
 
  I suppose you could add a Remove expiration dates to the cookie
 manager
  panel, or a send expired cookies checkbox to the httpclient. Probably
  wouldn't be a huge amount of coding, and would probably be only vaguely
  atrocious.
 
  It's fairly simple to change the code itself, but there is additional
  work needed to implement the GUI change and update the documentation.
 
  It's not yet clear if this is a general problem affecting multiple
  servers, or just WordPress servers, or just an issue with the
  particular WordPress host.
 
  Or perhaps a sampler or postprocessor that allows you to manipulate
 explicit
  cookie values? That'd be a bit more work, but might be more palatable.
 
  That can be done already with the Regex Processor and Header Manager,
  or using the BSH or BSF test elements.
 
  Might just be simpler to change the time on the box running JMeter ...
 
  -
  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
  For additional 

Re: cookie manager not working

2011-06-02 Thread sebb
Yes; perhaps it is deliberately sending expired dates in order to
delete the cookies. I have seen another server do this.

From some biref experiments with your test site, I suspect the login
problem is nothing to do with expired cookies after all, but there is
probably some other setting that is not correct.

Look for parameters that have odd-looking values; they may be being
set by Javascript in the browser, in which case you will have to work
out how to extract the relevant values from the previous reponse.

Or record the login twice, and compare the generated test plans to see
which entries have changed. You then have to work out how to extract
the values they need. The Save Responses to a File Listener can be
helpful here.

BTW, JMeter cannot currently handle deflate encoding, so make sure you
don't enable that in the Header Manager.

Also, Excludes *do* work - make sure that there aren't any trailing
spaces or other spurious characters in the fields.

On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com wrote:
 Did any of you notice that the Date of the request is accurate and so
 are some of the cookies? WordPress seems to deliberately send the
 login related cookies with the year old expiration. Others are fine.

 I mention this because there seems to be an idea that the server time
 is configured wrong.

 On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
 On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
   I think it's a bit premature to suggest that WordPress is broken. It
   is used on tens of millions of sites and people are able to login fine
  every day.

 Number of users is not a quality metric! Look at Windows... (Heh heh heh)

 Well there's your problem!

 That only affects the cookies that are stored in the cookies file
 (which is not normally used).


 Doh! It seemed like such a likely culprit, too!


 The actual expiry code is similar:

                // Store session cookies as well as unexpired ones
                if (exp == 0 || exp = System.currentTimeMillis()) {
                    newCookie.setVersion(cookie.getVersion());
                    add(newCookie); // Has its own debug log; removes
 matching cookies
                } else {
                    removeMatchingCookies(newCookie);
                    if (debugEnabled){
                        log.debug(Dropping expired Cookie:
 +newCookie.toString());
                    }
                }



  I'd be really hesitant to change the behavior of the test environment to
  mask a bug you uncovered, though. Sending expired cookies IS a bug, and
 it's
  something the guys running the server should fix.

 If this is a general problem, I suppose it might make sense to add an
 option to remove the expiry date from stale cookies, turning them into
 session cookies.
 But AFAIK this is the first time this has been reported [, and might
 cause indigestion (!) in some cases].


 Well it sounds like the web browser is also storing and using the expired
 cookie, and the remote server is honoring it! That's like 3 different bugs
 he's uncovered so far! At this point I'd be rampaging like... something that
 rampages a LOT... through 2 or 3 different bug forums.

 I'm sure the Firefox guys would say No it's not! At least some people in
 the real world do check cookie expiry dates, but it's probably optional.
 I'm not inclined to go digging through RFCs to find out.

 I'd say Wordpress sending out cookies from last year means someone hasn't
 been minding a server like they should be. That really IS a problem.

 Agreed.

 I suppose you could add a Remove expiration dates to the cookie manager
 panel, or a send expired cookies checkbox to the httpclient. Probably
 wouldn't be a huge amount of coding, and would probably be only vaguely
 atrocious.

 It's fairly simple to change the code itself, but there is additional
 work needed to implement the GUI change and update the documentation.

 It's not yet clear if this is a general problem affecting multiple
 servers, or just WordPress servers, or just an issue with the
 particular WordPress host.

 Or perhaps a sampler or postprocessor that allows you to manipulate explicit
 cookie values? That'd be a bit more work, but might be more palatable.

 That can be done already with the Regex Processor and Header Manager,
 or using the BSH or BSF test elements.

 Might just be simpler to change the time on the box running JMeter ...

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



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



-
To unsubscribe, e-mail: 

Re: cookie manager not working

2011-06-02 Thread Deepak Shetty
There seems to be a Jmeter Bug

Login request gets the following as response

Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
Set-Cookie:
wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
path=/testjmeter/wp-content/plugins; httponly
*Set-Cookie:
wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
path=/testjmeter/wp-admin; httponly
*Set-Cookie:
wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;

All good here
The next request
GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
Cookie Data:
wordpress_test_cookie=WP+Cookie+check;
wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1

doesnt have the cookie above  that I bolded which has an explicit path and
httponly (not sure which of the attributes cause a problem)

Programatically setting the cookies seem to be the only workaround without
code fix, can you please confirm (I dont think expiry date has naything to
do with , like you say , past expiry is used to delete a cookie)
regards
deepak


On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:

 Yes; perhaps it is deliberately sending expired dates in order to
 delete the cookies. I have seen another server do this.

 From some biref experiments with your test site, I suspect the login
 problem is nothing to do with expired cookies after all, but there is
 probably some other setting that is not correct.

 Look for parameters that have odd-looking values; they may be being
 set by Javascript in the browser, in which case you will have to work
 out how to extract the relevant values from the previous reponse.

 Or record the login twice, and compare the generated test plans to see
 which entries have changed. You then have to work out how to extract
 the values they need. The Save Responses to a File Listener can be
 helpful here.

 BTW, JMeter cannot currently handle deflate encoding, so make sure you
 don't enable that in the Header Manager.

 Also, Excludes *do* work - make sure that there aren't any trailing
 spaces or other spurious characters in the fields.

 On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com wrote:
  Did any of you notice that the Date of the request is accurate and so
  are some of the cookies? WordPress seems to deliberately send the
  login related cookies with the year old expiration. Others are fine.
 
  I mention this because there seems to be an idea that the server time
  is configured wrong.
 
  On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
  On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
I think it's a bit premature to suggest that WordPress is broken. It
is used on tens of millions of sites and people are able to login
 fine
   every day.
 
  Number of users is not a quality metric! Look at Windows... (Heh heh
 heh)
 
  Well there's your problem!
 
  That only affects the cookies that are stored in the cookies file
  (which is not normally used).
 
 
  Doh! It seemed like such a likely culprit, too!
 
 
  The actual expiry code is similar:
 
 // Store session cookies as well as unexpired ones
 if (exp == 0 || exp = System.currentTimeMillis()) {
 newCookie.setVersion(cookie.getVersion());
 add(newCookie); // Has its own debug log; removes
  matching cookies
 } else {
 removeMatchingCookies(newCookie);
 if (debugEnabled){
 log.debug(Dropping expired Cookie:
  +newCookie.toString());
 }
 }
 
 
 
   I'd be really hesitant to change the behavior of the test
 environment to
   mask a bug you uncovered, though. Sending expired cookies IS a bug,
 and
  it's
   something the guys running the server should fix.
 
  If this is a general problem, I suppose it might make sense to add an
  option to remove the expiry date from stale cookies, turning them into
  session cookies.
  But AFAIK this is the first time this has been reported [, and might
  cause indigestion (!) in some cases].
 
 
  Well it sounds like the web browser is also storing and using the
 expired
  cookie, and the remote server is honoring it! That's like 3 different
 bugs
  he's uncovered so far! At this point I'd be rampaging like... something
 that
  rampages a LOT... through 2 or 3 different bug forums.
 
  I'm sure the Firefox guys would say No it's not! At least some people
 in
  the real world do check cookie expiry dates, but it's probably
 optional.
  I'm not inclined to go digging through RFCs to find out.
 
  I'd say Wordpress sending out cookies from last year means someone
 hasn't
  been minding a server like they should be. That really IS a problem.
 
  Agreed.
 
  I suppose you could add a Remove expiration dates to the cookie
 

Re: cookie manager not working

2011-06-02 Thread sebb
On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
 There seems to be a Jmeter Bug

 Login request gets the following as response

 Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
 Set-Cookie:
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
 path=/testjmeter/wp-content/plugins; httponly
 *Set-Cookie:
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
 path=/testjmeter/wp-admin; httponly
 *Set-Cookie:
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;

 All good here

Perhaps not - please enable Cookie Manager Debug logging to see if any
of the cookies have been rejected, and why.

 The next request
 GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
 Cookie Data:
 wordpress_test_cookie=WP+Cookie+check;
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1

 doesnt have the cookie above  that I bolded which has an explicit path and
 httponly (not sure which of the attributes cause a problem)

 Programatically setting the cookies seem to be the only workaround without
 code fix, can you please confirm (I dont think expiry date has naything to
 do with , like you say , past expiry is used to delete a cookie)
 regards
 deepak


 On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:

 Yes; perhaps it is deliberately sending expired dates in order to
 delete the cookies. I have seen another server do this.

 From some biref experiments with your test site, I suspect the login
 problem is nothing to do with expired cookies after all, but there is
 probably some other setting that is not correct.

 Look for parameters that have odd-looking values; they may be being
 set by Javascript in the browser, in which case you will have to work
 out how to extract the relevant values from the previous reponse.

 Or record the login twice, and compare the generated test plans to see
 which entries have changed. You then have to work out how to extract
 the values they need. The Save Responses to a File Listener can be
 helpful here.

 BTW, JMeter cannot currently handle deflate encoding, so make sure you
 don't enable that in the Header Manager.

 Also, Excludes *do* work - make sure that there aren't any trailing
 spaces or other spurious characters in the fields.

 On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com wrote:
  Did any of you notice that the Date of the request is accurate and so
  are some of the cookies? WordPress seems to deliberately send the
  login related cookies with the year old expiration. Others are fine.
 
  I mention this because there seems to be an idea that the server time
  is configured wrong.
 
  On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
  On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
    I think it's a bit premature to suggest that WordPress is broken. It
    is used on tens of millions of sites and people are able to login
 fine
   every day.
 
  Number of users is not a quality metric! Look at Windows... (Heh heh
 heh)
 
  Well there's your problem!
 
  That only affects the cookies that are stored in the cookies file
  (which is not normally used).
 
 
  Doh! It seemed like such a likely culprit, too!
 
 
  The actual expiry code is similar:
 
                 // Store session cookies as well as unexpired ones
                 if (exp == 0 || exp = System.currentTimeMillis()) {
                     newCookie.setVersion(cookie.getVersion());
                     add(newCookie); // Has its own debug log; removes
  matching cookies
                 } else {
                     removeMatchingCookies(newCookie);
                     if (debugEnabled){
                         log.debug(Dropping expired Cookie:
  +newCookie.toString());
                     }
                 }
 
 
 
   I'd be really hesitant to change the behavior of the test
 environment to
   mask a bug you uncovered, though. Sending expired cookies IS a bug,
 and
  it's
   something the guys running the server should fix.
 
  If this is a general problem, I suppose it might make sense to add an
  option to remove the expiry date from stale cookies, turning them into
  session cookies.
  But AFAIK this is the first time this has been reported [, and might
  cause indigestion (!) in some cases].
 
 
  Well it sounds like the web browser is also storing and using the
 expired
  cookie, and the remote server is honoring it! That's like 3 different
 bugs
  he's uncovered so far! At this point I'd be rampaging like... something
 that
  rampages a LOT... through 2 or 3 different bug forums.
 
  I'm sure the Firefox guys would say No it's not! At least some people
 in
  the real world do check cookie expiry dates, but it's probably
 optional.
  I'm not inclined to go digging through RFCs to find out.
 
  I'd say Wordpress sending 

Re: cookie manager not working

2011-06-02 Thread Deepak Shetty
Ok i will . Visually the cookies look fine and one of them does get sent in
the next request (the one without path and http only)
Daniel : see if
http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
for you. I added the missing cookie programattically (various
hardcodes but you shoould be able to login - logout doesnt work because I
need to remove the cookie i set)

regards
deepak

On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
  There seems to be a Jmeter Bug
 
  Login request gets the following as response
 
  Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
  Set-Cookie:
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
  path=/testjmeter/wp-content/plugins; httponly
  *Set-Cookie:
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
  path=/testjmeter/wp-admin; httponly
  *Set-Cookie:
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
 
  All good here

 Perhaps not - please enable Cookie Manager Debug logging to see if any
 of the cookies have been rejected, and why.

  The next request
  GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
  Cookie Data:
  wordpress_test_cookie=WP+Cookie+check;
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
 
  doesnt have the cookie above  that I bolded which has an explicit path
 and
  httponly (not sure which of the attributes cause a problem)
 
  Programatically setting the cookies seem to be the only workaround
 without
  code fix, can you please confirm (I dont think expiry date has naything
 to
  do with , like you say , past expiry is used to delete a cookie)
  regards
  deepak
 
 
  On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
 
  Yes; perhaps it is deliberately sending expired dates in order to
  delete the cookies. I have seen another server do this.
 
  From some biref experiments with your test site, I suspect the login
  problem is nothing to do with expired cookies after all, but there is
  probably some other setting that is not correct.
 
  Look for parameters that have odd-looking values; they may be being
  set by Javascript in the browser, in which case you will have to work
  out how to extract the relevant values from the previous reponse.
 
  Or record the login twice, and compare the generated test plans to see
  which entries have changed. You then have to work out how to extract
  the values they need. The Save Responses to a File Listener can be
  helpful here.
 
  BTW, JMeter cannot currently handle deflate encoding, so make sure you
  don't enable that in the Header Manager.
 
  Also, Excludes *do* work - make sure that there aren't any trailing
  spaces or other spurious characters in the fields.
 
  On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com wrote:
   Did any of you notice that the Date of the request is accurate and so
   are some of the cookies? WordPress seems to deliberately send the
   login related cookies with the year old expiration. Others are fine.
  
   I mention this because there seems to be an idea that the server time
   is configured wrong.
  
   On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
   On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
 I think it's a bit premature to suggest that WordPress is broken.
 It
 is used on tens of millions of sites and people are able to login
  fine
every day.
  
   Number of users is not a quality metric! Look at Windows... (Heh heh
  heh)
  
   Well there's your problem!
  
   That only affects the cookies that are stored in the cookies file
   (which is not normally used).
  
  
   Doh! It seemed like such a likely culprit, too!
  
  
   The actual expiry code is similar:
  
  // Store session cookies as well as unexpired ones
  if (exp == 0 || exp = System.currentTimeMillis()) {
  newCookie.setVersion(cookie.getVersion());
  add(newCookie); // Has its own debug log; removes
   matching cookies
  } else {
  removeMatchingCookies(newCookie);
  if (debugEnabled){
  log.debug(Dropping expired Cookie:
   +newCookie.toString());
  }
  }
  
  
  
I'd be really hesitant to change the behavior of the test
  environment to
mask a bug you uncovered, though. Sending expired cookies IS a
 bug,
  and
   it's
something the guys running the server should fix.
  
   If this is a general problem, I suppose it might make sense to add
 an
   option to remove the expiry date from stale cookies, turning them
 into
   session cookies.
   But AFAIK this is the first time this has 

Re: cookie manager not working

2011-06-02 Thread sebb
On 3 June 2011 02:32, Deepak Shetty shet...@gmail.com wrote:
 Ok i will . Visually the cookies look fine and one of them does get sent in
 the next request (the one without path and http only)

When I try, I get several cookies rejected, e.g. with the message:

(Illegal path attribute /testjmeter/wp-admin. Path of origin:
/testjmeter/wp-login.php)

Maybe that is part of the problem?

 Daniel : see if
 http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
 for you. I added the missing cookie programattically (various
 hardcodes but you shoould be able to login - logout doesnt work because I
 need to remove the cookie i set)

 regards
 deepak

 On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
  There seems to be a Jmeter Bug
 
  Login request gets the following as response
 
  Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
  Set-Cookie:
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
  path=/testjmeter/wp-content/plugins; httponly
  *Set-Cookie:
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
  path=/testjmeter/wp-admin; httponly
  *Set-Cookie:
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
 
  All good here

 Perhaps not - please enable Cookie Manager Debug logging to see if any
 of the cookies have been rejected, and why.

  The next request
  GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
  Cookie Data:
  wordpress_test_cookie=WP+Cookie+check;
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
 
  doesnt have the cookie above  that I bolded which has an explicit path
 and
  httponly (not sure which of the attributes cause a problem)
 
  Programatically setting the cookies seem to be the only workaround
 without
  code fix, can you please confirm (I dont think expiry date has naything
 to
  do with , like you say , past expiry is used to delete a cookie)
  regards
  deepak
 
 
  On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
 
  Yes; perhaps it is deliberately sending expired dates in order to
  delete the cookies. I have seen another server do this.
 
  From some biref experiments with your test site, I suspect the login
  problem is nothing to do with expired cookies after all, but there is
  probably some other setting that is not correct.
 
  Look for parameters that have odd-looking values; they may be being
  set by Javascript in the browser, in which case you will have to work
  out how to extract the relevant values from the previous reponse.
 
  Or record the login twice, and compare the generated test plans to see
  which entries have changed. You then have to work out how to extract
  the values they need. The Save Responses to a File Listener can be
  helpful here.
 
  BTW, JMeter cannot currently handle deflate encoding, so make sure you
  don't enable that in the Header Manager.
 
  Also, Excludes *do* work - make sure that there aren't any trailing
  spaces or other spurious characters in the fields.
 
  On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com wrote:
   Did any of you notice that the Date of the request is accurate and so
   are some of the cookies? WordPress seems to deliberately send the
   login related cookies with the year old expiration. Others are fine.
  
   I mention this because there seems to be an idea that the server time
   is configured wrong.
  
   On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
   On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
     I think it's a bit premature to suggest that WordPress is broken.
 It
     is used on tens of millions of sites and people are able to login
  fine
    every day.
  
   Number of users is not a quality metric! Look at Windows... (Heh heh
  heh)
  
   Well there's your problem!
  
   That only affects the cookies that are stored in the cookies file
   (which is not normally used).
  
  
   Doh! It seemed like such a likely culprit, too!
  
  
   The actual expiry code is similar:
  
                  // Store session cookies as well as unexpired ones
                  if (exp == 0 || exp = System.currentTimeMillis()) {
                      newCookie.setVersion(cookie.getVersion());
                      add(newCookie); // Has its own debug log; removes
   matching cookies
                  } else {
                      removeMatchingCookies(newCookie);
                      if (debugEnabled){
                          log.debug(Dropping expired Cookie:
   +newCookie.toString());
                      }
                  }
  
  
  
I'd be really hesitant to change the behavior of the test
  environment to
mask a bug you uncovered, though. Sending expired cookies IS a
 bug,
  and
   it's

Re: cookie manager not working

2011-06-02 Thread sebb
On 3 June 2011 02:48, sebb seb...@gmail.com wrote:
 On 3 June 2011 02:32, Deepak Shetty shet...@gmail.com wrote:
 Ok i will . Visually the cookies look fine and one of them does get sent in
 the next request (the one without path and http only)

 When I try, I get several cookies rejected, e.g. with the message:

 (Illegal path attribute /testjmeter/wp-admin. Path of origin:
 /testjmeter/wp-login.php)

 Maybe that is part of the problem?

I'd forgotten - there is a JMeter property one can set to avoid
checking cookies for validity:

CookieManager.check.cookies=false

Setting that prevents the invalid cookie paths from being rejected.

 Daniel : see if
 http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
 for you. I added the missing cookie programattically (various
 hardcodes but you shoould be able to login - logout doesnt work because I
 need to remove the cookie i set)

 regards
 deepak

 On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
  There seems to be a Jmeter Bug
 
  Login request gets the following as response
 
  Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
  Set-Cookie:
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
  path=/testjmeter/wp-content/plugins; httponly
  *Set-Cookie:
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
  path=/testjmeter/wp-admin; httponly
  *Set-Cookie:
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
 
  All good here

 Perhaps not - please enable Cookie Manager Debug logging to see if any
 of the cookies have been rejected, and why.

  The next request
  GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
  Cookie Data:
  wordpress_test_cookie=WP+Cookie+check;
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
 
  doesnt have the cookie above  that I bolded which has an explicit path
 and
  httponly (not sure which of the attributes cause a problem)
 
  Programatically setting the cookies seem to be the only workaround
 without
  code fix, can you please confirm (I dont think expiry date has naything
 to
  do with , like you say , past expiry is used to delete a cookie)
  regards
  deepak
 
 
  On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
 
  Yes; perhaps it is deliberately sending expired dates in order to
  delete the cookies. I have seen another server do this.
 
  From some biref experiments with your test site, I suspect the login
  problem is nothing to do with expired cookies after all, but there is
  probably some other setting that is not correct.
 
  Look for parameters that have odd-looking values; they may be being
  set by Javascript in the browser, in which case you will have to work
  out how to extract the relevant values from the previous reponse.
 
  Or record the login twice, and compare the generated test plans to see
  which entries have changed. You then have to work out how to extract
  the values they need. The Save Responses to a File Listener can be
  helpful here.
 
  BTW, JMeter cannot currently handle deflate encoding, so make sure you
  don't enable that in the Header Manager.
 
  Also, Excludes *do* work - make sure that there aren't any trailing
  spaces or other spurious characters in the fields.
 
  On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com wrote:
   Did any of you notice that the Date of the request is accurate and so
   are some of the cookies? WordPress seems to deliberately send the
   login related cookies with the year old expiration. Others are fine.
  
   I mention this because there seems to be an idea that the server time
   is configured wrong.
  
   On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
   On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com wrote:
     I think it's a bit premature to suggest that WordPress is broken.
 It
     is used on tens of millions of sites and people are able to login
  fine
    every day.
  
   Number of users is not a quality metric! Look at Windows... (Heh heh
  heh)
  
   Well there's your problem!
  
   That only affects the cookies that are stored in the cookies file
   (which is not normally used).
  
  
   Doh! It seemed like such a likely culprit, too!
  
  
   The actual expiry code is similar:
  
                  // Store session cookies as well as unexpired ones
                  if (exp == 0 || exp = System.currentTimeMillis()) {
                      newCookie.setVersion(cookie.getVersion());
                      add(newCookie); // Has its own debug log; removes
   matching cookies
                  } else {
                      removeMatchingCookies(newCookie);
                      if (debugEnabled){
                          log.debug(Dropping expired 

Re: cookie manager not working

2011-06-02 Thread Deepak Shetty
You are right , that is the problem . However im wondering what the right
behavior is
If I request /testjmeter/wp-login.php
Then arent these valid paths for set-cookie
/
/testjmeter
/testjmeter/wp-login.php
/testjmeter/child/  -- This is the problematic one. I was under the
impression this was allowed?

if my page is at the root /wp-login.php then I think all directories under /
are allowed in the Set-Cookie?

I tried to look through the cookie RFC and didnt seem to find information
one way or the other

I can verify your fix works
CookieManager.check.cookies=false -- Daniel this should work without needing
to manipulate cookies (In my example set this in jmeter.properties and
disable the pre processor that adds the cookie)



regards
deepak






On Thu, Jun 2, 2011 at 6:48 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 02:32, Deepak Shetty shet...@gmail.com wrote:
  Ok i will . Visually the cookies look fine and one of them does get sent
 in
  the next request (the one without path and http only)

 When I try, I get several cookies rejected, e.g. with the message:

 (Illegal path attribute /testjmeter/wp-admin. Path of origin:
 /testjmeter/wp-login.php)

 Maybe that is part of the problem?

  Daniel : see if
 
 http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
  for you. I added the missing cookie programattically (various
  hardcodes but you shoould be able to login - logout doesnt work because I
  need to remove the cookie i set)
 
  regards
  deepak
 
  On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:
 
  On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
   There seems to be a Jmeter Bug
  
   Login request gets the following as response
  
   Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
   Set-Cookie:
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
   path=/testjmeter/wp-content/plugins; httponly
   *Set-Cookie:
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
   path=/testjmeter/wp-admin; httponly
   *Set-Cookie:
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
  
   All good here
 
  Perhaps not - please enable Cookie Manager Debug logging to see if any
  of the cookies have been rejected, and why.
 
   The next request
   GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
   Cookie Data:
   wordpress_test_cookie=WP+Cookie+check;
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
  
   doesnt have the cookie above  that I bolded which has an explicit path
  and
   httponly (not sure which of the attributes cause a problem)
  
   Programatically setting the cookies seem to be the only workaround
  without
   code fix, can you please confirm (I dont think expiry date has
 naything
  to
   do with , like you say , past expiry is used to delete a cookie)
   regards
   deepak
  
  
   On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
  
   Yes; perhaps it is deliberately sending expired dates in order to
   delete the cookies. I have seen another server do this.
  
   From some biref experiments with your test site, I suspect the login
   problem is nothing to do with expired cookies after all, but there is
   probably some other setting that is not correct.
  
   Look for parameters that have odd-looking values; they may be being
   set by Javascript in the browser, in which case you will have to work
   out how to extract the relevant values from the previous reponse.
  
   Or record the login twice, and compare the generated test plans to
 see
   which entries have changed. You then have to work out how to extract
   the values they need. The Save Responses to a File Listener can be
   helpful here.
  
   BTW, JMeter cannot currently handle deflate encoding, so make sure
 you
   don't enable that in the Header Manager.
  
   Also, Excludes *do* work - make sure that there aren't any trailing
   spaces or other spurious characters in the fields.
  
   On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com
 wrote:
Did any of you notice that the Date of the request is accurate and
 so
are some of the cookies? WordPress seems to deliberately send the
login related cookies with the year old expiration. Others are
 fine.
   
I mention this because there seems to be an idea that the server
 time
is configured wrong.
   
On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
On 2 June 2011 17:26, Bruce Ide flyingrhenqu...@gmail.com
 wrote:
  I think it's a bit premature to suggest that WordPress is
 broken.
  It
  is used on tens of millions of sites and people are able to
 login
   fine
 every day.
   
Number of users is not a quality metric! Look at Windows... (Heh
 heh
   heh)
   
Well there's your problem!
 

Re: cookie manager not working

2011-06-02 Thread Daniel Watrous
Thank You.

This works wonderfully. It's exactly what I was hoping to be able to
accomplish. You all really went the extra mile to help me out.

Can anyone tell me why my exclude definitions on the proxy didn't
exclude the files I expected?

Daniel

On Thu, Jun 2, 2011 at 9:27 PM, Deepak Shetty shet...@gmail.com wrote:
 You are right , that is the problem . However im wondering what the right
 behavior is
 If I request /testjmeter/wp-login.php
 Then arent these valid paths for set-cookie
 /
 /testjmeter
 /testjmeter/wp-login.php
 /testjmeter/child/  -- This is the problematic one. I was under the
 impression this was allowed?

 if my page is at the root /wp-login.php then I think all directories under /
 are allowed in the Set-Cookie?

 I tried to look through the cookie RFC and didnt seem to find information
 one way or the other

 I can verify your fix works
 CookieManager.check.cookies=false -- Daniel this should work without needing
 to manipulate cookies (In my example set this in jmeter.properties and
 disable the pre processor that adds the cookie)



 regards
 deepak






 On Thu, Jun 2, 2011 at 6:48 PM, sebb seb...@gmail.com wrote:

 On 3 June 2011 02:32, Deepak Shetty shet...@gmail.com wrote:
  Ok i will . Visually the cookies look fine and one of them does get sent
 in
  the next request (the one without path and http only)

 When I try, I get several cookies rejected, e.g. with the message:

 (Illegal path attribute /testjmeter/wp-admin. Path of origin:
 /testjmeter/wp-login.php)

 Maybe that is part of the problem?

  Daniel : see if
 
 http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
  for you. I added the missing cookie programattically (various
  hardcodes but you shoould be able to login - logout doesnt work because I
  need to remove the cookie i set)
 
  regards
  deepak
 
  On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:
 
  On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
   There seems to be a Jmeter Bug
  
   Login request gets the following as response
  
   Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/testjmeter/
   Set-Cookie:
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
   path=/testjmeter/wp-content/plugins; httponly
   *Set-Cookie:
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
   path=/testjmeter/wp-admin; httponly
   *Set-Cookie:
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
  
   All good here
 
  Perhaps not - please enable Cookie Manager Debug logging to see if any
  of the cookies have been rejected, and why.
 
   The next request
   GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
   Cookie Data:
   wordpress_test_cookie=WP+Cookie+check;
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
  
   doesnt have the cookie above  that I bolded which has an explicit path
  and
   httponly (not sure which of the attributes cause a problem)
  
   Programatically setting the cookies seem to be the only workaround
  without
   code fix, can you please confirm (I dont think expiry date has
 naything
  to
   do with , like you say , past expiry is used to delete a cookie)
   regards
   deepak
  
  
   On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
  
   Yes; perhaps it is deliberately sending expired dates in order to
   delete the cookies. I have seen another server do this.
  
   From some biref experiments with your test site, I suspect the login
   problem is nothing to do with expired cookies after all, but there is
   probably some other setting that is not correct.
  
   Look for parameters that have odd-looking values; they may be being
   set by Javascript in the browser, in which case you will have to work
   out how to extract the relevant values from the previous reponse.
  
   Or record the login twice, and compare the generated test plans to
 see
   which entries have changed. You then have to work out how to extract
   the values they need. The Save Responses to a File Listener can be
   helpful here.
  
   BTW, JMeter cannot currently handle deflate encoding, so make sure
 you
   don't enable that in the Header Manager.
  
   Also, Excludes *do* work - make sure that there aren't any trailing
   spaces or other spurious characters in the fields.
  
   On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com
 wrote:
Did any of you notice that the Date of the request is accurate and
 so
are some of the cookies? WordPress seems to deliberately send the
login related cookies with the year old expiration. Others are
 fine.
   
I mention this because there seems to be an idea that the server
 time
is configured wrong.
   
On Thu, Jun 2, 2011 at 4:32 PM, sebb seb...@gmail.com wrote:
On 2 June 2011 17:26, 

Re: cookie manager not working

2011-06-02 Thread Deepak Shetty
Can anyone tell me why my exclude definitions on the proxy didn't
exclude the files I expected?
Sorry I dont see where this question is? Its probably best to start a new
thread.

On Thu, Jun 2, 2011 at 9:01 PM, Daniel Watrous daniel.watr...@gmail.comwrote:

 Thank You.

 This works wonderfully. It's exactly what I was hoping to be able to
 accomplish. You all really went the extra mile to help me out.

 Can anyone tell me why my exclude definitions on the proxy didn't
 exclude the files I expected?

 Daniel

 On Thu, Jun 2, 2011 at 9:27 PM, Deepak Shetty shet...@gmail.com wrote:
  You are right , that is the problem . However im wondering what the right
  behavior is
  If I request /testjmeter/wp-login.php
  Then arent these valid paths for set-cookie
  /
  /testjmeter
  /testjmeter/wp-login.php
  /testjmeter/child/  -- This is the problematic one. I was under the
  impression this was allowed?
 
  if my page is at the root /wp-login.php then I think all directories
 under /
  are allowed in the Set-Cookie?
 
  I tried to look through the cookie RFC and didnt seem to find information
  one way or the other
 
  I can verify your fix works
  CookieManager.check.cookies=false -- Daniel this should work without
 needing
  to manipulate cookies (In my example set this in jmeter.properties and
  disable the pre processor that adds the cookie)
 
 
 
  regards
  deepak
 
 
 
 
 
 
  On Thu, Jun 2, 2011 at 6:48 PM, sebb seb...@gmail.com wrote:
 
  On 3 June 2011 02:32, Deepak Shetty shet...@gmail.com wrote:
   Ok i will . Visually the cookies look fine and one of them does get
 sent
  in
   the next request (the one without path and http only)
 
  When I try, I get several cookies rejected, e.g. with the message:
 
  (Illegal path attribute /testjmeter/wp-admin. Path of origin:
  /testjmeter/wp-login.php)
 
  Maybe that is part of the problem?
 
   Daniel : see if
  
 
 http://cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/wordpress.jmxworks
   for you. I added the missing cookie programattically (various
   hardcodes but you shoould be able to login - logout doesnt work
 because I
   need to remove the cookie i set)
  
   regards
   deepak
  
   On Thu, Jun 2, 2011 at 6:18 PM, sebb seb...@gmail.com wrote:
  
   On 3 June 2011 02:10, Deepak Shetty shet...@gmail.com wrote:
There seems to be a Jmeter Bug
   
Login request gets the following as response
   
Set-Cookie: wordpress_test_cookie=WP+Cookie+check;
 path=/testjmeter/
Set-Cookie:
   
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
path=/testjmeter/wp-content/plugins; httponly
*Set-Cookie:
   
  
 
 wordpress_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7Ca053ec10f70ffb4681edbea2e9c65bf1;
path=/testjmeter/wp-admin; httponly
*Set-Cookie:
   
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1;
   
All good here
  
   Perhaps not - please enable Cookie Manager Debug logging to see if
 any
   of the cookies have been rejected, and why.
  
The next request
GET http://authnet.danielwatrous.com/testjmeter/wp-admin/
Cookie Data:
wordpress_test_cookie=WP+Cookie+check;
   
  
 
 wordpress_logged_in_44389825f27c6e6c84e4f25396df08b1=admin%7C1307235979%7C33bd157a96bcaf545769fa5d4b8483e1
   
doesnt have the cookie above  that I bolded which has an explicit
 path
   and
httponly (not sure which of the attributes cause a problem)
   
Programatically setting the cookies seem to be the only workaround
   without
code fix, can you please confirm (I dont think expiry date has
  naything
   to
do with , like you say , past expiry is used to delete a cookie)
regards
deepak
   
   
On Thu, Jun 2, 2011 at 5:52 PM, sebb seb...@gmail.com wrote:
   
Yes; perhaps it is deliberately sending expired dates in order to
delete the cookies. I have seen another server do this.
   
From some biref experiments with your test site, I suspect the
 login
problem is nothing to do with expired cookies after all, but there
 is
probably some other setting that is not correct.
   
Look for parameters that have odd-looking values; they may be
 being
set by Javascript in the browser, in which case you will have to
 work
out how to extract the relevant values from the previous reponse.
   
Or record the login twice, and compare the generated test plans to
  see
which entries have changed. You then have to work out how to
 extract
the values they need. The Save Responses to a File Listener can be
helpful here.
   
BTW, JMeter cannot currently handle deflate encoding, so make sure
  you
don't enable that in the Header Manager.
   
Also, Excludes *do* work - make sure that there aren't any
 trailing
spaces or other spurious characters in the fields.
   
On 3 June 2011 01:30, Daniel Watrous daniel.watr...@gmail.com
  wrote:
  

Re: cookie manager not working

2011-06-01 Thread Daniel Watrous
I've discovered that the cookies sent back by wordpress have an
expires value one year before the date of the request. Browsers seem
to store this as a session cookie, but I'm not sure why. Is there some
way to tell the cookie manager to deal with these cookies that have an
expires value before right now?

I've put in a post on the wordpress forum to figure out why they do it that way.

I also can't find a log file. How can I troubleshoot the reason a log
file won't write?

Daniel

On Fri, May 27, 2011 at 7:29 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 14:17, Daniel Watrous daniel.watr...@gmail.com wrote:
 I had actually tried that before mailing to the list. I just tried it
 again with no change to whether cookies are sent or not.

 In that case, you'll need to enable debug logging  for the Cookie
 Manager: select it and use the Menu item Help/Enable Debug

 Output will be in the log file.

 I can't find the log file, but here's my java version:

 Unless you override the location in the jmeter.properties file, the
 log file will be in the directory where you started JMeter from, by
 default the bin directory, and will be called jmeter.log.

 C:\Program Files (x86)\Console2java -version
 java version 1.6.0_20
 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
 Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

 C:\Program Files (x86)\Console2

 Windows 7 x64

 thanks,

 Daniel



 On Fri, May 27, 2011 at 3:03 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 08:48, sebb seb...@gmail.com wrote:
 On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be compatibility mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to compatibility (first option) when using that

 Actually it's the last option when using Java 1.5, first when using
 1.6 - which is where the problem lies ...

 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to rfc109 (the last option).

 This is odd, since the code specifically tries to set compatibility mode.
 Looks like there may be a Java bug (or at least a change in behaviour).

 It's a change in Java behaviour - the order of cookie policies is
 different, because of internal changes to the libraries.

 JMeter incorrectly relies on the order of the entries. Oops.

 However, there's an easy work-round - just change the policy to 
 compatibility.


 Thanks in advance.

 Daniel

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




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



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



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



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



Re: cookie manager not working

2011-06-01 Thread sebb
On 2 June 2011 02:06, Daniel Watrous daniel.watr...@gmail.com wrote:
 I've discovered that the cookies sent back by wordpress have an
 expires value one year before the date of the request. Browsers seem
 to store this as a session cookie, but I'm not sure why. Is there some
 way to tell the cookie manager to deal with these cookies that have an
 expires value before right now?

No, not without modifying JMeter code.
However, by judicious use of the Regex Extractor you should be able to
extract the cookie from the header and then add it using a Header
Manager.

 I've put in a post on the wordpress forum to figure out why they do it that 
 way.

 I also can't find a log file. How can I troubleshoot the reason a log
 file won't write?

Check if the launch directory is writable. Are you sure there is no
jmeter.log file?

 Daniel

 On Fri, May 27, 2011 at 7:29 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 14:17, Daniel Watrous daniel.watr...@gmail.com wrote:
 I had actually tried that before mailing to the list. I just tried it
 again with no change to whether cookies are sent or not.

 In that case, you'll need to enable debug logging  for the Cookie
 Manager: select it and use the Menu item Help/Enable Debug

 Output will be in the log file.

 I can't find the log file, but here's my java version:

 Unless you override the location in the jmeter.properties file, the
 log file will be in the directory where you started JMeter from, by
 default the bin directory, and will be called jmeter.log.

 C:\Program Files (x86)\Console2java -version
 java version 1.6.0_20
 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
 Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

 C:\Program Files (x86)\Console2

 Windows 7 x64

 thanks,

 Daniel



 On Fri, May 27, 2011 at 3:03 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 08:48, sebb seb...@gmail.com wrote:
 On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be compatibility mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to compatibility (first option) when using that

 Actually it's the last option when using Java 1.5, first when using
 1.6 - which is where the problem lies ...

 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to rfc109 (the last option).

 This is odd, since the code specifically tries to set compatibility 
 mode.
 Looks like there may be a Java bug (or at least a change in behaviour).

 It's a change in Java behaviour - the order of cookie policies is
 different, because of internal changes to the libraries.

 JMeter incorrectly relies on the order of the entries. Oops.

 However, there's an easy work-round - just change the policy to 
 compatibility.


 Thanks in advance.

 Daniel

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




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



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



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



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



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



Re: cookie manager not working

2011-05-27 Thread sebb
On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

The Cookie Manager is set to require RFC2109 cookies; these have a
specific format that is not always followed by servers (or browsers).

The default is supposed to be compatibility mode, try using that.

What version of Java are you using? This will be shown near the start
of the jmeter.log file, e.g.

java.version=1.5.0_22
java.vm.name=Java HotSpot(TM) Client VM

I've just noticed that the default when adding a new Cookie Manager is
set correctly to compatibility (first option) when using that
version, however when using

java.version=1.6.0_25
java.vm.name=Java HotSpot(TM) Client VM

which is the current Java version it is set to rfc109 (the last option).

This is odd, since the code specifically tries to set compatibility mode.
Looks like there may be a Java bug (or at least a change in behaviour).

 Thanks in advance.

 Daniel

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



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



Re: cookie manager not working

2011-05-27 Thread sebb
On 27 May 2011 08:48, sebb seb...@gmail.com wrote:
 On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be compatibility mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to compatibility (first option) when using that

Actually it's the last option when using Java 1.5, first when using
1.6 - which is where the problem lies ...

 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to rfc109 (the last option).

 This is odd, since the code specifically tries to set compatibility mode.
 Looks like there may be a Java bug (or at least a change in behaviour).

It's a change in Java behaviour - the order of cookie policies is
different, because of internal changes to the libraries.

JMeter incorrectly relies on the order of the entries. Oops.

However, there's an easy work-round - just change the policy to compatibility.


 Thanks in advance.

 Daniel

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




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



Re: cookie manager not working

2011-05-27 Thread Daniel Watrous
I had actually tried that before mailing to the list. I just tried it
again with no change to whether cookies are sent or not.

I can't find the log file, but here's my java version:

C:\Program Files (x86)\Console2java -version
java version 1.6.0_20
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

C:\Program Files (x86)\Console2

Windows 7 x64

thanks,

Daniel



On Fri, May 27, 2011 at 3:03 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 08:48, sebb seb...@gmail.com wrote:
 On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be compatibility mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to compatibility (first option) when using that

 Actually it's the last option when using Java 1.5, first when using
 1.6 - which is where the problem lies ...

 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to rfc109 (the last option).

 This is odd, since the code specifically tries to set compatibility mode.
 Looks like there may be a Java bug (or at least a change in behaviour).

 It's a change in Java behaviour - the order of cookie policies is
 different, because of internal changes to the libraries.

 JMeter incorrectly relies on the order of the entries. Oops.

 However, there's an easy work-round - just change the policy to compatibility.


 Thanks in advance.

 Daniel

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




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



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



Re: cookie manager not working

2011-05-27 Thread sebb
On 27 May 2011 14:17, Daniel Watrous daniel.watr...@gmail.com wrote:
 I had actually tried that before mailing to the list. I just tried it
 again with no change to whether cookies are sent or not.

In that case, you'll need to enable debug logging  for the Cookie
Manager: select it and use the Menu item Help/Enable Debug

Output will be in the log file.

 I can't find the log file, but here's my java version:

Unless you override the location in the jmeter.properties file, the
log file will be in the directory where you started JMeter from, by
default the bin directory, and will be called jmeter.log.

 C:\Program Files (x86)\Console2java -version
 java version 1.6.0_20
 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
 Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

 C:\Program Files (x86)\Console2

 Windows 7 x64

 thanks,

 Daniel



 On Fri, May 27, 2011 at 3:03 AM, sebb seb...@gmail.com wrote:
 On 27 May 2011 08:48, sebb seb...@gmail.com wrote:
 On 27 May 2011 06:47, Daniel Watrous daniel.watr...@gmail.com wrote:
 Hello,

 I've been trying to setup a jmeter program to test a wordpress plugin.
 However, I can't get the login to work. It appears to be sending the
 cookies back correctly when the login is sent, but they don't get
 picked up by the cookie manager.

 I've been searching for a while and looked at dozens of examples.
 Maybe you can spot what I've done wrong from these screenshots:

 http://screencast.com/t/EW1zAgvlK
 http://screencast.com/t/2i8dTyBh
 http://screencast.com/t/fd5dGPvCb

 The Cookie Manager is set to require RFC2109 cookies; these have a
 specific format that is not always followed by servers (or browsers).

 The default is supposed to be compatibility mode, try using that.

 What version of Java are you using? This will be shown near the start
 of the jmeter.log file, e.g.

 java.version=1.5.0_22
 java.vm.name=Java HotSpot(TM) Client VM

 I've just noticed that the default when adding a new Cookie Manager is
 set correctly to compatibility (first option) when using that

 Actually it's the last option when using Java 1.5, first when using
 1.6 - which is where the problem lies ...

 version, however when using

 java.version=1.6.0_25
 java.vm.name=Java HotSpot(TM) Client VM

 which is the current Java version it is set to rfc109 (the last option).

 This is odd, since the code specifically tries to set compatibility mode.
 Looks like there may be a Java bug (or at least a change in behaviour).

 It's a change in Java behaviour - the order of cookie policies is
 different, because of internal changes to the libraries.

 JMeter incorrectly relies on the order of the entries. Oops.

 However, there's an easy work-round - just change the policy to 
 compatibility.


 Thanks in advance.

 Daniel

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




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



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



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



Re: Cookie Manager woes

2010-05-13 Thread Deepak Shetty
possibly you havent specified the data correctly in the Cookie Manager
e.g. domain should be blah.com (exactly)
path should be / or /blah
secure should be blank

On Thu, May 13, 2010 at 7:39 AM, jacobd ja...@aimatch.com wrote:


 Hey everyone.

 Im having trouble with using the cookie manager jmeter.

 Im using jmeter 2.3.4

 When I setup up the cookie manager in my thread group I cant seem to send
 any cookies even with setting one manually. As well as not setting any
 manually when I look at the request in the tree view it shows the
 following:

 GET http://blah.com/blah/blah=blah   --
 just an example request.

 [no cookies]

 Request Headers:
 Connection: keep-alive

 My setup is as follows:

 test plan
  -Thread Group
  - HTTP request
  - Cookie Manager
 Simple Data writer



 Am I missing something in the config file?

 Thanks,
 Jacob
 --
 View this message in context:
 http://old.nabble.com/Cookie-Manager-woes-tp28548416p28548416.html
 Sent from the JMeter - User mailing list archive at Nabble.com.


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




RE: Cookie Manager

2009-06-18 Thread Stromas, Aaron (NIH/OD) [C]
Hi,

Yes, the site works. Thanks for explaining and the tip about Live HTTP Headers. 
I see now that it is the browser that sends the cookie (see below). I haven't 
expected that at all! And I can also see that the returned cookie is for the 
correct path.

On the other hand, WRT my previous attempt to use the HTTP Proxy, it seemingly 
detected SSL, but there is no trace of the SSL at all. Thanks again for your 
help.

-a

http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10


GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10 
HTTP/1.1
Host: webappdev4.era.nih.gov:7783
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) 
Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: 
JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
 newuser=stromasam; 
SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4



HTTP/1.x 302 Redirect to Oracle SSO Server
Date: Thu, 18 Jun 2009 11:20:25 GMT
Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
Location: 
http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4~D3D5AF18~641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA
Set-Cookie: 
JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
 path=/eraservices
Cache-Control: private
Osso-Paranoid: false
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html


-Original Message-
From: Deepak Shetty [mailto:shet...@gmail.com] 
Sent: Wednesday, June 17, 2009 3:37 PM
To: JMeter Users List
Subject: Re: Cookie Manager

Hi
this is correct behavior, you cant specify a different path for Set-Cookie
than the path value you are requesting for(or parents of the path). Does
this site work when you access it using a browser(use firefox plus
livehttpheaders)? If so can you compare what you are getting in Set-Cookie
(the path, domain) when you access it via the browser.
This looks to be a server problem, JSESSIONID should always have a path as
'/' unless you have multiple web-apps
regards
deepak

On Wed, Jun 17, 2009 at 12:05 PM, Stromas, Aaron (NIH/OD) [C] 
stroma...@od.nih.gov wrote:

 Greetings again!

 The log shows that the cookie returned by the Oracle SSO server isn't
 stored by the Cookie Manager, which is a big problem. A show stopper, in
 fact. Can anyone help me with this? Here is what the log shows:

 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager:
 Received Cookie:
 JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth From:
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10
 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Not
 storing invalid cookie:
 JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth for URL
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10(Illegal
  path attribute /auth. Path of origin:
 /eraservices/grantfolder/viewGrantFolder.do)
 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager:
 Found 0 cookies for
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID

Re: Cookie Manager

2009-06-18 Thread Deepak Shetty
Hi
the sample you have posted isnt the same as for the one in your earlier
emails (here you already have a session and no login request , earlier you
had a login request). You will have to record what your browser gets (using
livehttpheaders) and when running jmeter, enable View results tree and
compare each request with what LiveHttpHeaders shows. You may have missed
some posted data or variable or something
I dont think the HTTPManager's cookie policy is causing your problem but I
assume its using compatibility?
regards
deepak

On Thu, Jun 18, 2009 at 4:50 AM, Stromas, Aaron (NIH/OD) [C] 
stroma...@od.nih.gov wrote:

 Hi,

 Yes, the site works. Thanks for explaining and the tip about Live HTTP
 Headers. I see now that it is the browser that sends the cookie (see below).
 I haven't expected that at all! And I can also see that the returned cookie
 is for the correct path.

 On the other hand, WRT my previous attempt to use the HTTP Proxy, it
 seemingly detected SSL, but there is no trace of the SSL at all. Thanks
 again for your help.

 -a


 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10


 GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10
 HTTP/1.1
 Host: webappdev4.era.nih.gov:7783
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11)
 Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 Accept-Language: en-us,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive
 Cookie:
 JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
 newuser=stromasam;
 SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4



 HTTP/1.x 302 Redirect to Oracle SSO Server
 Date: Thu, 18 Jun 2009 11:20:25 GMT
 Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
 Location:
 http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4~D3D5AF18~641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA
 Set-Cookiehttp://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4%7ED3D5AF18%7E641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA%0ASet-Cookie:
 JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
 path=/eraservices
 Cache-Control: private
 Osso-Paranoid: false
 Keep-Alive: timeout=15, max=100
 Connection: Keep-Alive
 Transfer-Encoding: chunked
 Content-Type: text/html


 -Original Message-
 From: Deepak Shetty [mailto:shet...@gmail.com]
 Sent: Wednesday, June 17, 2009 3:37 PM
 To: JMeter Users List
 Subject: Re: Cookie Manager

 Hi
 this is correct behavior, you cant specify a different path for Set-Cookie
 than the path value you are requesting for(or parents of the path). Does
 this site work when you access it using a browser(use firefox plus
 livehttpheaders)? If so can you compare what you are getting in Set-Cookie
 (the path, domain) when you access it via the browser.
 This looks to be a server problem, JSESSIONID should always have a path as
 '/' unless you have multiple web-apps
 regards
 deepak

 On Wed, Jun 17, 2009 at 12:05 PM, Stromas, Aaron (NIH/OD) [C] 
 stroma...@od.nih.gov wrote:

  Greetings again!
 
  The log shows that the cookie returned by the Oracle SSO server isn't
  stored by the Cookie Manager, which is a big problem. A show

Re: Cookie Manager

2009-06-18 Thread sebb
Also make sure that the browser does not already have a cookie from an
existing session.

On 18/06/2009, Deepak Shetty shet...@gmail.com wrote:
 Hi
  the sample you have posted isnt the same as for the one in your earlier
  emails (here you already have a session and no login request , earlier you
  had a login request). You will have to record what your browser gets (using
  livehttpheaders) and when running jmeter, enable View results tree and
  compare each request with what LiveHttpHeaders shows. You may have missed
  some posted data or variable or something
  I dont think the HTTPManager's cookie policy is causing your problem but I
  assume its using compatibility?
  regards
  deepak

  On Thu, Jun 18, 2009 at 4:50 AM, Stromas, Aaron (NIH/OD) [C] 

 stroma...@od.nih.gov wrote:


  Hi,
  
   Yes, the site works. Thanks for explaining and the tip about Live HTTP
   Headers. I see now that it is the browser that sends the cookie (see 
 below).
   I haven't expected that at all! And I can also see that the returned cookie
   is for the correct path.
  
   On the other hand, WRT my previous attempt to use the HTTP Proxy, it
   seemingly detected SSL, but there is no trace of the SSL at all. Thanks
   again for your help.
  
   -a
  
  
   
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10
  
  
   GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10
   HTTP/1.1
   Host: webappdev4.era.nih.gov:7783
   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11)
   Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
   Accept-Language: en-us,en;q=0.5
   Accept-Encoding: gzip,deflate
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Keep-Alive: 300
   Connection: keep-alive
   Cookie:
   
 JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
   newuser=stromasam;
   
 SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4
  
  
  
   HTTP/1.x 302 Redirect to Oracle SSO Server
   Date: Thu, 18 Jun 2009 11:20:25 GMT
   Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
   Location:
   
 http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4~D3D5AF18~641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA

  Set-Cookiehttp://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4%7ED3D5AF18%7E641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA%0ASet-Cookie:

  JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
   path=/eraservices
   Cache-Control: private
   Osso-Paranoid: false
   Keep-Alive: timeout=15, max=100
   Connection: Keep-Alive
   Transfer-Encoding: chunked
   Content-Type: text/html
  
  
   -Original Message-
   From: Deepak Shetty [mailto:shet...@gmail.com]
   Sent: Wednesday, June 17, 2009 3:37 PM
   To: JMeter Users List
   Subject: Re: Cookie Manager
  
   Hi
   this is correct behavior, you cant specify a different path for Set-Cookie
   than the path value you are requesting for(or parents of the path). Does
   this site work when you access it using a browser(use firefox plus
   livehttpheaders)? If so can you compare what you are getting in Set-Cookie
   (the path, domain) when you access it via the browser.
   This looks to be a server problem, JSESSIONID should always have a path

RE: Cookie Manager

2009-06-18 Thread Stromas, Aaron (NIH/OD) [C]
Yes, livehttpheaders helps a great deal. Firebug did not show all the requests, 
so I wasn't coding the test plan correctly. There are several redirections 
(3XX) that livehttpheaders captured, but the Firebug did show. You are correct, 
the Cookie Manager works fine.

-a

-Original Message-
From: Deepak Shetty [mailto:shet...@gmail.com] 
Sent: Thursday, June 18, 2009 11:58 AM
To: JMeter Users List
Subject: Re: Cookie Manager

Hi
the sample you have posted isnt the same as for the one in your earlier
emails (here you already have a session and no login request , earlier you
had a login request). You will have to record what your browser gets (using
livehttpheaders) and when running jmeter, enable View results tree and
compare each request with what LiveHttpHeaders shows. You may have missed
some posted data or variable or something
I dont think the HTTPManager's cookie policy is causing your problem but I
assume its using compatibility?
regards
deepak

On Thu, Jun 18, 2009 at 4:50 AM, Stromas, Aaron (NIH/OD) [C] 
stroma...@od.nih.gov wrote:

 Hi,

 Yes, the site works. Thanks for explaining and the tip about Live HTTP
 Headers. I see now that it is the browser that sends the cookie (see below).
 I haven't expected that at all! And I can also see that the returned cookie
 is for the correct path.

 On the other hand, WRT my previous attempt to use the HTTP Proxy, it
 seemingly detected SSL, but there is no trace of the SSL at all. Thanks
 again for your help.

 -a


 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10


 GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10
 HTTP/1.1
 Host: webappdev4.era.nih.gov:7783
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11)
 Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 Accept-Language: en-us,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive
 Cookie:
 JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
 newuser=stromasam;
 SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4



 HTTP/1.x 302 Redirect to Oracle SSO Server
 Date: Thu, 18 Jun 2009 11:20:25 GMT
 Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
 Location:
 http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4~D3D5AF18~641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA
 Set-Cookiehttp://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4%7ED3D5AF18%7E641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA%0ASet-Cookie:
 JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
 path=/eraservices
 Cache-Control: private
 Osso-Paranoid: false
 Keep-Alive: timeout=15, max=100
 Connection: Keep-Alive
 Transfer-Encoding: chunked
 Content-Type: text/html


 -Original Message-
 From: Deepak Shetty [mailto:shet...@gmail.com]
 Sent: Wednesday, June 17, 2009 3:37 PM
 To: JMeter Users List
 Subject: Re: Cookie Manager

 Hi
 this is correct behavior, you cant specify a different path for Set-Cookie
 than the path value you are requesting for(or parents of the path). Does
 this site work when you access it using a browser(use firefox plus
 livehttpheaders)? If so can you compare what you are getting in Set-Cookie

RE: Cookie Manager

2009-06-18 Thread Stromas, Aaron (NIH/OD) [C]
Yes, I realized that was what was happening AFTER I posted. 

-a

-Original Message-
From: sebb [mailto:seb...@gmail.com] 
Sent: Thursday, June 18, 2009 12:02 PM
To: JMeter Users List
Subject: Re: Cookie Manager

Also make sure that the browser does not already have a cookie from an
existing session.

On 18/06/2009, Deepak Shetty shet...@gmail.com wrote:
 Hi
  the sample you have posted isnt the same as for the one in your earlier
  emails (here you already have a session and no login request , earlier you
  had a login request). You will have to record what your browser gets (using
  livehttpheaders) and when running jmeter, enable View results tree and
  compare each request with what LiveHttpHeaders shows. You may have missed
  some posted data or variable or something
  I dont think the HTTPManager's cookie policy is causing your problem but I
  assume its using compatibility?
  regards
  deepak

  On Thu, Jun 18, 2009 at 4:50 AM, Stromas, Aaron (NIH/OD) [C] 

 stroma...@od.nih.gov wrote:


  Hi,
  
   Yes, the site works. Thanks for explaining and the tip about Live HTTP
   Headers. I see now that it is the browser that sends the cookie (see 
 below).
   I haven't expected that at all! And I can also see that the returned cookie
   is for the correct path.
  
   On the other hand, WRT my previous attempt to use the HTTP Proxy, it
   seemingly detected SSL, but there is no trace of the SSL at all. Thanks
   again for your help.
  
   -a
  
  
   
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10
  
  
   GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10
   HTTP/1.1
   Host: webappdev4.era.nih.gov:7783
   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11)
   Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
   Accept-Language: en-us,en;q=0.5
   Accept-Encoding: gzip,deflate
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Keep-Alive: 300
   Connection: keep-alive
   Cookie:
   
 JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
   newuser=stromasam;
   
 SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4
  
  
  
   HTTP/1.x 302 Redirect to Oracle SSO Server
   Date: Thu, 18 Jun 2009 11:20:25 GMT
   Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
   Location:
   
 http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4~D3D5AF18~641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA

  Set-Cookiehttp://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4%7ED3D5AF18%7E641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA%0ASet-Cookie:

  JSESSIONID=9c28ee1630d6c16635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe;
   path=/eraservices
   Cache-Control: private
   Osso-Paranoid: false
   Keep-Alive: timeout=15, max=100
   Connection: Keep-Alive
   Transfer-Encoding: chunked
   Content-Type: text/html
  
  
   -Original Message-
   From: Deepak Shetty [mailto:shet...@gmail.com]
   Sent: Wednesday, June 17, 2009 3:37 PM
   To: JMeter Users List
   Subject: Re: Cookie Manager
  
   Hi
   this is correct behavior, you cant specify a different path for Set-Cookie
   than the path value you are requesting for(or parents of the path). Does
   this site work when you access it using a browser(use firefox

Re: Cookie Manager

2009-06-17 Thread Noel O'Brien
Whereabouts in the test plan have you added the Cookie Manager? 

See 
http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_support
 for more info. 

Regards, 
Noel 

- Aaron Stromas (NIH/OD) [C] stroma...@od.nih.gov wrote: 
 Hello again, 
 
 I have added a Cookie Manager to my hand coded test plan. The first response 
 sets a cookie: Set-Cookie: JSESSIONID= but the next request has no 
 cookies ([no cookies] under the Response data tab. What am I doing wrong? TIA 
 
 -a 
 

-- 
Regards, 
Noel 


RE: Cookie Manager

2009-06-17 Thread Stromas, Aaron (NIH/OD) [C]
I added it to the Thread Group. Under the thread group I have Login Config 
Element, CSV Data Set Config and HTTP Cookie Manager, HTTP Request Defaults 
followed by two HTTP Requests.

-a

-Original Message-
From: Noel O'Brien [mailto:nobr...@newbay.com] 
Sent: Wednesday, June 17, 2009 11:45 AM
To: JMeter Users List
Subject: Re: Cookie Manager

Whereabouts in the test plan have you added the Cookie Manager? 

See 
http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_support
 for more info. 

Regards, 
Noel 

- Aaron Stromas (NIH/OD) [C] stroma...@od.nih.gov wrote: 
 Hello again, 
 
 I have added a Cookie Manager to my hand coded test plan. The first response 
 sets a cookie: Set-Cookie: JSESSIONID= but the next request has no 
 cookies ([no cookies] under the Response data tab. What am I doing wrong? TIA 
 
 -a 
 

-- 
Regards, 
Noel 

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



RE: Cookie Manager

2009-06-17 Thread Stromas, Aaron (NIH/OD) [C]
Hello again!

I have turned on debugging for the Cookie Manager:

2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: 
Received Cookie: 
JSESSIONID=9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth From: http://webappdev4.era.nih.gov:7781/auth/login.jsp 
2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Add 
cookie to store webappdev4.era.nih.gov  TRUE/auth   FALSE   0   
JSESSIONID  
9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe
 
2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Found 0 
cookies for 
http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10


If I'm reading this correctly, the cookie isn't used for the second request 
because it is associated with a different URL. Is there a way to associate the 
returned cookie with /eraservices/grantfolde/viewGrantFolder.do?

-a

-Original Message-
From: Noel O'Brien [mailto:nobr...@newbay.com] 
Sent: Wednesday, June 17, 2009 11:45 AM
To: JMeter Users List
Subject: Re: Cookie Manager

Whereabouts in the test plan have you added the Cookie Manager? 

See 
http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_support
 for more info. 

Regards, 
Noel 

- Aaron Stromas (NIH/OD) [C] stroma...@od.nih.gov wrote: 
 Hello again, 
 
 I have added a Cookie Manager to my hand coded test plan. The first response 
 sets a cookie: Set-Cookie: JSESSIONID= but the next request has no 
 cookies ([no cookies] under the Response data tab. What am I doing wrong? TIA 
 
 -a 
 

-- 
Regards, 
Noel 

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



RE: Cookie Manager

2009-06-17 Thread Stromas, Aaron (NIH/OD) [C]
Greetings again!

The log shows that the cookie returned by the Oracle SSO server isn't stored by 
the Cookie Manager, which is a big problem. A show stopper, in fact. Can anyone 
help me with this? Here is what the log shows:

2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: 
Received Cookie: 
JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth From: 
http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10
 
2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Not 
storing invalid cookie: 
JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth for URL 
http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10
 (Illegal path attribute /auth. Path of origin: 
/eraservices/grantfolder/viewGrantFolder.do) 
2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Found 0 
cookies for 
http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10

-Original Message-
From: Stromas, Aaron (NIH/OD) [C] 
Sent: Wednesday, June 17, 2009 1:31 PM
To: 'JMeter Users List'
Subject: RE: Cookie Manager

Hello again!

I have turned on debugging for the Cookie Manager:

2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: 
Received Cookie: 
JSESSIONID=9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth From: http://webappdev4.era.nih.gov:7781/auth/login.jsp 
2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Add 
cookie to store webappdev4.era.nih.gov  TRUE/auth   FALSE   0   
JSESSIONID  
9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe
 
2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Found 0 
cookies for 
http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10


If I'm reading this correctly, the cookie isn't used for the second request 
because it is associated with a different URL. Is there a way to associate the 
returned cookie with /eraservices/grantfolde/viewGrantFolder.do?

-a

-Original Message-
From: Noel O'Brien [mailto:nobr...@newbay.com] 
Sent: Wednesday, June 17, 2009 11:45 AM
To: JMeter Users List
Subject: Re: Cookie Manager

Whereabouts in the test plan have you added the Cookie Manager? 

See 
http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_support
 for more info. 

Regards, 
Noel 

- Aaron Stromas (NIH/OD) [C] stroma...@od.nih.gov wrote: 
 Hello again, 
 
 I have added a Cookie Manager to my hand coded test plan. The first response 
 sets a cookie: Set-Cookie: JSESSIONID= but the next request has no 
 cookies ([no cookies] under the Response data tab. What am I doing wrong? TIA 
 
 -a 
 

-- 
Regards, 
Noel 

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



Re: Cookie Manager

2009-06-17 Thread Deepak Shetty
Hi
this is correct behavior, you cant specify a different path for Set-Cookie
than the path value you are requesting for(or parents of the path). Does
this site work when you access it using a browser(use firefox plus
livehttpheaders)? If so can you compare what you are getting in Set-Cookie
(the path, domain) when you access it via the browser.
This looks to be a server problem, JSESSIONID should always have a path as
'/' unless you have multiple web-apps
regards
deepak

On Wed, Jun 17, 2009 at 12:05 PM, Stromas, Aaron (NIH/OD) [C] 
stroma...@od.nih.gov wrote:

 Greetings again!

 The log shows that the cookie returned by the Oracle SSO server isn't
 stored by the Cookie Manager, which is a big problem. A show stopper, in
 fact. Can anyone help me with this? Here is what the log shows:

 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager:
 Received Cookie:
 JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth From:
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10
 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager: Not
 storing invalid cookie:
 JSESSIONID=9c28ee1630d506e961794696437da92ee6b5154398c0.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth for URL
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10(Illegal
  path attribute /auth. Path of origin:
 /eraservices/grantfolder/viewGrantFolder.do)
 2009/06/17 14:44:08 DEBUG - jmeter.protocol.http.control.CookieManager:
 Found 0 cookies for
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=${applID}folderID=10http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7DfolderID=10

 -Original Message-
 From: Stromas, Aaron (NIH/OD) [C]
 Sent: Wednesday, June 17, 2009 1:31 PM
 To: 'JMeter Users List'
 Subject: RE: Cookie Manager

 Hello again!

 I have turned on debugging for the Cookie Manager:

 2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager:
 Received Cookie:
 JSESSIONID=9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe;
 path=/auth From: http://webappdev4.era.nih.gov:7781/auth/login.jsp
 2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager: Add
 cookie to store webappdev4.era.nih.gov  TRUE/auth   FALSE   0
   JSESSIONID
  
 9c28ee1630d5e880e94040eb42d49fb8bf6210325a77.e34PahuKc3eKby0QaxyMbNmRbNn0n6jAmljGr5XDqQLvpAe
 2009/06/17 13:19:41 DEBUG - jmeter.protocol.http.control.CookieManager:
 Found 0 cookies for
 http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=7321077folderID=10


 If I'm reading this correctly, the cookie isn't used for the second request
 because it is associated with a different URL. Is there a way to associate
 the returned cookie with /eraservices/grantfolde/viewGrantFolder.do?

 -a

 -Original Message-
 From: Noel O'Brien [mailto:nobr...@newbay.com]
 Sent: Wednesday, June 17, 2009 11:45 AM
 To: JMeter Users List
 Subject: Re: Cookie Manager

 Whereabouts in the test plan have you added the Cookie Manager?

 See
 http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html#adding_cookie_supportfor
  more info.

 Regards,
 Noel

 - Aaron Stromas (NIH/OD) [C] stroma...@od.nih.gov wrote:
  Hello again,
 
  I have added a Cookie Manager to my hand coded test plan. The first
 response sets a cookie: Set-Cookie: JSESSIONID= but the next request has
 no cookies ([no cookies] under the Response data tab. What am I doing wrong?
 TIA
 
  -a
 

 --
 Regards,
 Noel

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




RE: Cookie Manager

2009-05-04 Thread Kannan, Sengamalam
Please let me know the next step after finding the set-cookie for PS_TOKEN in 
the response headers.

Thanks  Regards
Sengamalam Kannan
Testing CoE
Mobile: +91 99529 67005
Tel: +91 44 6615 2684

-Original Message-
From: Himanshu Ghai [mailto:himanshug...@gmail.com]
Sent: Friday, May 01, 2009 4:26 AM
To: JMeter Users List
Subject: Re: Cookie Manager

Look at the requests which set the cookie in response headers.
If you have automatic redirects, i am not sure but i faintly remember
you might need to redirect yourself to set cookies in jmeter.

First step is to find the requests which set the cookies ps-token
andps_login..in browser response headers look for set-cookie

Himanshu

On Thu, Apr 30, 2009 at 5:51 AM, Kannan, Sengamalam
sengamalam.kan...@aig.com wrote:
 Sebb
 I also work with Ranjitha in solving the below issue. Let me try to explain 
 you clearly what issue we are facing.

 When we record scenario using JMeter, the jmeter request and response headers 
 are same as the browser's.

 But when we run the script, headers doent have the PS_TOKEN and PS_LOGIN 
 cookie parameter and only the PSJSESSIONID is present.

 We don't know how to solve this as we have also added Cookie Manager and 
 tried with all the policy options available there (ex: compatibility, rfc.., 
 default, etc) but nothing worked.

 Do we need to configure something else? Please help us to solve this.

 Thanks  Regards
 Sengamalam Kannan
 Testing CoE
 Mobile: +91 99529 67005
 Tel: +91 44 6615 2684

 -Original Message-
 From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
 Sent: Thursday, April 30, 2009 6:14 PM
 To: JMeter Users List
 Subject: RE: Cookie Manager

 The recorded request header is the same as the browser request header.


 Thanks and Regards,
 Ranjitha Prakash
 Mob: 9884383831
 Off: 66152735
 It is easy to sit up and take notice. What is difficult is getting up and 
 taking action

 -Original Message-
 From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
 Sent: Thursday, April 30, 2009 5:51 PM
 To: JMeter Users List
 Subject: RE: Cookie Manager

 Given below is the request header

 Request Headers:
 Connection: keep-alive
 Host: 10.46.188.36:8080
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
 InfoPath.1)
 Accept-Language: en-us
 Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
 application/x-shockwave-flash, application/vnd.ms-excel, 
 application/vnd.ms-powerpoint, application/msword, */*

 Thanks and Regards,
 Ranjitha Prakash
 Mob: 9884383831
 Off: 66152735
 It is easy to sit up and take notice. What is difficult is getting up and 
 taking action

 -Original Message-
 From: sebb [mailto:seb...@gmail.com]
 Sent: Thursday, April 30, 2009 5:40 PM
 To: JMeter Users List
 Subject: Re: Cookie Manager

 What about the Requests?

 And how do these differ from the requests made by a browser?

 On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 These are the recorded script response headers in JMeter. But when we run 
 the script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note 
 that we have also ncluded Cookie Manager.

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:04 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 1853
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  UsesPortalRelativeURL: true
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
  PortalRegisteredURL: 
 http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:03 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 716
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


  Response headers:
  HTTP/1.1 302 Moved Temporarily
  Date: Thu, 30 Apr 2009 11:25:00 GMT
  Location: 
 http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Type: text/html
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Transfer-Encoding: Chunked
  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
 path=/
  Set-Cookie: 
 PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
  path=/
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
  Connection: Close

Re: Cookie Manager

2009-04-30 Thread sebb
What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 These are the recorded script response headers in JMeter. But when we run the 
 script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
 we have also ncluded Cookie Manager.

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:04 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 1853
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  UsesPortalRelativeURL: true
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
  PortalRegisteredURL: 
 http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:03 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 716
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


  Response headers:
  HTTP/1.1 302 Moved Temporarily
  Date: Thu, 30 Apr 2009 11:25:00 GMT
  Location: 
 http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Type: text/html
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Transfer-Encoding: Chunked
  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
 path=/
  Set-Cookie: 
 PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
  path=/
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
  Connection: Close


  Thanks and Regards,
  Ranjitha Prakash
  Mob: 9884383831
  Off: 66152735
  It is easy to sit up and take notice. What is difficult is getting up and 
 taking action


 -Original Message-
  From: sebb [mailto:seb...@gmail.com]
  Sent: Thursday, April 30, 2009 4:31 PM
  To: JMeter Users List
  Subject: Re: Cookie Manager

  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

  On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
   Hi All,
  
   I am trying to do load test for a web page. I have enabled the 
 cookie manager and all other required setup properly. But Still while doing 
 the load test, I am getting the following error message You must have 
 cookies enabled in order to sign in to your application. Return to sign in 
 with cookies enabled. Please give me an appropriate solution for this error.
  
  
  
Thanks and Regards,
  
Ranjitha Prakash
  
Mob: 9884383831
  
Off: 66152735
  
It is easy to sit up and take notice. What is difficult is getting up and 
 taking action
  


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

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



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



RE: Cookie Manager

2009-04-30 Thread Prakash, Ranjitha
Given below is the request header

Request Headers:
Connection: keep-alive
Host: 10.46.188.36:8080
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Accept-Language: en-us
Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 5:40 PM
To: JMeter Users List
Subject: Re: Cookie Manager

What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 These are the recorded script response headers in JMeter. But when we run the 
 script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
 we have also ncluded Cookie Manager.

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:04 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 1853
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  UsesPortalRelativeURL: true
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
  PortalRegisteredURL: 
 http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:03 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 716
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


  Response headers:
  HTTP/1.1 302 Moved Temporarily
  Date: Thu, 30 Apr 2009 11:25:00 GMT
  Location: 
 http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Type: text/html
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Transfer-Encoding: Chunked
  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
 path=/
  Set-Cookie: 
 PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
  path=/
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
  Connection: Close


  Thanks and Regards,
  Ranjitha Prakash
  Mob: 9884383831
  Off: 66152735
  It is easy to sit up and take notice. What is difficult is getting up and 
 taking action


 -Original Message-
  From: sebb [mailto:seb...@gmail.com]
  Sent: Thursday, April 30, 2009 4:31 PM
  To: JMeter Users List
  Subject: Re: Cookie Manager

  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

  On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
   Hi All,
  
   I am trying to do load test for a web page. I have enabled the 
 cookie manager and all other required setup properly. But Still while doing 
 the load test, I am getting the following error message You must have 
 cookies enabled in order to sign in to your application. Return to sign in 
 with cookies enabled. Please give me an appropriate solution for this error.
  
  
  
Thanks and Regards,
  
Ranjitha Prakash
  
Mob: 9884383831
  
Off: 66152735
  
It is easy to sit up and take notice. What is difficult is getting up and 
 taking action
  


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

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



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

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



RE: Cookie Manager

2009-04-30 Thread Prakash, Ranjitha
These are the recorded script response headers in JMeter. But when we run the 
script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that we 
have also ncluded Cookie Manager.

Response headers:
HTTP/1.1 200 OK
Date: Thu, 30 Apr 2009 11:25:04 GMT
Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 09:54:21
Content-Encoding: gzip
Content-Length: 1853
Content-Type: text/html; CHARSET=UTF-8
Expires: Thu, 01 Dec 1994 16:00:00 GMT
UsesPortalRelativeURL: true
Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
PortalRegisteredURL: 
http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

Response headers:
HTTP/1.1 200 OK
Date: Thu, 30 Apr 2009 11:25:03 GMT
Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 09:54:21
Content-Encoding: gzip
Content-Length: 716
Content-Type: text/html; CHARSET=UTF-8
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


Response headers:
HTTP/1.1 302 Moved Temporarily
Date: Thu, 30 Apr 2009 11:25:00 GMT
Location: 
http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 09:54:21
Content-Type: text/html
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Transfer-Encoding: Chunked
Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; path=/
Set-Cookie: 
PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
 path=/
Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
Connection: Close

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 4:31 PM
To: JMeter Users List
Subject: Re: Cookie Manager

http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 Hi All,

 I am trying to do load test for a web page. I have enabled the 
 cookie manager and all other required setup properly. But Still while doing 
 the load test, I am getting the following error message You must have 
 cookies enabled in order to sign in to your application. Return to sign in 
 with cookies enabled. Please give me an appropriate solution for this error.



  Thanks and Regards,

  Ranjitha Prakash

  Mob: 9884383831

  Off: 66152735

  It is easy to sit up and take notice. What is difficult is getting up and 
 taking action


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

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



RE: Cookie Manager

2009-04-30 Thread Prakash, Ranjitha
The recorded request header is the same as the browser request header.


Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
Sent: Thursday, April 30, 2009 5:51 PM
To: JMeter Users List
Subject: RE: Cookie Manager

Given below is the request header

Request Headers:
Connection: keep-alive
Host: 10.46.188.36:8080
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Accept-Language: en-us
Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 5:40 PM
To: JMeter Users List
Subject: Re: Cookie Manager

What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 These are the recorded script response headers in JMeter. But when we run the 
 script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
 we have also ncluded Cookie Manager.

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:04 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 1853
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  UsesPortalRelativeURL: true
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
  PortalRegisteredURL: 
 http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:03 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 716
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


  Response headers:
  HTTP/1.1 302 Moved Temporarily
  Date: Thu, 30 Apr 2009 11:25:00 GMT
  Location: 
 http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Type: text/html
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Transfer-Encoding: Chunked
  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
 path=/
  Set-Cookie: 
 PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
  path=/
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
  Connection: Close


  Thanks and Regards,
  Ranjitha Prakash
  Mob: 9884383831
  Off: 66152735
  It is easy to sit up and take notice. What is difficult is getting up and 
 taking action


 -Original Message-
  From: sebb [mailto:seb...@gmail.com]
  Sent: Thursday, April 30, 2009 4:31 PM
  To: JMeter Users List
  Subject: Re: Cookie Manager

  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

  On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
   Hi All,
  
   I am trying to do load test for a web page. I have enabled the 
 cookie manager and all other required setup properly. But Still while doing 
 the load test, I am getting the following error message You must have 
 cookies enabled in order to sign in to your application. Return to sign in 
 with cookies enabled. Please give me an appropriate solution for this error.
  
  
  
Thanks and Regards,
  
Ranjitha Prakash
  
Mob: 9884383831
  
Off: 66152735
  
It is easy to sit up and take notice. What is difficult is getting up and 
 taking action
  


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

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



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

RE: Cookie Manager

2009-04-30 Thread Kannan, Sengamalam
Sebb
I also work with Ranjitha in solving the below issue. Let me try to explain you 
clearly what issue we are facing.

When we record scenario using JMeter, the jmeter request and response headers 
are same as the browser's.

But when we run the script, headers doent have the PS_TOKEN and PS_LOGIN cookie 
parameter and only the PSJSESSIONID is present.

We don't know how to solve this as we have also added Cookie Manager and tried 
with all the policy options available there (ex: compatibility, rfc.., default, 
etc) but nothing worked.

Do we need to configure something else? Please help us to solve this.

Thanks  Regards
Sengamalam Kannan
Testing CoE
Mobile: +91 99529 67005
Tel: +91 44 6615 2684

-Original Message-
From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
Sent: Thursday, April 30, 2009 6:14 PM
To: JMeter Users List
Subject: RE: Cookie Manager

The recorded request header is the same as the browser request header.


Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
Sent: Thursday, April 30, 2009 5:51 PM
To: JMeter Users List
Subject: RE: Cookie Manager

Given below is the request header

Request Headers:
Connection: keep-alive
Host: 10.46.188.36:8080
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)
Accept-Language: en-us
Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*

Thanks and Regards,
Ranjitha Prakash
Mob: 9884383831
Off: 66152735
It is easy to sit up and take notice. What is difficult is getting up and 
taking action

-Original Message-
From: sebb [mailto:seb...@gmail.com]
Sent: Thursday, April 30, 2009 5:40 PM
To: JMeter Users List
Subject: Re: Cookie Manager

What about the Requests?

And how do these differ from the requests made by a browser?

On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 These are the recorded script response headers in JMeter. But when we run the 
 script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note that 
 we have also ncluded Cookie Manager.

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:04 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 1853
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  UsesPortalRelativeURL: true
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
  PortalRegisteredURL: 
 http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:03 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 716
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


  Response headers:
  HTTP/1.1 302 Moved Temporarily
  Date: Thu, 30 Apr 2009 11:25:00 GMT
  Location: 
 http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Type: text/html
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Transfer-Encoding: Chunked
  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
 path=/
  Set-Cookie: 
 PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
  path=/
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
  Connection: Close


  Thanks and Regards,
  Ranjitha Prakash
  Mob: 9884383831
  Off: 66152735
  It is easy to sit up and take notice. What is difficult is getting up and 
 taking action


 -Original Message-
  From: sebb [mailto:seb...@gmail.com]
  Sent: Thursday, April 30, 2009 4:31 PM
  To: JMeter Users List
  Subject: Re: Cookie Manager

  http://wiki.apache.org/jakarta-jmeter/DifferentBehaviour

  On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
   Hi All,
  
   I am trying to do load test for a web page. I have enabled the 
 cookie manager and all other required setup properly. But Still while doing 
 the load test, I am getting the following error message You must have 
 cookies enabled in order to sign in to your application. Return to sign in 
 with cookies enabled. Please give me an appropriate

Re: Cookie Manager

2009-04-30 Thread Himanshu Ghai
Look at the requests which set the cookie in response headers.
If you have automatic redirects, i am not sure but i faintly remember
you might need to redirect yourself to set cookies in jmeter.

First step is to find the requests which set the cookies ps-token
andps_login..in browser response headers look for set-cookie

Himanshu

On Thu, Apr 30, 2009 at 5:51 AM, Kannan, Sengamalam
sengamalam.kan...@aig.com wrote:
 Sebb
 I also work with Ranjitha in solving the below issue. Let me try to explain 
 you clearly what issue we are facing.

 When we record scenario using JMeter, the jmeter request and response headers 
 are same as the browser's.

 But when we run the script, headers doent have the PS_TOKEN and PS_LOGIN 
 cookie parameter and only the PSJSESSIONID is present.

 We don't know how to solve this as we have also added Cookie Manager and 
 tried with all the policy options available there (ex: compatibility, rfc.., 
 default, etc) but nothing worked.

 Do we need to configure something else? Please help us to solve this.

 Thanks  Regards
 Sengamalam Kannan
 Testing CoE
 Mobile: +91 99529 67005
 Tel: +91 44 6615 2684

 -Original Message-
 From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
 Sent: Thursday, April 30, 2009 6:14 PM
 To: JMeter Users List
 Subject: RE: Cookie Manager

 The recorded request header is the same as the browser request header.


 Thanks and Regards,
 Ranjitha Prakash
 Mob: 9884383831
 Off: 66152735
 It is easy to sit up and take notice. What is difficult is getting up and 
 taking action

 -Original Message-
 From: Prakash, Ranjitha [mailto:ranjitha.prak...@aig.com]
 Sent: Thursday, April 30, 2009 5:51 PM
 To: JMeter Users List
 Subject: RE: Cookie Manager

 Given below is the request header

 Request Headers:
 Connection: keep-alive
 Host: 10.46.188.36:8080
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
 InfoPath.1)
 Accept-Language: en-us
 Referer: http://10.46.188.36:8080/psp/HR880TST/?cmd=login
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
 application/x-shockwave-flash, application/vnd.ms-excel, 
 application/vnd.ms-powerpoint, application/msword, */*

 Thanks and Regards,
 Ranjitha Prakash
 Mob: 9884383831
 Off: 66152735
 It is easy to sit up and take notice. What is difficult is getting up and 
 taking action

 -Original Message-
 From: sebb [mailto:seb...@gmail.com]
 Sent: Thursday, April 30, 2009 5:40 PM
 To: JMeter Users List
 Subject: Re: Cookie Manager

 What about the Requests?

 And how do these differ from the requests made by a browser?

 On 30/04/2009, Prakash, Ranjitha ranjitha.prak...@aig.com wrote:
 These are the recorded script response headers in JMeter. But when we run 
 the script Response Headers doesn't have the PS_TOKEN,  PS_LOGIN etc. Note 
 that we have also ncluded Cookie Manager.

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:04 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 1853
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  UsesPortalRelativeURL: true
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:04_GMT; path=/
  PortalRegisteredURL: 
 http://10.46.188.36:8080/psc/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL

  Response headers:
  HTTP/1.1 200 OK
  Date: Thu, 30 Apr 2009 11:25:03 GMT
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Encoding: gzip
  Content-Length: 716
  Content-Type: text/html; CHARSET=UTF-8
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/


  Response headers:
  HTTP/1.1 302 Moved Temporarily
  Date: Thu, 30 Apr 2009 11:25:00 GMT
  Location: 
 http://10.46.188.36:8080/psp/FP/EMPLOYEE/HRMS/c/MAINTAIN_SECURITY.EMAIL_PSWD.GBL
  Server: WebLogic WebLogic Temporary patch 2 for PeopleSoft 04/30/2002 
 09:54:21
  Content-Type: text/html
  Expires: Thu, 01 Dec 1994 16:00:00 GMT
  Transfer-Encoding: Chunked
  Set-Cookie: SignOnDefault=; expires=Thursday, 07-May-2009 11:25:03 GMT; 
 path=/
  Set-Cookie: 
 PS_TOKEN=sAQDAgEBvAIsBABTaGRyAk4AfQg4AC4AMQAwABSDa0+u3FOdXwNMa2yUaydpOJJjBnAFAFNkYXRhZHicHYpBDoJAEAQLJBx9gV9gs4H1sEcTXT0BAROPvsSf8TgrO53pztT0D+hObdOYR0udS2Fh46m/Wbmxq09ld/oHs6/zKiv+v7zkaSSqzKAnfTIHRhXcqx5lobaid7bFH4kfDgI=;
  path=/
  Set-Cookie: PS_TOKENEXPIRE=30_Apr_2009_11:25:03_GMT; path=/
  Set-Cookie: PS_LOGINLIST=http://10.46.188.36:8080/FP; path=/
  Set-Cookie: ExpirePage=http://10.46.188.36:8080/psp/FP/; path=/
  Connection: Close


  Thanks and Regards,
  Ranjitha Prakash
  Mob: 9884383831
  Off: 66152735
  It is easy to sit up and take notice. What is difficult is getting up and 
 taking action


 -Original Message-
  From: sebb [mailto:seb...@gmail.com]
  Sent: Thursday, April 30, 2009 4:31 PM
  To: JMeter Users List
  Subject: Re: Cookie Manager

  http://wiki.apache.org

Re: Cookie Manager with Include Controller

2009-04-20 Thread sebb
On 20/04/2009, drubix andrew.schr...@gmail.com wrote:

  Hi,

  I have a test plan that includes 4 elements:
  * HTTP Cookie Manager
  * Login request
  * Request to secure page
  * Logout request

  This works perfectly.  Now, I want to encapsulate the login and logout
  requests into separate jmx files so that they can be included in multiple
  different test plans using Include Controllers.  However, I can't figure out
  where to put the HTTP Cookie Manager so that the jsession ID generated by
  the login request is used in the top level plan for the request to the
  secure page.  I've tried to place it in both login.jmx and the top level
  test plan that includes login.jmx using an Include Controller but in both
  situations the Jsession ID returned from the login request isn't used for
  the secure page request.

It should just work if the Cookie Manager is left in the main test plan.

  Is this a supported feature or should I just manually add the login request
  and logout request to each test plan?

  Thanks,

  Drew

 --
  View this message in context: 
 http://www.nabble.com/Cookie-Manager-with-Include-Controller-tp23129747p23129747.html
  Sent from the JMeter - User mailing list archive at Nabble.com.


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



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



Re: Cookie Manager -- JSESSIONID reused

2008-05-06 Thread sebb
2008/5/6 Jason Frank [EMAIL PROTECTED]:
 I am using JMeter 2.3.1 to test a java (Tomcat) web application.  My test 
 involves a login, followed by an action that requires the user to be logged 
 in.  I use an HTTP Cookie Manager in the Thread Group so that the second 
 request will be recognized as logged in, due to the JSESSIONID cookie that 
 gets assigned during login.

  I want to be able to loop over my test, so that it is repeated multiple 
 times.  Therefore, I check the clear cookies each iteration box, so that on 
 the second iteration it will not reuse the JSESSIONID that was assigned the 
 first time.  So far, so good.  I can see the POST to my login page has no 
 cookies each time, and the response contains a SET-COOKIE directive for 
 JSESSIONID.

  The problem comes when I want to use multiple threads.  Suppose I launch 2 
 threads for this Thread Group.  Thread A makes a POST to the login page, with 
 no cookies, and gets a response to set the JSESSIONID cookie.  Then, Thread B 
 makes a POST to the login page, and (here is what I think the root of the 
 problem is) it sends the same cookie value of JSESSIONID  that Thread A 
 received.  The response to Thread B tells it to set a different value for 
 JSESSIONID, so usually this results in two separate logins, but this doesn't 
 always happen.  The result is that I sometimes have both threads using the 
 same value for JSESSIONID, which causes problems later in my test.

  Interestingly, if I don't check the box for clear cookies each iteration, 
 then Thread A and Thread B work fine -- Thread B's POST to the login page has 
 no cookies, as it should.  However, this gets me into trouble when the 
 threads go back for another iteration.  So I can set things up to *either* 
 work for multiple threads, or for multiple loops, but not both.

  Has anyone seen this behavior?  Is this a JMeter bug, or something that I am 
 misunderstanding?


http://wiki.apache.org/jakarta-jmeter/CookieManagerBugIn231



   
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

  -
  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]



Re: Cookie manager

2007-10-04 Thread sebb
On 04/10/2007, Richard Hubbell [EMAIL PROTECTED] wrote:
 Couple of things with the cookie manager. I'm using
 Jmeter 2.3.  The cookie manager defaults to Cookie
 policy rfc2109, if I change it, it switches back to
 rfc2109 and there's no way other than editing the jmx
 by hand to change it, the gui, switches back to
 rfc2109.  A minor problem. Maybe a java issue??

Works fine for me.

 The other problem is more important. The cookie
 manager doesn't seem to work. I've changed it's scope
 but still doesn't work.

It works fine for me with the default policy and with rfc2109.

I just tried with Google and the second sampler sent the cookie
provided by the first response, at least in GUI mode.

Try enabling debug for jmeter.protocol.http.control.CookieManager

 I edit the test plan in the gui and run the test
 without a gui.

Does it work in GUI mode for you?

  
 
 Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
 http://autos.yahoo.com/index.html




 -
 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]



Re: Cookie manager

2007-10-04 Thread Richard Hubbell

--- sebb [EMAIL PROTECTED] wrote:
 
 Works fine for me.

Hate when that happens. I loaded a jmx created in an
earlier version of Jmeter and the cookie policy can be
changed no problem.  Not sure if this a clue to my
problem. I will try re-creating the jmx and see if
that fixes things.

 
  The other problem is more important. The cookie
  manager doesn't seem to work. I've changed it's
 scope
  but still doesn't work.
 
 It works fine for me with the default policy and
 with rfc2109.
 
 I just tried with Google and the second sampler sent
 the cookie
 provided by the first response, at least in GUI
 mode.
 
 Try enabling debug for
 jmeter.protocol.http.control.CookieManager

I will try this, thanks.

 
  I edit the test plan in the gui and run the test
  without a gui.
 
 Does it work in GUI mode for you?

I haven't tried running the test in GUI mode since
it's a remote box.


  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



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



Re: Cookie Manager / View Results Tree

2006-10-04 Thread Rinke Heida



James Wuerflein wrote:
Are there any issues with the Cookie Manager in Jmeter 2.2 ? 
 
I can run the same HTTP commands in Internet Explorer, Netscape,

Firefox and it works fine, but when I try and create a script to do the
same thing, it doesn't seem to work at all.  I just have a single
ThreadGroup, with a Simple Controller with everything underneath that.
 
I seem to get bumped back to our Login page, and prompted to login

again.
  
Maybe you have to send along HTTP headers with information on what 
browser you use. Some websites block browsers not complying to certain 
types or versions of browsers. (You'll see the headers after recording)

I do have the HTTP cookie manager there with the cookie policy set to
Default and have the 'clear the cookies for each iteration' checked.
 
 
Second, 
 
Why does the ViewResultsTree - View not group each thread together

rather than just show you the responses sequentually as they come back?
 
Third,
 
Is there a way to record a script with Jmeter?
  
Right-click Workbench and Add / Non-test elements / Http proxy 
server. Now you can set JMeter to be a proxy server. If you set you 
browser to the same proxy port all traffic will go through JMeter and 
JMeter will produce a nice tree of requests!

See manual for more information.
 
Thanks

James
 
 
 
 
 



__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_
  


--
Rinke Heida


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



Re: Cookie Manager / View Results Tree

2006-10-04 Thread James Wuerflein
yes, sorry, failed to mention I do have a User-Agent string in there as
well in the HTTP Header Manager.
 
Great, thanks for the heads up on the http proxy server.
 
 


 [EMAIL PROTECTED] 10/04 3:38 PM 



James Wuerflein wrote:
 Are there any issues with the Cookie Manager in Jmeter 2.2 ? 
  
 I can run the same HTTP commands in Internet Explorer, Netscape,
 Firefox and it works fine, but when I try and create a script to do
the
 same thing, it doesn't seem to work at all.  I just have a single
 ThreadGroup, with a Simple Controller with everything underneath
that.
  
 I seem to get bumped back to our Login page, and prompted to login
 again.
   
Maybe you have to send along HTTP headers with information on what 
browser you use. Some websites block browsers not complying to certain

types or versions of browsers. (You'll see the headers after
recording)

 I do have the HTTP cookie manager there with the cookie policy set
to
 Default and have the 'clear the cookies for each iteration'
checked.
  
  
 Second, 
  
 Why does the ViewResultsTree - View not group each thread together
 rather than just show you the responses sequentually as they come
back?
  
 Third,
  
 Is there a way to record a script with Jmeter?
   
Right-click Workbench and Add / Non-test elements / Http proxy 
server. Now you can set JMeter to be a proxy server. If you set you 
browser to the same proxy port all traffic will go through JMeter and 
JMeter will produce a nice tree of requests!
See manual for more information.
  
 Thanks
 James
  
  
  
  
  



__
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please
notify
 the system manager.

 Katun Corporation -- www.katun.com 

_
   

-- 
Rinke Heida


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



__
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com 
_

Re: Cookie Manager not working with HTTPS

2006-04-18 Thread Amit Kulkarni
Uncheck Clear cookies each iteration = FALSE and your query will be solved

Amit


On 4/17/06, Edward Patterson [EMAIL PROTECTED] wrote:

 Yes, this is unchecked by default.

 -Original Message-
 From: Amit Kulkarni [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 17, 2006 9:16 AM
 To: JMeter Users List
 Subject: Re: Cookie Manager not working with HTTPS

 If you set Clear cookies each iteration = TRUE under HTTP Cookie
 Manager
 then it will delete the cookies when it passes to the next page.

 Amit


 On 4/15/06, Edward Patterson [EMAIL PROTECTED] wrote:
 
  I am trying to test a web application using HTTPS on JMeter. I am
 using
  JMeter 2-1.20060118 and Java SDK 1.4.2_08. I have recorded and
 executed
  the test fine in HTTP. I have a Cookie Manager for the thread, and the
  cookie information with each request is displayed in the request tab
 on
  the results tree. My test consists of the following: Get the login
 page,
  post login form parameters, get the enter page.
 
  When I switch to HTTPS on 443, I am redirected to the login page on
 the
  second and third requests. I do not see the cookie information in the
  request tab in the results tree. I believe that the Cookie Manager is
  not passing the cookie information back with each subsequent request.
 I
  can reproduce the same results in my browser when I disable cookies
 for
  each request. I have set the logging to debug but can not find any
  information about what cookies are sent with the requests. I do see
 that
  with HTTP request the Cookie Manager is matching the cookies. With
 HTTPS
  request, the Cookie Manager shows it is adding the cookie, but not
  matching the cookie with the previous request.
 
  I have looked through the Users Guide, FAQ, and Bug list for any
  information about the Cookie Manager handling HTTPS request but have
 not
  found anything. Has anyone experienced this behavior using HTTPS in
  JMeter?
 
 
 
 
 
 
 
 
 
  BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
  intended only for the individual or entity to which it is addressed
 and may
  contain information that is confidential and protected by law.
 Unauthorized
  review, use, disclosure, or dissemination of this communication or its
  contents in any way is prohibited and may be unlawful. If you are not
 the
  intended recipient or a person responsible for delivering this message
 to an
  intended recipient, please notify the original sender immediately by
 e-mail
  or telephone, return the original message to the original sender or to
  [EMAIL PROTECTED], and destroy all copies or derivations
 of
  the original message. Thank you.  (BFeComNote Rev. 08/01/2005)
 
 
 
 ***
 
 


 --
 To be what we are, and to become what we are capable of becoming, is the
 only end of life.



 
 BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
 intended only for the individual or entity to which it is addressed and may
 contain information that is confidential and protected by law. Unauthorized
 review, use, disclosure, or dissemination of this communication or its
 contents in any way is prohibited and may be unlawful. If you are not the
 intended recipient or a person responsible for delivering this message to an
 intended recipient, please notify the original sender immediately by e-mail
 or telephone, return the original message to the original sender or to
 [EMAIL PROTECTED], and destroy all copies or derivations of
 the original message. Thank you.  (BFeComNote Rev. 08/01/2005)

 ***

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




--
To be what we are, and to become what we are capable of becoming, is the
only end of life.


Re: Cookie Manager not working with HTTPS

2006-04-18 Thread sebb
What sort of redirect are you doing?

Automatic (i.e. done by Java)
or
Follow (i.e. done by JMeter) ?

What is the path from the Set-Cookie header? And what is the path to
the redirected page?
Perhaps JMeter thinks they don't match.

Try enabling debug for cookies:

in jmeter.properties:
log_level.jmeter.protocol.http.control=DEBUG

or on the command line:
-Ljmeter.protocol.http.control=DEBUG

The output is a bit cryptic, so extract the relevant lines (and
obliterate any sensitive/secret stuff) and post here - if you can't
work it out.

S.
On 18/04/06, Amit Kulkarni [EMAIL PROTECTED] wrote:
 Uncheck Clear cookies each iteration = FALSE and your query will be solved

 Amit


 On 4/17/06, Edward Patterson [EMAIL PROTECTED] wrote:
 
  Yes, this is unchecked by default.
 
  -Original Message-
  From: Amit Kulkarni [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 17, 2006 9:16 AM
  To: JMeter Users List
  Subject: Re: Cookie Manager not working with HTTPS
 
  If you set Clear cookies each iteration = TRUE under HTTP Cookie
  Manager
  then it will delete the cookies when it passes to the next page.
 
  Amit
 
 
  On 4/15/06, Edward Patterson [EMAIL PROTECTED] wrote:
  
   I am trying to test a web application using HTTPS on JMeter. I am
  using
   JMeter 2-1.20060118 and Java SDK 1.4.2_08. I have recorded and
  executed
   the test fine in HTTP. I have a Cookie Manager for the thread, and the
   cookie information with each request is displayed in the request tab
  on
   the results tree. My test consists of the following: Get the login
  page,
   post login form parameters, get the enter page.
  
   When I switch to HTTPS on 443, I am redirected to the login page on
  the
   second and third requests. I do not see the cookie information in the
   request tab in the results tree. I believe that the Cookie Manager is
   not passing the cookie information back with each subsequent request.
  I
   can reproduce the same results in my browser when I disable cookies
  for
   each request. I have set the logging to debug but can not find any
   information about what cookies are sent with the requests. I do see
  that
   with HTTP request the Cookie Manager is matching the cookies. With
  HTTPS
   request, the Cookie Manager shows it is adding the cookie, but not
   matching the cookie with the previous request.
  
   I have looked through the Users Guide, FAQ, and Bug list for any
   information about the Cookie Manager handling HTTPS request but have
  not
   found anything. Has anyone experienced this behavior using HTTPS in
   JMeter?
  
  
  
  
  
  
  
  
  
   BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
   intended only for the individual or entity to which it is addressed
  and may
   contain information that is confidential and protected by law.
  Unauthorized
   review, use, disclosure, or dissemination of this communication or its
   contents in any way is prohibited and may be unlawful. If you are not
  the
   intended recipient or a person responsible for delivering this message
  to an
   intended recipient, please notify the original sender immediately by
  e-mail
   or telephone, return the original message to the original sender or to
   [EMAIL PROTECTED], and destroy all copies or derivations
  of
   the original message. Thank you.  (BFeComNote Rev. 08/01/2005)
  
  
  
  ***
  
  
 
 
  --
  To be what we are, and to become what we are capable of becoming, is the
  only end of life.
 
 
 
  
  BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
  intended only for the individual or entity to which it is addressed and may
  contain information that is confidential and protected by law. Unauthorized
  review, use, disclosure, or dissemination of this communication or its
  contents in any way is prohibited and may be unlawful. If you are not the
  intended recipient or a person responsible for delivering this message to an
  intended recipient, please notify the original sender immediately by e-mail
  or telephone, return the original message to the original sender or to
  [EMAIL PROTECTED], and destroy all copies or derivations of
  the original message. Thank you.  (BFeComNote Rev. 08/01/2005)
 
  ***
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 To be what we are, and to become what we are capable of becoming, is the
 only end of life.



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

Re: Cookie Manager not working with HTTPS

2006-04-17 Thread Amit Kulkarni
If you set Clear cookies each iteration = TRUE under HTTP Cookie Manager
then it will delete the cookies when it passes to the next page.

Amit


On 4/15/06, Edward Patterson [EMAIL PROTECTED] wrote:

 I am trying to test a web application using HTTPS on JMeter. I am using
 JMeter 2-1.20060118 and Java SDK 1.4.2_08. I have recorded and executed
 the test fine in HTTP. I have a Cookie Manager for the thread, and the
 cookie information with each request is displayed in the request tab on
 the results tree. My test consists of the following: Get the login page,
 post login form parameters, get the enter page.

 When I switch to HTTPS on 443, I am redirected to the login page on the
 second and third requests. I do not see the cookie information in the
 request tab in the results tree. I believe that the Cookie Manager is
 not passing the cookie information back with each subsequent request. I
 can reproduce the same results in my browser when I disable cookies for
 each request. I have set the logging to debug but can not find any
 information about what cookies are sent with the requests. I do see that
 with HTTP request the Cookie Manager is matching the cookies. With HTTPS
 request, the Cookie Manager shows it is adding the cookie, but not
 matching the cookie with the previous request.

 I have looked through the Users Guide, FAQ, and Bug list for any
 information about the Cookie Manager handling HTTPS request but have not
 found anything. Has anyone experienced this behavior using HTTPS in
 JMeter?






 
 BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
 intended only for the individual or entity to which it is addressed and may
 contain information that is confidential and protected by law. Unauthorized
 review, use, disclosure, or dissemination of this communication or its
 contents in any way is prohibited and may be unlawful. If you are not the
 intended recipient or a person responsible for delivering this message to an
 intended recipient, please notify the original sender immediately by e-mail
 or telephone, return the original message to the original sender or to
 [EMAIL PROTECTED], and destroy all copies or derivations of
 the original message. Thank you.  (BFeComNote Rev. 08/01/2005)

 ***




--
To be what we are, and to become what we are capable of becoming, is the
only end of life.


RE: Cookie Manager not working with HTTPS

2006-04-17 Thread Edward Patterson
Yes, this is unchecked by default. 

-Original Message-
From: Amit Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 9:16 AM
To: JMeter Users List
Subject: Re: Cookie Manager not working with HTTPS

If you set Clear cookies each iteration = TRUE under HTTP Cookie
Manager
then it will delete the cookies when it passes to the next page.

Amit


On 4/15/06, Edward Patterson [EMAIL PROTECTED] wrote:

 I am trying to test a web application using HTTPS on JMeter. I am
using
 JMeter 2-1.20060118 and Java SDK 1.4.2_08. I have recorded and
executed
 the test fine in HTTP. I have a Cookie Manager for the thread, and the
 cookie information with each request is displayed in the request tab
on
 the results tree. My test consists of the following: Get the login
page,
 post login form parameters, get the enter page.

 When I switch to HTTPS on 443, I am redirected to the login page on
the
 second and third requests. I do not see the cookie information in the
 request tab in the results tree. I believe that the Cookie Manager is
 not passing the cookie information back with each subsequent request.
I
 can reproduce the same results in my browser when I disable cookies
for
 each request. I have set the logging to debug but can not find any
 information about what cookies are sent with the requests. I do see
that
 with HTTP request the Cookie Manager is matching the cookies. With
HTTPS
 request, the Cookie Manager shows it is adding the cookie, but not
 matching the cookie with the previous request.

 I have looked through the Users Guide, FAQ, and Bug list for any
 information about the Cookie Manager handling HTTPS request but have
not
 found anything. Has anyone experienced this behavior using HTTPS in
 JMeter?









 BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
 intended only for the individual or entity to which it is addressed
and may
 contain information that is confidential and protected by law.
Unauthorized
 review, use, disclosure, or dissemination of this communication or its
 contents in any way is prohibited and may be unlawful. If you are not
the
 intended recipient or a person responsible for delivering this message
to an
 intended recipient, please notify the original sender immediately by
e-mail
 or telephone, return the original message to the original sender or to
 [EMAIL PROTECTED], and destroy all copies or derivations
of
 the original message. Thank you.  (BFeComNote Rev. 08/01/2005)



***




--
To be what we are, and to become what we are capable of becoming, is the
only end of life.



BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
only for the individual or entity to which it is addressed and may contain 
information that is confidential and protected by law. Unauthorized review, 
use, disclosure, or dissemination of this communication or its contents in any 
way is prohibited and may be unlawful. If you are not the intended recipient or 
a person responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, return 
the original message to the original sender or to [EMAIL PROTECTED], and 
destroy all copies or derivations of the original message. Thank you.  
(BFeComNote Rev. 08/01/2005)
***

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



Re: cookie manager on 2.0.3 vs. 2.1.1

2006-01-25 Thread sebb
Turns out the problem was caused by a stack overflow.

This disappeared when Retrieve Embedded Resources was unchecked.

HtmlParser code is suspected, but we have been unable to pin it down...

S.
On 24/01/06, sebb [EMAIL PROTECTED] wrote:
 On 23/01/06, Stephanie Fuller [EMAIL PROTECTED] wrote:
  I have 2.0.3 test plan that logs into my web application and uses an HTTP
  Request to execute a jsp file to display an image in my application's file
  system.
  When I run that test plan under JMeter 2.1.1, I can't get any of the files
  to display or download.  In JMeter 2.0.3, the View Results Tree display
  lists several objects on the page (icons, etc...) and I can view them.  In
  JMeter 2.1.1, it acts as if the cookie manager isn't remembering that I have
  logged in because I can only see the login screen for my application.  I am
  using the exact same test script on both JMeters.
 
  I can understand that a 2.0.3 test script might not be fully compatible with
  2.1.1, but I have also completely recreated a new test script for 2.1.1 that
  has all the same elements and settings.
 
  Thank you for any suggestions?

 Are you saying that some elements of the 2.0.3 script are not present
 when loaded in 2.1.1 ?  The scripts are supposed to be upwards
 compatible.

 Are there any error messages in jmeter.log?

 Have you a test script you can share? It would be useful if you could
 create a Bugzilla issue and attach the failing script.

 There were some changes to cookie handling between 2.0.3 and 2.1.1, so
 perhaps that is causing a problem.

 If you add the property

 log_level.jmeter.protocol.http.control=DEBUG

 to jmeter.properties this should give some information on the cookie
 handling (it's not all that easy to follow, unfortunately).

 S.


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



Re: cookie manager on 2.0.3 vs. 2.1.1

2006-01-24 Thread sebb
On 23/01/06, Stephanie Fuller [EMAIL PROTECTED] wrote:
 I have 2.0.3 test plan that logs into my web application and uses an HTTP
 Request to execute a jsp file to display an image in my application's file
 system.
 When I run that test plan under JMeter 2.1.1, I can't get any of the files
 to display or download.  In JMeter 2.0.3, the View Results Tree display
 lists several objects on the page (icons, etc...) and I can view them.  In
 JMeter 2.1.1, it acts as if the cookie manager isn't remembering that I have
 logged in because I can only see the login screen for my application.  I am
 using the exact same test script on both JMeters.

 I can understand that a 2.0.3 test script might not be fully compatible with
 2.1.1, but I have also completely recreated a new test script for 2.1.1 that
 has all the same elements and settings.

 Thank you for any suggestions?

Are you saying that some elements of the 2.0.3 script are not present
when loaded in 2.1.1 ?  The scripts are supposed to be upwards
compatible.

Are there any error messages in jmeter.log?

Have you a test script you can share? It would be useful if you could
create a Bugzilla issue and attach the failing script.

There were some changes to cookie handling between 2.0.3 and 2.1.1, so
perhaps that is causing a problem.

If you add the property

log_level.jmeter.protocol.http.control=DEBUG

to jmeter.properties this should give some information on the cookie
handling (it's not all that easy to follow, unfortunately).

S.

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



Re: cookie manager

2005-10-18 Thread sebb
If the expiration date is in the past, then the cookie is surely not valid?

I think there were some changes since 2.0.0 to fix cookie date handling.

However, JMeter should not just stop.
Any messages in jmeter.log? or the console window?

What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1 for Cookies.

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 I'm still having trouble with cookie manager on the new version of
 apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A couple
 things to note - the expiration date of the cookie sent by the server
 has an expiration date in the past.  Could this be the issue?  Jmeter
 just stops, and in the response data the session id is not set.  Yet on
 2.0.0 the response date, the sessid is set.  Using the same exact test
 plan on both versions.




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



Re: cookie manager

2005-10-18 Thread Peter Lin
hmm... if the expiration date is in the past, (ie older than today ) that
could be the cause. AFAIK, the httpsampler just sets the header, so it could
be Sun's httpconnection class handles it that way.

peter


On 10/18/05, Maness, Marty [EMAIL PROTECTED] wrote:

 I'm still having trouble with cookie manager on the new version of
 apache 2.1.1. The cookie manager on 2.0.0 works fine for me. A couple
 things to note - the expiration date of the cookie sent by the server
 has an expiration date in the past. Could this be the issue? Jmeter
 just stops, and in the response data the session id is not set. Yet on
 2.0.0 the response date, the sessid is set. Using the same exact test
 plan on both versions.





Re: cookie manager

2005-10-18 Thread sebb
I don't think so.

HTTP Request cookies don't include the expiration date - it's only the
server response Set-Cookie header that includes them.

It is up to the client cookie handler to deal with expiration dates
and either add the cookie to the request or not, as the case may be.

S.
On 18/10/05, Peter Lin [EMAIL PROTECTED] wrote:
 hmm... if the expiration date is in the past, (ie older than today ) that
 could be the cause. AFAIK, the httpsampler just sets the header, so it could
 be Sun's httpconnection class handles it that way.

 peter


 On 10/18/05, Maness, Marty [EMAIL PROTECTED] wrote:
 
  I'm still having trouble with cookie manager on the new version of
  apache 2.1.1. The cookie manager on 2.0.0 works fine for me. A couple
  things to note - the expiration date of the cookie sent by the server
  has an expiration date in the past. Could this be the issue? Jmeter
  just stops, and in the response data the session id is not set. Yet on
  2.0.0 the response date, the sessid is set. Using the same exact test
  plan on both versions.
 
 
 



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



RE: cookie manager

2005-10-18 Thread Maness, Marty
I do not get any error messages.  It just stops.  What's interesting is
the application is a third party application - so I don't have a means
to talk to the developers, but each request to the server, it sends down
a new sessionid in an expired cookie?  I tried on 2.0.3 and got the same
results as 2.1.1

Marty Maness
Project Manager - DoIT
Phone: 402-280-3931
Creighton University
-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 9:21 AM
To: JMeter Users List
Subject: Re: cookie manager

If the expiration date is in the past, then the cookie is surely not
valid?

I think there were some changes since 2.0.0 to fix cookie date handling.

However, JMeter should not just stop.
Any messages in jmeter.log? or the console window?

What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1 for
Cookies.

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 I'm still having trouble with cookie manager on the new version of
 apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
couple
 things to note - the expiration date of the cookie sent by the server
 has an expiration date in the past.  Could this be the issue?  Jmeter
 just stops, and in the response data the session id is not set.  Yet
on
 2.0.0 the response date, the sessid is set.  Using the same exact test
 plan on both versions.




-
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]



Re: cookie manager

2005-10-18 Thread sebb
Can you perhaps send me jmeter.log from a run that just stops?

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 I do not get any error messages.  It just stops.  What's interesting is
 the application is a third party application - so I don't have a means
 to talk to the developers, but each request to the server, it sends down
 a new sessionid in an expired cookie?  I tried on 2.0.3 and got the same
 results as 2.1.1

 Marty Maness
 Project Manager - DoIT
 Phone: 402-280-3931
 Creighton University
 -Original Message-
 From: sebb [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 18, 2005 9:21 AM
 To: JMeter Users List
 Subject: Re: cookie manager

 If the expiration date is in the past, then the cookie is surely not
 valid?

 I think there were some changes since 2.0.0 to fix cookie date handling.

 However, JMeter should not just stop.
 Any messages in jmeter.log? or the console window?

 What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1 for
 Cookies.

 S.
 On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
  I'm still having trouble with cookie manager on the new version of
  apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
 couple
  things to note - the expiration date of the cookie sent by the server
  has an expiration date in the past.  Could this be the issue?  Jmeter
  just stops, and in the response data the session id is not set.  Yet
 on
  2.0.0 the response date, the sessid is set.  Using the same exact test
  plan on both versions.
 
 
 

 -
 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]



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



RE: cookie manager

2005-10-18 Thread Maness, Marty
It is sent.  There is an error in the log.  I was looking at the wrong
file.  

Marty Maness
Project Manager - DoIT
Phone: 402-280-3931
Creighton University

-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 9:30 AM
To: JMeter Users List
Subject: Re: cookie manager

Can you perhaps send me jmeter.log from a run that just stops?

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 I do not get any error messages.  It just stops.  What's interesting
is
 the application is a third party application - so I don't have a means
 to talk to the developers, but each request to the server, it sends
down
 a new sessionid in an expired cookie?  I tried on 2.0.3 and got the
same
 results as 2.1.1

 Marty Maness
 Project Manager - DoIT
 Phone: 402-280-3931
 Creighton University
 -Original Message-
 From: sebb [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 18, 2005 9:21 AM
 To: JMeter Users List
 Subject: Re: cookie manager

 If the expiration date is in the past, then the cookie is surely not
 valid?

 I think there were some changes since 2.0.0 to fix cookie date
handling.

 However, JMeter should not just stop.
 Any messages in jmeter.log? or the console window?

 What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1 for
 Cookies.

 S.
 On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
  I'm still having trouble with cookie manager on the new version of
  apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
 couple
  things to note - the expiration date of the cookie sent by the
server
  has an expiration date in the past.  Could this be the issue?
Jmeter
  just stops, and in the response data the session id is not set.  Yet
 on
  2.0.0 the response date, the sessid is set.  Using the same exact
test
  plan on both versions.
 
 
 

 -
 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]



-
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]



Re: cookie manager

2005-10-18 Thread sebb
The error is java.lang.NoSuchMethodError reported from HTTPSampler.
Unfortunately the method name is not shown ...

This could be caused by trying to use the HTTPS protocol without
having downloaded JSSE (the Java version is 1.3.1.9)

Java 1.3 is obsolete, and does not always work properly with JMeter.
Try upgrading to 1.4.2 or later.

Also, it looks as though you _may_ need the JavaMail jars
(activation.jar and mail.jar). These can be obtained from the Java
website.

See:

http://jakarta.apache.org/jmeter/usermanual/get-started.html

for links

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 It is sent.  There is an error in the log.  I was looking at the wrong
 file.

 Marty Maness
 Project Manager - DoIT
 Phone: 402-280-3931
 Creighton University

 -Original Message-
 From: sebb [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 18, 2005 9:30 AM
 To: JMeter Users List
 Subject: Re: cookie manager

 Can you perhaps send me jmeter.log from a run that just stops?

 S.
 On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
  I do not get any error messages.  It just stops.  What's interesting
 is
  the application is a third party application - so I don't have a means
  to talk to the developers, but each request to the server, it sends
 down
  a new sessionid in an expired cookie?  I tried on 2.0.3 and got the
 same
  results as 2.1.1
 
  Marty Maness
  Project Manager - DoIT
  Phone: 402-280-3931
  Creighton University
  -Original Message-
  From: sebb [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 18, 2005 9:21 AM
  To: JMeter Users List
  Subject: Re: cookie manager
 
  If the expiration date is in the past, then the cookie is surely not
  valid?
 
  I think there were some changes since 2.0.0 to fix cookie date
 handling.
 
  However, JMeter should not just stop.
  Any messages in jmeter.log? or the console window?
 
  What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1 for
  Cookies.
 
  S.
  On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
   I'm still having trouble with cookie manager on the new version of
   apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
  couple
   things to note - the expiration date of the cookie sent by the
 server
   has an expiration date in the past.  Could this be the issue?
 Jmeter
   just stops, and in the response data the session id is not set.  Yet
  on
   2.0.0 the response date, the sessid is set.  Using the same exact
 test
   plan on both versions.
  
  
  
 
  -
  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]
 
 

 -
 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]



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



RE: cookie manager

2005-10-18 Thread Maness, Marty
Thanks, will give this a try and let you know.

Marty Maness
Project Manager - DoIT
Phone: 402-280-3931
Creighton University

-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 9:55 AM
To: JMeter Users List
Subject: Re: cookie manager

The error is java.lang.NoSuchMethodError reported from HTTPSampler.
Unfortunately the method name is not shown ...

This could be caused by trying to use the HTTPS protocol without
having downloaded JSSE (the Java version is 1.3.1.9)

Java 1.3 is obsolete, and does not always work properly with JMeter.
Try upgrading to 1.4.2 or later.

Also, it looks as though you _may_ need the JavaMail jars
(activation.jar and mail.jar). These can be obtained from the Java
website.

See:

http://jakarta.apache.org/jmeter/usermanual/get-started.html

for links

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 It is sent.  There is an error in the log.  I was looking at the wrong
 file.

 Marty Maness
 Project Manager - DoIT
 Phone: 402-280-3931
 Creighton University

 -Original Message-
 From: sebb [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 18, 2005 9:30 AM
 To: JMeter Users List
 Subject: Re: cookie manager

 Can you perhaps send me jmeter.log from a run that just stops?

 S.
 On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
  I do not get any error messages.  It just stops.  What's interesting
 is
  the application is a third party application - so I don't have a
means
  to talk to the developers, but each request to the server, it sends
 down
  a new sessionid in an expired cookie?  I tried on 2.0.3 and got the
 same
  results as 2.1.1
 
  Marty Maness
  Project Manager - DoIT
  Phone: 402-280-3931
  Creighton University
  -Original Message-
  From: sebb [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 18, 2005 9:21 AM
  To: JMeter Users List
  Subject: Re: cookie manager
 
  If the expiration date is in the past, then the cookie is surely not
  valid?
 
  I think there were some changes since 2.0.0 to fix cookie date
 handling.
 
  However, JMeter should not just stop.
  Any messages in jmeter.log? or the console window?
 
  What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1
for
  Cookies.
 
  S.
  On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
   I'm still having trouble with cookie manager on the new version of
   apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
  couple
   things to note - the expiration date of the cookie sent by the
 server
   has an expiration date in the past.  Could this be the issue?
 Jmeter
   just stops, and in the response data the session id is not set.
Yet
  on
   2.0.0 the response date, the sessid is set.  Using the same exact
 test
   plan on both versions.
  
  
  
 
 
-
  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]
 
 

 -
 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]



-
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]



RE: cookie manager

2005-10-18 Thread Maness, Marty
I downloaded and installed 1.4.2 and Jmeter is now running through the
whole test correctly(not just stopping).  Still having a problem with
the cookie manager though, in the response headers the cookie value for
sessid is not being populated, the expiration date is in the past?

Marty Maness
Project Manager - DoIT
Phone: 402-280-3931
Creighton University

-Original Message-
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 9:55 AM
To: JMeter Users List
Subject: Re: cookie manager

The error is java.lang.NoSuchMethodError reported from HTTPSampler.
Unfortunately the method name is not shown ...

This could be caused by trying to use the HTTPS protocol without
having downloaded JSSE (the Java version is 1.3.1.9)

Java 1.3 is obsolete, and does not always work properly with JMeter.
Try upgrading to 1.4.2 or later.

Also, it looks as though you _may_ need the JavaMail jars
(activation.jar and mail.jar). These can be obtained from the Java
website.

See:

http://jakarta.apache.org/jmeter/usermanual/get-started.html

for links

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 It is sent.  There is an error in the log.  I was looking at the wrong
 file.

 Marty Maness
 Project Manager - DoIT
 Phone: 402-280-3931
 Creighton University

 -Original Message-
 From: sebb [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 18, 2005 9:30 AM
 To: JMeter Users List
 Subject: Re: cookie manager

 Can you perhaps send me jmeter.log from a run that just stops?

 S.
 On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
  I do not get any error messages.  It just stops.  What's interesting
 is
  the application is a third party application - so I don't have a
means
  to talk to the developers, but each request to the server, it sends
 down
  a new sessionid in an expired cookie?  I tried on 2.0.3 and got the
 same
  results as 2.1.1
 
  Marty Maness
  Project Manager - DoIT
  Phone: 402-280-3931
  Creighton University
  -Original Message-
  From: sebb [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 18, 2005 9:21 AM
  To: JMeter Users List
  Subject: Re: cookie manager
 
  If the expiration date is in the past, then the cookie is surely not
  valid?
 
  I think there were some changes since 2.0.0 to fix cookie date
 handling.
 
  However, JMeter should not just stop.
  Any messages in jmeter.log? or the console window?
 
  What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1
for
  Cookies.
 
  S.
  On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
   I'm still having trouble with cookie manager on the new version of
   apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
  couple
   things to note - the expiration date of the cookie sent by the
 server
   has an expiration date in the past.  Could this be the issue?
 Jmeter
   just stops, and in the response data the session id is not set.
Yet
  on
   2.0.0 the response date, the sessid is set.  Using the same exact
 test
   plan on both versions.
  
  
  
 
 
-
  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]
 
 

 -
 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]



-
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]



Re: cookie manager

2005-10-18 Thread sebb
Try enabling debug, by setting the the following property in jmeter.properties:

log_level.jmeter.protocol.http.control.CookieManager=DEBUG

or on the command-line:

-Jjmeter.protocol.http.control.CookieManager=DEBUG

Might help to narrow down the problem.

S.
On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
 I downloaded and installed 1.4.2 and Jmeter is now running through the
 whole test correctly(not just stopping).  Still having a problem with
 the cookie manager though, in the response headers the cookie value for
 sessid is not being populated, the expiration date is in the past?

 Marty Maness
 Project Manager - DoIT
 Phone: 402-280-3931
 Creighton University

 -Original Message-
 From: sebb [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 18, 2005 9:55 AM
 To: JMeter Users List
 Subject: Re: cookie manager

 The error is java.lang.NoSuchMethodError reported from HTTPSampler.
 Unfortunately the method name is not shown ...

 This could be caused by trying to use the HTTPS protocol without
 having downloaded JSSE (the Java version is 1.3.1.9)

 Java 1.3 is obsolete, and does not always work properly with JMeter.
 Try upgrading to 1.4.2 or later.

 Also, it looks as though you _may_ need the JavaMail jars
 (activation.jar and mail.jar). These can be obtained from the Java
 website.

 See:

 http://jakarta.apache.org/jmeter/usermanual/get-started.html

 for links

 S.
 On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
  It is sent.  There is an error in the log.  I was looking at the wrong
  file.
 
  Marty Maness
  Project Manager - DoIT
  Phone: 402-280-3931
  Creighton University
 
  -Original Message-
  From: sebb [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 18, 2005 9:30 AM
  To: JMeter Users List
  Subject: Re: cookie manager
 
  Can you perhaps send me jmeter.log from a run that just stops?
 
  S.
  On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
   I do not get any error messages.  It just stops.  What's interesting
  is
   the application is a third party application - so I don't have a
 means
   to talk to the developers, but each request to the server, it sends
  down
   a new sessionid in an expired cookie?  I tried on 2.0.3 and got the
  same
   results as 2.1.1
  
   Marty Maness
   Project Manager - DoIT
   Phone: 402-280-3931
   Creighton University
   -Original Message-
   From: sebb [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, October 18, 2005 9:21 AM
   To: JMeter Users List
   Subject: Re: cookie manager
  
   If the expiration date is in the past, then the cookie is surely not
   valid?
  
   I think there were some changes since 2.0.0 to fix cookie date
  handling.
  
   However, JMeter should not just stop.
   Any messages in jmeter.log? or the console window?
  
   What happens with JMeter 2.0.3? I'd expect it to behave like 2.1.1
 for
   Cookies.
  
   S.
   On 18/10/05, Maness, Marty [EMAIL PROTECTED] wrote:
I'm still having trouble with cookie manager on the new version of
apache 2.1.1.  The cookie manager on 2.0.0 works fine for me.  A
   couple
things to note - the expiration date of the cookie sent by the
  server
has an expiration date in the past.  Could this be the issue?
  Jmeter
just stops, and in the response data the session id is not set.
 Yet
   on
2.0.0 the response date, the sessid is set.  Using the same exact
  test
plan on both versions.
   
   
   
  
  
 -
   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]
  
  
 
  -
  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]
 
 

 -
 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]



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



Re: Cookie manager

2005-07-05 Thread sebb
The cookies don't appear in the Manager GUI, but they should be sent
to the server if they match.

S.
On 7/5/05, Bronagh McElduff [EMAIL PROTECTED] wrote:
 Hi,
 
 I have added a cookie manager to my test plan as per the instructions below:
 
 To add the HTTP Cookie Manager
 http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager
 , simply select the Thread Group
 http://jakarta.apache.org/jmeter/usermanual/test_plan.html#thread_group
 , and choose Add -- Config Element -- HTTP Cookie Manager, either from
 the Edit Menu, or from the right-click pop-up menu.
 
 Steps:
 Add a HTTP Request sampler
Server name: www.google.com
Port number:80
HTTP GET
Path:index.html
 
 On running this test plan, I would have expected cookies to be added
 automatically to the cookie manager (as occurs in a normal browser).
 However, no cookies are added.
 Is this a bug or am I mis-interpreting how the cookie manager works?
 
 JMeter version 2.1.20050704
 
 Thanks in advance,
 Bronagh
 
 
 
 -
 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]



Re: Cookie manager

2005-07-05 Thread Bronagh McElduff

Thanks :-)

sebb wrote:


The cookies don't appear in the Manager GUI, but they should be sent
to the server if they match.

S.
On 7/5/05, Bronagh McElduff [EMAIL PROTECTED] wrote:
 


Hi,

I have added a cookie manager to my test plan as per the instructions below:

To add the HTTP Cookie Manager
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Cookie_Manager
, simply select the Thread Group
http://jakarta.apache.org/jmeter/usermanual/test_plan.html#thread_group
, and choose Add -- Config Element -- HTTP Cookie Manager, either from
the Edit Menu, or from the right-click pop-up menu.

Steps:
Add a HTTP Request sampler
  Server name: www.google.com
  Port number:80
  HTTP GET
  Path:index.html

On running this test plan, I would have expected cookies to be added
automatically to the cookie manager (as occurs in a normal browser).
However, no cookies are added.
Is this a bug or am I mis-interpreting how the cookie manager works?

JMeter version 2.1.20050704

Thanks in advance,
Bronagh



-
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]

 




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



Re: Cookie Manager Question

2005-05-18 Thread sebb
Test plan looks fine.

A few suggestions:

Any messages in jmeter.log?

The most likely problem is that the cookie manager (CM) is somehow not
finding a match for the cookie domain. Or the cookie is not being
passed to the CM.

You could try enabling debug logging for the CM, but as far as I
remember it hasn't got much logging code...

Try creating your own cookie in the CM to see how it is treated. This
might give some clues as to what is going on.

If none of this works, I guess the next stage would be to update the
CM code to add some more detailed logging. Let us know if that is the
case.

S.
On 5/17/05, Chad La Joie [EMAIL PROTECTED] wrote:
 I'm using JMeter 2.0.3 on JDK 1.5 and I'm running in to unexpected
 behavior from the cookie manager.  I have a very simple test plan.  Go
 to home page, login, go to a restricted (i.e. you need to be logged in)
 form.  Log in is done just by posting a user id and password with a
 session cookie being set upon successful authentication.  However, the
 cookie manager in my thread group does not capture this cookie, so when
 I try to go the restricted form page I get an error about not having
 access (which is correct).
 
 Here's the layout of my test plan
 
 Test Plan
 - Thread Group
   - HTTP Request defaults (has my server and protocol (HTTPS))
   - HTTP Cookie Manager
   - Simple controller
 - HTTP Request (for home page)
 - Once Only Controller
   - HTTP Request (post to log in page)
 - Loop Controller
   - HTTP Request (for getting the form)
   - Constant Timer (pause for a bit)
   - View Results Tree
 
 I've tried moving the cookie manager around to different places and
 disabling SSL on the server.  Neither made a difference.  In the results
 for the HTTP Request doing the log in POST I can see the response trying
 to set the cookie.  So, what am I missing here?
 --
 Chad La Joie 315Q St. Mary's Hall
 Project Sentinel 202.687.0124
 
 -
 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]



Re: Cookie Manager Question

2005-04-12 Thread sebb
Have you got more than one cookie manager in the test plan?

If so, you need to make sure that they are not both in scope at the
same time, as only one will be actioned.

You can do this by adding each as a child of the relevant sampler.

S.
On 4/12/05, Jennifer Ward [EMAIL PROTECTED] wrote:
 Hello All,
 
 I'm sending this again since it looks like my attachments got stripped
 out the first time.
 
 I'm using JMeter to test a login session that basically involves
 sending two requests. The first request sends a static Cookie
 (predefined in my CSV file). The response for that request includes
 some set-cookie headers that I want to use for the request #2. However,
 I also want to include my static Cookie from the first request as so:
 
 Request 1: GET /someurl
 Cookie: un=123456
 
 Response:
 set-cookie: wosid=jGhVyqhtLM7s; version=1; path=/somepath
 set-cookie: woinst=1; version=1; path=/somepath
 
 Request 2: GET /someurl/login
 Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
 
 I've defined my test plan with the following User Parameters:
 
 username  ${__CSVRead(...)}
 password  ${__CSVRead(...)}
 uname-cookie  ${__CSVRead(...)}
 
 Then, a header manager that defines the Cookie header using my static
 cookie:
 
 Cookie  ${uname-cookie}
 
 Then, my cookie manager explicitly stores that cookie:
 
 un  ${uname-cookie}
 
 This works fine for the first request, but the second request is
 missing my un cookie.
 
 Any suggestions would be appreciated.
 
 Thanks
 Jennifer Ward
 
 -
 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]



Re: Cookie Manager Question

2005-04-12 Thread Jennifer Ward
No, there is only one cookie manager in my test plan.
The strange thing is that if I deselect Clear cookies each iteration 
then I end up with the following cookie for my second request:

Cookie: un=${uname-cookie}; wosid=lI3iPzwi; woinst=3; un=123456;
So, it's picking up the un cookie that I have stored in my cookie 
manager, but it's not resolving it.

Thanks for your help. I'd appreciate any further suggestions you may 
have.

Jennifer Ward
On Apr 12, 2005, at 4:24 PM, sebb wrote:
Have you got more than one cookie manager in the test plan?
If so, you need to make sure that they are not both in scope at the
same time, as only one will be actioned.
You can do this by adding each as a child of the relevant sampler.
S.
On 4/12/05, Jennifer Ward [EMAIL PROTECTED] wrote:
Hello All,
I'm sending this again since it looks like my attachments got stripped
out the first time.
I'm using JMeter to test a login session that basically involves
sending two requests. The first request sends a static Cookie
(predefined in my CSV file). The response for that request includes
some set-cookie headers that I want to use for the request #2. 
However,
I also want to include my static Cookie from the first request as so:

Request 1: GET /someurl
Cookie: un=123456
Response:
set-cookie: wosid=jGhVyqhtLM7s; version=1; path=/somepath
set-cookie: woinst=1; version=1; path=/somepath
Request 2: GET /someurl/login
Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
I've defined my test plan with the following User Parameters:
username  ${__CSVRead(...)}
password  ${__CSVRead(...)}
uname-cookie  ${__CSVRead(...)}
Then, a header manager that defines the Cookie header using my static
cookie:
Cookie  ${uname-cookie}
Then, my cookie manager explicitly stores that cookie:
un  ${uname-cookie}
This works fine for the first request, but the second request is
missing my un cookie.
Any suggestions would be appreciated.
Thanks
Jennifer Ward
-
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]

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


Re: Cookie Manager Question

2005-04-12 Thread sebb
On 4/13/05, Jennifer Ward [EMAIL PROTECTED] wrote:
 No, there is only one cookie manager in my test plan.
 
 The strange thing is that if I deselect Clear cookies each iteration
 then I end up with the following cookie for my second request:
 
 Cookie: un=${uname-cookie}; wosid=lI3iPzwi; woinst=3; un=123456;

If a variable is not recognised, it is left as is.

So either the variable is not defined, or the Cookie Manager is not
processing variables at all.

I now remember there was a bug for this:

http://issues.eu.apache.org/bugzilla/show_bug.cgi?id=28715

So it's not possible at present to use variables in the Cookie Manager.

Sorry, should have remembered that before...

 
 So, it's picking up the un cookie that I have stored in my cookie
 manager, but it's not resolving it.
 
 Thanks for your help. I'd appreciate any further suggestions you may
 have.
 
 Jennifer Ward
 
 On Apr 12, 2005, at 4:24 PM, sebb wrote:
 
  Have you got more than one cookie manager in the test plan?
 
  If so, you need to make sure that they are not both in scope at the
  same time, as only one will be actioned.
 
  You can do this by adding each as a child of the relevant sampler.
 
  S.
  On 4/12/05, Jennifer Ward [EMAIL PROTECTED] wrote:
  Hello All,
 
  I'm sending this again since it looks like my attachments got stripped
  out the first time.
 
  I'm using JMeter to test a login session that basically involves
  sending two requests. The first request sends a static Cookie
  (predefined in my CSV file). The response for that request includes
  some set-cookie headers that I want to use for the request #2.
  However,
  I also want to include my static Cookie from the first request as so:
 
  Request 1: GET /someurl
  Cookie: un=123456
 
  Response:
  set-cookie: wosid=jGhVyqhtLM7s; version=1; path=/somepath
  set-cookie: woinst=1; version=1; path=/somepath
 
  Request 2: GET /someurl/login
  Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
 
  I've defined my test plan with the following User Parameters:
 
  username  ${__CSVRead(...)}
  password  ${__CSVRead(...)}
  uname-cookie  ${__CSVRead(...)}
 
  Then, a header manager that defines the Cookie header using my static
  cookie:
 
  Cookie  ${uname-cookie}
 
  Then, my cookie manager explicitly stores that cookie:
 
  un  ${uname-cookie}
 
  This works fine for the first request, but the second request is
  missing my un cookie.
 
  Any suggestions would be appreciated.
 
  Thanks
  Jennifer Ward
 
  -
  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]
 
 
 -
 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]



RE Cookie Manager Session Issue

2005-03-12 Thread kroberts




Thanks for the tip. I checked out all the javascript and didn't see any
issue with the session. I also got better and determining the result of a
request from a view results tree and found that the login attempt was
failing. I fixed this and now it works. I assumed those accounts were good
since they were used successfully recently...

Thanks for your suggestions...


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



Re: RE Cookie Manager Session Issue

2005-03-11 Thread sebb
Is there any Javascript on the pages? 
JMeter does not process these, so if the session relies on some
automatic invocation of Javascript (e.g. as part of the page loading
process), then you will need to add the necessary something, e.g
another HTTPSampler to do what the Javascript would have done.

Suggestions for debugging:

Look in jmeter.properties for how to switch on extra debugging.

Perhaps use HTTP Sampler 2 (the Apache HTTPClient one) - this has
wire-level debugging capabilities, but this may produce too much
output.

S.
On Thu, 10 Mar 2005 19:37:19 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
 I am having a problem with my application managing HttpSession state when
 ran from JMeter. The application is designed to create an HttpSession
 instance upon the initial request and subsequent requests get the session
 reference by calling request.getSession(). This application works fine when
 ran from IE; but when ran from JMeter, the initial request creates a valid
 instance of HttpSession and all subsequent requests fail with a null
 HttpSession reference.
 
 If I run more that one user, only the first user has this problem and the
 rest run fine.
 
 I can examine each request from a view results tree and see that a
 JSESSIONID cookie is displayed for each request. This would seem to
 indicate that the cookie is working fine.
 
 I looked at the JMeter log and didn't find anything. I looked over a few
 items in the mail group list; but didn't find anything relavant.
 
 I'm running versions: JMeter 2.0.2  and JDK 1.3.1_06. I've also seen the
 same problem on JDK 1.4.2_06. I'm running WebLogic 7.0 SP 2 as the Servlet
 container.
 
 I don't know what else to try. I must be missing something here. Any ideas
 on things to try or debugging techniques would be greatly appreciated...
 
 Thanks in advance...
 
 -
 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]



RE Cookie Manager Session Issue

2005-03-10 Thread kroberts




I am having a problem with my application managing HttpSession state when
ran from JMeter. The application is designed to create an HttpSession
instance upon the initial request and subsequent requests get the session
reference by calling request.getSession(). This application works fine when
ran from IE; but when ran from JMeter, the initial request creates a valid
instance of HttpSession and all subsequent requests fail with a null
HttpSession reference.

If I run more that one user, only the first user has this problem and the
rest run fine.

I can examine each request from a view results tree and see that a
JSESSIONID cookie is displayed for each request. This would seem to
indicate that the cookie is working fine.

I looked at the JMeter log and didn't find anything. I looked over a few
items in the mail group list; but didn't find anything relavant.

I'm running versions: JMeter 2.0.2  and JDK 1.3.1_06. I've also seen the
same problem on JDK 1.4.2_06. I'm running WebLogic 7.0 SP 2 as the Servlet
container.

I don't know what else to try. I must be missing something here. Any ideas
on things to try or debugging techniques would be greatly appreciated...

Thanks in advance...


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



RE: Cookie Manager

2003-04-04 Thread Jurkiewicz, Robert

Leave it empty unless you want to set some Value in the session.

Please describe your problem in detail. For now I don't know where is your
problem

Cheers,
Robert

-Original Message-
From: Renee Dunn [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 6:23 PM
To: jmeter-user
Subject: Cookie Manager


Is there any manuals/documentation/articles other than what is listed 
 at http://jakarta.apache.org/jmeter/ that explains in more detail how 
to use the cookie manager, both to accept and to manually add existing 
cookies.  I have not been able to get this to work sucessfully yet.  

Thanks


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

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



Re: Cookie Manager

2003-04-03 Thread Mike Stover
There is nothing complicated about the CookieManager that requires more 
explanation.  If you're having a problem, it is likely related to something else.

-Mike

On 3 Apr 2003 at 12:23, Renee Dunn wrote:

 Is there any manuals/documentation/articles other than what is listed 
  at http://jakarta.apache.org/jmeter/ that explains in more detail how 
 to use the cookie manager, both to accept and to manually add existing 
 cookies.  I have not been able to get this to work sucessfully yet.  
 
 Thanks
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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



RE: Cookie Manager Struts?

2002-01-14 Thread Dmitri G. Chtchekine

If URL' file name changes from page to page then CookieManager will not 
add SOME cookies to the Response. E.g. :
page 1: http://www.a.com/servlets/XXX/page1
page 2: http://www.a.com/servlets/YYY/page2
cookies in with cookie.getPath() containing XXX will not be added
to Response for page2. This is b/c CookieManager has a condition
in getCookieHeaderForURL(URL url) method:
url.getFile().startsWith(cookie.getPath())
I don't know if this is your problem, but I had this issue in my
test scenarios where user was hopping from servlet to servlet and was
losing his session. My request had 2 cookies: one from JServ, its path
was simply / and there was no problem with it, but the other was an
app server's cookie that had it's path set to /servlet/XXX. Therefore
CookieManager was comparing url.getFile()=/servlet/YYY and 
cookie.getPath()=/servlet/XXX and since they don't match it was dropping
the cookie (unfortunately it was the last cookie that maintained the
session). 
I ended up commenting-out that condition and everything worked well.
Good luck,
Dmitri  

On Fri, 11 Jan 2002, Alex Colic wrote:

 If you figure out how to do this please forward the info to me. I am trying
 to do the same thing and I have been unsuccessful.
 
 Alex
 
 -Original Message-
 From: Roland Chan [mailto:[EMAIL PROTECTED]]
 Sent: January 11, 2002 3:47 PM
 To: 'JMeter Users List'
 Subject: Cookie Manager  Struts?
 
 
 Not 100% on how to correctly use the cookie manager, could someone
 please give an example of how to use this correctly.
 
 I have a struts application for which I created a thread group, added
 the cookie manager, and web test samples all beneath a simple
 controller.  The test simulates a login, and then one other business
 action.  The login works fine (1st struts action -- in which case I am
 assuming the cookie manager correctly used the JSESSIONID), however,
 when it tries to proceed with the next business action (2nd struts
 action) it no longer has any knowledge of the current session and I
 receive an IO Exception.
 
 Does anyone else experience this sort of behavior.  Any advice would be
 appreciated.
 
 Regards,
 Roland
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: Cookie Manager Struts?

2002-01-11 Thread Roland Chan

Small correction to my previous post, my cookie manager is at the thread
group level.

-Original Message-
From: Roland Chan [mailto:[EMAIL PROTECTED]] 
Sent: January 11, 2002 3:47 PM
To: 'JMeter Users List'
Subject: Cookie Manager  Struts?

Not 100% on how to correctly use the cookie manager, could someone
please give an example of how to use this correctly.

I have a struts application for which I created a thread group, added
the cookie manager, and web test samples all beneath a simple
controller.  The test simulates a login, and then one other business
action.  The login works fine (1st struts action -- in which case I am
assuming the cookie manager correctly used the JSESSIONID), however,
when it tries to proceed with the next business action (2nd struts
action) it no longer has any knowledge of the current session and I
receive an IO Exception.

Does anyone else experience this sort of behavior.  Any advice would be
appreciated.

Regards,
Roland


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


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




RE: Cookie Manager Struts?

2002-01-11 Thread Alex Colic

If you figure out how to do this please forward the info to me. I am trying
to do the same thing and I have been unsuccessful.

Alex

-Original Message-
From: Roland Chan [mailto:[EMAIL PROTECTED]]
Sent: January 11, 2002 3:47 PM
To: 'JMeter Users List'
Subject: Cookie Manager  Struts?


Not 100% on how to correctly use the cookie manager, could someone
please give an example of how to use this correctly.

I have a struts application for which I created a thread group, added
the cookie manager, and web test samples all beneath a simple
controller.  The test simulates a login, and then one other business
action.  The login works fine (1st struts action -- in which case I am
assuming the cookie manager correctly used the JSESSIONID), however,
when it tries to proceed with the next business action (2nd struts
action) it no longer has any knowledge of the current session and I
receive an IO Exception.

Does anyone else experience this sort of behavior.  Any advice would be
appreciated.

Regards,
Roland


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



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