I'm currently trying to get my sessionid and cookie from steam login.
When I login manually and check the network responses, I can see the info I need. It's located mainly in the dologin/
http://imgur.com/a/ZFwAQ - First image is getrsakey/ and the second image is dologin/
On the second image I marked what I need with a red box. I think I just need the browserid and steamMachineAuth.
$url = "https://steamcommunity.com/login/getrsakey/";
$params = ['username' => "MyUsername", 'password' => "MyPassword"];
$cookie_jar = tempnam('/tmp', 'cookie');
$session = curl_init($url);
curl_setopt($session, CURLOPT_POST, true);
curl_setopt($session, CURLOPT_POSTFIELDS, $params);
curl_setopt($session, CURLOPT_HEADER, 1);
curl_setopt($session, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($session, CURLOPT_TIMEOUT, 30);
curl_setopt($session, CURLOPT_MAXREDIRS, 10);
curl_setopt($session, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($session, CURLOPT_COOKIEJAR, $cookie_jar);
$response = curl_exec($session);
die(var_dump($cookie_jar));
curl_close($session);
With the curl above, it seems like I only get getrsakey/ stats for obvious reasons. I tried making a second curl request with the cookiejar I made, and then request dologin/ but all I'm getting back is
"{"success":false}bool(true)}"
TLDR: I need the browserid and steamMachineAuth from the dologin/ - See link above (Second image) basically the whole cookie if possible.