Jump to content
McKay Development

Recommended Posts

Posted

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.

Posted

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.

Posted

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);
});
Posted

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. 

  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...