Page 1 of 1

[SOLVED] Setting cookies

Posted: Tue Aug 03, 2004 7:10 pm
by Oxydude
How can I set a cookie to enable me to access a website that I have an account for. When I try to read data from a website http://www.bigcompany.com/catalog..., I get sent to a login screen http://www.bigcompany.com/login.php. I think if I can pass a cookie value, it will allow me to read the data in the catalog.

Thanks for any responses!

Posted: Tue Aug 03, 2004 7:27 pm
by feyd
you'll want to use [php_man]curl[/php_man]

Posted: Tue Aug 03, 2004 9:39 pm
by Oxydude
THanks feyd! I already have curl installed on my redhat server, so it should be fairly painless. I already checked and I can use it from the command line. Thanks!