Sultan - 2007-02-06 19:12:20
Hi!
$error=$http->SendRequest($arguments);
// After posting data to auth page I get this responce (several redirection)
HTTP/1.1 302
Set-Cookie: PHPSESSID=494dcc75841564affc2cf2e1c8a26ae0; expires=Thu, 01 Mar 2007 22:32:42 GMT; path=/
Location: http://**
Disconnected from saveoceanbeach.org
...
HTTP/1.1 302
Location: http://***
...
HTTP/1.1 302
Location: **
...
HTTP/1.1 200 OK
...
// To follow I need the values of Set-Cookie, but when I do
$error=$http->ReadReplyHeaders(&$headers);
print_r($headers);
// It give me only last responce heders (200 Ok and below)
[http/1.1 200 ok] =>
[date] => Tue, 06 Feb 2007 18:59:25 GMT
[server] => Apache/1.3.34 (Unix) mod_macro/1.1.2 mod_ssl/2.8.25 OpenSSL/0.9.7d
[x-powered-by] => PHP/4.4.0
[transfer-encoding] => chunked
[content-type] => text/html; charset=utf-8
How can I get values of set-cookies (and other headers, which are above last responce)?
Thank You