Re: [PHP] Curl redirection problem.

2007-09-06 Thread Stut
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

Re: [PHP] Curl redirection problem.

2007-09-06 Thread Rahul Sitaram Johari
Chris wrote: 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

Re: [PHP] Curl redirection problem.

2007-09-06 Thread Stut
Rahul Sitaram Johari wrote: Chris wrote: 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

[PHP] Curl redirection problem.

2007-09-05 Thread Rahul Sitaram Johari
Ave, I¹m using Curl to login to a website. I gather cookies from one page, carry the cookiejar to another page, post data to login, and get the result. The problem is, the final landing page displays on my php page as part of the page and remains on my server, therefore the Links on that Landing

Re: [PHP] Curl redirection problem.

2007-09-05 Thread Chris
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'); -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/)