[SOLVED] Setting cookies

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Oxydude
Forum Newbie
Posts: 22
Joined: Sun Aug 01, 2004 9:57 am

[SOLVED] Setting cookies

Post 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!
Last edited by Oxydude on Tue Aug 03, 2004 9:39 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you'll want to use [php_man]curl[/php_man]
Oxydude
Forum Newbie
Posts: 22
Joined: Sun Aug 01, 2004 9:57 am

Post 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!
Post Reply