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=7321077&folderID=10 > > > > > > GET /eraservices/grantfolder/viewGrantFolder.do?applID=7321077&folderID=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=9c28ee1630d6c165555635be49ee9029b88b9f91b59c.e3yLaxaTbx0Qe34KaxaSbxyLaNz0n6jAmljGr5XDqQLvpAe; > > newuser=stromasam; > > > SSO_ID=v1.2~1~A68A68203646B8461E64EBD38FAB71907100F8EDC78A2CD0EF123B6DADF5DE9AA7638F731C97EA400FC7662DED49B00EF6C862C3E55734670C76A5681B559060F8470AFB497C9159811D4579921FC20C5A2A85C7CF1493C8A7FB2943D83DC798FB0A0F917553BF7C6742D70E4F2046777DF13CAA07F1AA8A94497EFBBBBC809E737B16496EC81E43B292630E49CF723F24760F83F1F950063B603A33EE874E3041962AB8A139266B4C45CBA0C7A8ED05928A8EDE0B15EC24C3F27A594A787C0B8D3DE6D903C7D50976CFBB8388B4341CFCE4BCB3E345A2584AAC1F20A6986416D18F37E8A56F874AE264BBC9EABD7C5F0D1297179398CEB259A774ECF9B3F9E4 > > > > > > > > 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<http://webappdev4.era.nih.gov:7781/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.4%7ED3D5AF18%7E641295BAA8EBB4765B3FA739FA32E8FDA7E7BCA2AA992083E1A94553B90D816486AC26729EA2569E64E71AC6016DE94C85FC21336DB3B7F0A17EA58F5B6E0CE916EF73738F618A064515BF0410CD2FE14AF14E474ABC090BA23908B952DFD5258FDE04EB99DB87C47C66F2ED30DD225F2BDD54037FFA0795553642636AB07728FA25B0D998C0DA26A550ACD2D9F7B604906257D7AA1AFAA75DF9A2F14709E20CB310F32EE6CAC556B7A276A868E221C792A229198D84C0D037D9850DC77B4728091CDB338220841046BB64873A8F01635552FDF6E794BEC512F197D0325F6BE2FAF0C2CFED24985D2812CABC8EF220C36388C7F1956E354CE067BAA15EC092C41DF40289D8D8E98CA376BAB381F330BA%0ASet-Cookie>: > > > JSESSIONID=9c28ee1630d6c165555635be49ee9029b88b9f91b59c.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=10<http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7D&folderID=10> > > < > > > http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7D&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<http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7D&folderID=10> > > < > > > http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7D&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<http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7D&folderID=10> > > < > > > http://webappdev4.era.nih.gov:7783/eraservices/grantfolder/viewGrantFolder.do?applID=$%7BapplID%7D&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=7321077&folderID=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_supportformore > > 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 > > > > > > > > > > --------------------------------------------------------------------- > > 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