MrRobot Posted September 11, 2016 Report Posted September 11, 2016 Hello, I have a question. I would like to send httpRequest request on store.steampowered.com website. But I noticed that after login cookies are set only on steamcommunity.com website. For this reason I am able to do it, but only as "guest" user. Is it possible somehow to send a request and stay online? I think It will be pretty good idea to share cookies between store and community like Steam does. Because both websites using the same cookie. Thank you. Quote
Dr. McKay Posted September 12, 2016 Report Posted September 12, 2016 You're kind of meant to use steam-store for store.steampowered.com requests, but I could see how it would be more useful to have that available in steamcommunity, especially since steam-store doesn't offer the HTTP stuff. This is now available in 3.26.0. MrRobot 1 Quote
MrRobot Posted September 12, 2016 Author Report Posted September 12, 2016 You are best. Thank you! I was trying to use "steam-store", but whole code was a little bit messed. Now It works great! Quote
MrRobot Posted September 12, 2016 Author Report Posted September 12, 2016 I am sorry. I just tested new version and It seems that something is wrong. Because I am still logged in as guest when I am trying to send httpRequest to store.steampowered.com. I tried both http and https protocols. When I am trying to send httpRequest to steamcommunity.com everything works perfect and I see myself as logged in user. I was trying to take a look through code but did not find the reason why It happens. Any ideas? My code: community.httpRequestGet(url, (err, response, body) => { if (err) { console.log(err); process.exit(); } console.log(body); }); Quote
MrRobot Posted September 12, 2016 Author Report Posted September 12, 2016 UPDATE: I just compared both Cookies from store.steampowered.com and steamcommunity.com and noticed that Store has only "sessionId". After that I checked what "setCookie" function really do and noticed that this function is not responsible for such cookies set up as "steamLogin", "steamLoginSecure". For this reason, not all cookies being set for Store. Screenshot (setCookie function log):https://www.dropbox.com/s/uaz04ry6ci49vy6/Screenshot%202016-09-12%2015.33.02.png?dl=0 Unfortunately, I do not understand where exactly "steamLogin" cookie are being set up. Quote
Dr. McKay Posted September 12, 2016 Report Posted September 12, 2016 Sorry, it was working if you used setCookies but not if you logged in directly. This is fixed in v3.26.1. Quote
MrRobot Posted September 12, 2016 Author Report Posted September 12, 2016 Sorry, it was working if you used setCookies but not if you logged in directly. This is fixed in v3.26.1. Yes, I noticed that. Thank you very much for quick fix! Quote
Revadike Posted April 26, 2018 Report Posted April 26, 2018 Dr. McKay, I've noticed if you use HTTPS for store.steampowered.com, you will get a ACCESS DENIED html response (403). Can you look into this? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.