Re: Curl redirection problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris wrote:

Basically I want to redirect to: http://www.website.org/index.php after
logging in using curl.

Curl won't redirect you, you have to do it.

header('Location: http://www.website.org');

But bear in mind that any cookies you've set up with curl will not be there when you redirect the client since they're in your cookie jar not on the clients machine, so if you're trying to do what I think you're trying to do it won't work.

-Stut

--
http://stut.net/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux