RE: [Grinder-use] Error in TCPProxy recording when using url rewriting
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
|
From: Philip A. <pa...@be...> - 2005-02-08 19:45:34
|
The session ID provided in the NVPair will be correctly bolted back into the URL as a query string. Sniff with the TCPProxy if you want to see this. The likely problem is that the replayed jsessonid refers to an obsolete session. The easy fix is to take out all the jsessionid stuff and just rely on HTTP cookies. Alternatively, check out the "-newhttpplugin" switch to the TCPProxy. That has some support for jsessionIDs. - Phil Nicole Holthoefer writes on 08 February 2005 18:12: >=20 >=20 > Hi, >=20 >=20 >=20 > I have a web application that has disabled cookies but is using url = rewriting. On WebLogic Server that means, that the URL is defined in the = form <http://ip:port/path;jsessionid=3D...?params>. Unfortunately the = TCPProxy does record the jsessionid to be a parameter instead of leaving = it in the url: >=20 >=20 >=20 > tests[1].GET(http://localhost:8891/mywebapp/SimpleSession.jsp, > ( NVPair(jsessionid, = CI9aE8kHeOLIMv5jGL10VOmJVOdcOP2mHKUXBD8sd1u2DN8v7f1c!-2130159706), )) >=20 >=20 > With this changedurl WLS does not accept the sessionid and therefore = the session is setup new with each request. I have implemented an = automatism, that changes the se! ssionid to be a variable being set = dynamically on replay, but that does not work, as the sessionid is = recorded to be a parameter instead to be part or the url. >=20 >=20 >=20 > Is there any workaround? >=20 >=20 >=20 > I addeda small demowebapp to this email. Just deploy and call = /mywebapp. If you use the redeploy button in the browser, you will = change the session, as there is no session cookie. But if you use the = reload link, url rewriting will be added to the url and the session = stays active. >=20 >=20 >=20 > Thanks for help and regs, >=20 > Nicole >=20 >=20 >=20 > <http://img.web.de/p.gif>=09 > Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. > weltweit telefonieren! http://freephone.web.de/?! mc=3D021201 = <http://freephone.web.de/?mc=3D021201>=09 << File: mywebapp.war >>=20 |