Hello,

On 01/03/2004 03:06 PM, Jorge Castaneda wrote:
WHERE IS THE ERROR?
The username and the password are the correct and the name of the
variables (login and pass) also match. I tried to get data from a
secure site but I always receive the next message instead of the page
I request:
We are connected with somesecuredomain.com
HTTP/1.1 302 Found Date: Fri, 02 Jan 2004 19:21:20 GMT Server:
Apache/1.3.27 (Unix) FrontPage/5.0.2.2623 PHP/4.3.2 mod_gzip/1.3.19.1a
mod_accounting/1.0 mod_fastcgi/2.4.0 mod_ssl/2.8.14 OpenSSL/0.9.7b
rus/PL30.17 X-Powered-By: PHP/4.3.2 Set-Cookie:
biz=8a204f6cf271a7a81d3de70c0b250921; path=/ Expires: Thu, 01 Jan 1970
00:00:01 GMT Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0 Pragma: no-cache Location:
/?error=Auth+error%2C+wrong+login+or+password.&login=myusername
Connection: close Content-Type: text/html; charset=windows-1251
Last-Modified: Fri, 02 Jan 2004 19:21:20 GMT

These are headers to redirect you to a login page. You are probably not sending any session cookies that let the site reckon you as logged user. In that case, you need to submit a login form and collect the cookies to be used in the pages that you want to access.


You may want to try this class that can do that work of collecting cookies and sending them back when accessing the site pages. There is an example to do that in the same site where the class is available.

http://www.phpclasses.org/httpclient

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to