Posted By:
Ed_Ox
Posted On:
Friday, February 8, 2002 07:55 AM
For session tracking purpose I need to add a cookie to my http request. If I build a soapconnection object like this soapConnection.setMaintainSession(true); Apache forward correctly cookies. But if I want to set by myself the cookie (or any other header)for the first call how can I do ? I found out the following methods: Call.setHeader(Header) Header.setHeaderEntries(Vector); This my fulfill my needs, but there is no documentation about the Vector. I am not sure at all this is the correct way to set http headers... But if it is, what should I put in this myusterious Vector ? Is no, what is the correct method to se
More>>
For session tracking purpose I need to add a cookie to my http request.
If I build a soapconnection object like this
soapConnection.setMaintainSession(true);
Apache forward correctly cookies.
But
if I want to set by myself the cookie (or any other header)for the first call how can I do ?
I found out the following methods:
Call.setHeader(Header)
Header.setHeaderEntries(Vector);
This my fulfill my needs, but there is no documentation about the Vector.
I am not sure at all this is the correct way to set http headers...
But if it is, what should I put in this myusterious Vector ?
Is no, what is the correct method to set a cookie by hand ?
<<Less