Cookies in http header of soap request.
| From: | Richard Uren | Date: | Wed, 07 May 2003 00:44:20 +0000 |
| Subject: | Cookies in http header of soap request. | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-579@lists.php.net to get a copy of this message | ||
Hi,
Im writing a SOAP client that connects to a billing system, does a bunch of
things then quits. The first thing is login (strangely enough). After
successful
login the SOAP server returns a cookie in the HTTP header (dumps from
an intermediate proxy server are attached below).
Any sugestions as to
1) How I can get that cookie; and
2) Return the cookie in subsequent http headers to the server ?
Thanks Heaps.
cheers
Richard
HTTP/1.1 200 OK
Date: Wed, 07 May 2003 00:16:43 GMT
Server: Jetty/4.0.5 (Linux 2.4.18-27.8.0 i386)
Servlet-Engine: Jetty/1.1 (Servlet 2.3; JSP 1.2; java 1.4.1_01)
Set-Cookie: jsessionid=ghi82ntk4grw;Path=/soap
Set-Cookie2: jsessionid=ghi82ntk4grw;Version=1;Path=/soap;Discard
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<loginResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</soapenv:Body>
</soapenv:Envelope>