Server acting as browser - handling cookies?
I need to have my Apache/PHP 4.3.0 server act as a client browser and navigate to a restricted site that uses session cookies. The PHP script needs to:
$url_login = 'https://www.secure.com/scripts/cgi.exe/uv.w?request=login&login=myaccount&password=mypass word';
2. Gather data and process:
$url_data = 'https://www.secure.com/scripts/cgi.exe/uv.w?request=getdata&index=3';
$url_logout = 'http://www.secure.com/bye.asp?request=logout';
Steps 1 and 3 work fine since they don't require session cookies. Step 2 fails since session cookie info is not stored by step 1 and subsequently sent in the HTTP header of the 'copy' function in step 2.
1. How can step 1 get the HTTP header cookie information from the 'copy' request? (or suggested equivalent functionality).
2. How can step 2 supply the HTTP header cookie information in the 'copy' request? (or suggested equivalent functionality).
TNX for your help.