Adwait 1 Posted January 8 Report Share Posted January 8 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** =**', sessionid=**. 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. Quote Link to post Share on other sites
Dr. McKay 360 Posted January 8 Report Share Posted January 8 It looks like you're sending the parameters in the URL rather than in the post body as you should be. Adwait 1 Quote Link to post Share on other sites
Adwait 1 Posted January 9 Author Report Share Posted January 9 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. Dr. McKay 1 Quote Link to post Share on other sites
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.