Thread: Taking Requests
View Single Post
Old 05-01-2004, 05:53 PM   #3
fredh
Green Mole
 
Join Date: Nov 2003
Posts: 11
Proper Cookie Support in GET requests

Hi,

I would like to see cookies being passed properly in all page requests. Currently, in versions of PHP < 4.3, cookies are only being sent properly in HEAD requests but not in the GET requests.

This is a huge problem when you have a site that depends on a sessionID cookie as an example.

Personally I have already fixed this bug in the versions of PHPDig that I use for my clients sites.

What I did was use this small library to do it:
http://snoopy.sourceforge.com

Its an extremely simple piece of code and I fixed the PHPDig bug in 6 lines of code. (in the robot_functions.php file). Mind you, to properly support authentication and such you will need to add a few more lines

I will be more then happy to share my code fixes, simply let me know.

PHPDig rocks!
fredh is offline