Okay since I last posted I’ve been trying to set up a PHP script to interface with the DH control panel. I’m hitting a brick wall though in that it won’t log in the script.
I tried dupicatign the log in page and then capturing the cookie that is sent back, but the page response from the log in page includes
“Uh oh! Please make sure cookies are enabled! If so, try deleting your “dreamhost.com” cookie and re-trying!”
Which I don’t understand how it sends that since the cookie has only just been sent back so the response page doesn’t actually know ANYTHING about the status of the DH cookie at that time!
So I then captured an existing DH panel session cookie from my browser and used that as a static cookie instead. However it was ignored by the DH site and all I got was the log in page back…
I hesitate to post the PHP code as its a bit of a mess (haha understatement!) but I’m using cURL to pull the pages.
Am I missing something obvious? Any suggestions?