Extracting the cookie is a regex extractor (where you select the option for Header) and extract based on the name or 'Set-Cookie' header Then you add a beanshell post processor that does something like sampler.getCookieManager().addCookie(cookie); where the cookie is based on the value you extracted
http://jmeter.apache.org/api/org/apache/jmeter/protocol/http/sampler/HTTPSampler.html regards deepak On Wed, Apr 18, 2012 at 11:37 AM, <[email protected]> wrote: > Shmuel Krakower <[email protected]> wrote on 04/18/2012 12:32:28 PM: > > > I had something like that once, couldn't find any of the cookie policies > to > > work for me. > > I've worked around it by putting a regex extractor to get the cookies the > > way I need them and just put it in the http headers, as any other header. > > I am having trouble getting this work properly. Can you please provide an > example, or some additional information? > > Thank you. > > > Lee Lowder > > This communication and any attachments are confidential, protected by > Communications Privacy Act 18 USCS ยง 2510, solely for the use of the > intended recipient, and may contain legally privileged material. If you are > not the intended recipient, please return or destroy it immediately. Thank > you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
