Jump to content
McKay Development

Cookies Send to accept trade offer

Recommended Posts

I am trying to create a bot in Java. I can login with it and get steamLoginSecure, steamMachineAuth**** with it after login.

I want to be able to accept incoming trade offers. I am using steam api to get trade offer details so, I am able to get tradeoffer id with it.

I used the link in the node-steam-tradeoffer-manager https://steamcommunity.com/tradeoffer/4389150283/accept?sessionid=**&serverid=1&tradeofferid=**&partner=**&captcha=

And used the cookies similar to that used in your node-SteamCommunity :   'Steam_Language=english',  'timezoneOffset=0,0',   'steamCountry= **', 'steamLoginSecure=**' 'steamMachineAuth** =**',


And finally in header referer is set to the link of trade offer.

I am getting a `null` and 403 forbidden as  a reply. 

Could you please help me with what must be the request in postman so that I can implement that in Java?

Thank you. Have a great day:).

Link to comment
Share on other sites

Thanks for the reply. Yes it works now. Your comment on Ben's questions also helped. So I just had to send the values as x-www-form-urlencoded. I was stuck on this for about a month. I was looking in the wrong direction, I kept thinking there was a problem with how I was sending the cookies or I was missing some cookie, especially the webTradeEligibility cookie as when I cleared my browsers cookies I could not trade, that cookie is not even needed when we request directly, that was strange.

Thanks again. Have a wonderful day:D.

Link to comment
Share on other sites

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.

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.


  • Create New...