Doh!
I hit the send button too fast. I read Craig's material from last fall.
However, I was a bit confused by what I read and what I saw in the JMeter
code. In order to set an arbitary cookie:
URL t_url = new URL("http://localhost:8080/servlet/TestServlet");
URLConnection t_urlConnection = t_url.openConnection();
Here is where my confusion lies
t_urlConnection.setRequestProperty("Set-Cookie", "somekey=somevalue");
or
t_urlConnection.setRequestProperty("somekey", "somevalue");
t_urlConnection.connect();
By the way, I am running under a 2.2-compliant servlet engine.
-----Original Message-----
From: Perry Hoekstra [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 21, 2000 12:09 PM
To: [EMAIL PROTECTED]
Subject: Cookie Passing using URLConnect
Using URL and URLConnect classes, is there a simple way of passing a Cookie
into a servlet? I was looking at Apache's JMeter and I could not figure out
how they were doing it.
--
Perry Hoekstra
DigitalRiver
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html