- Feb 22, 2001
- 3,044
- 544
- 136
I've been working on my first real PHP project that tracks Steam games that go on sale.
The basics work fine, and I'm trying to add functionality.
I track a games history of being on sale, and as part of the game data I collect the publisher and developer.
It works well except for when a game is rated M(mature), and Steam has an "Age Check" page in front of the games normal page (where the pub and dev data reside).
I was (still am, really) clueless as to how to solve and asked over on PHPFreaks for help.
(http://www.phpfreaks.com/forums/index.php?topic=351070.0)
I get that I'm needing to POST valid age data to the website; I'm using the "curl" library to do that.
The initial URL looks like this:
http://store.steampowered.com/agecheck/app/1250/#
The page looks to need these fields filled out:
curl_setopt($ch,CURLOPT_POSTFIELDS,'snr=1_agecheck_agecheck__age-gate&ageDay=1&ageMonth=1&ageYear=1990');
Curl returns me a new URL:
http://store.steampowered.com/app/1250
... which should be the direct link to the page, but when echo'ing the new URL contents, I get the age-check front door again.
Anyone have any suggestions, or perhaps attempt to help me define what I'm technically trying to do?
The basics work fine, and I'm trying to add functionality.
I track a games history of being on sale, and as part of the game data I collect the publisher and developer.
It works well except for when a game is rated M(mature), and Steam has an "Age Check" page in front of the games normal page (where the pub and dev data reside).
I was (still am, really) clueless as to how to solve and asked over on PHPFreaks for help.
(http://www.phpfreaks.com/forums/index.php?topic=351070.0)
I get that I'm needing to POST valid age data to the website; I'm using the "curl" library to do that.
The initial URL looks like this:
http://store.steampowered.com/agecheck/app/1250/#
The page looks to need these fields filled out:
curl_setopt($ch,CURLOPT_POSTFIELDS,'snr=1_agecheck_agecheck__age-gate&ageDay=1&ageMonth=1&ageYear=1990');
Curl returns me a new URL:
http://store.steampowered.com/app/1250
... which should be the direct link to the page, but when echo'ing the new URL contents, I get the age-check front door again.
Anyone have any suggestions, or perhaps attempt to help me define what I'm technically trying to do?
