Jump to content
McKay Development

httpRequest with store.steampowered.com


MrRobot

Recommended Posts

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.

Link to comment
Share on other sites

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);
});
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

  • 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...