darkwar123 Posted April 26, 2016 Report Posted April 26, 2016 Can I sell my items using method httpRequest to /sellitem with options? I tried but always failed, I know that automating market listings is against Steam ToS, but how it knows that my requests are automated? Quote
Dr. McKay Posted April 27, 2016 Report Posted April 27, 2016 You're doing something wrong. It isn't detecting that your requests are automated, you just aren't sending the right data. Quote
darkwar123 Posted April 28, 2016 Author Report Posted April 28, 2016 (edited) I send item's data in options.form and headers in options.headers, is it notright? options: { headers: { 'User-Agent': 'request', .... } form: itemData } Edited April 28, 2016 by darkwar123 Quote
darkwar123 Posted April 28, 2016 Author Report Posted April 28, 2016 It works, but I don't uderstand why it doesn't work last time Quote
darkwar123 Posted April 28, 2016 Author Report Posted April 28, 2016 If somebody would be useful options need to look like this: var options = { url: 'https://steamcommunity.com/market/sellitem/', headers: { 'Origin': 'http://steamcommunity.com', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Referer': 'http://steamcommunity.com/my/inventory/', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'ru,en-US;q=0.8,en;q=0.6,en-AU;q=0.4' }, form: { sessionid: this.sessionid, appid: item.appid, contextid: item.contextid, assetid: item.assetid, amount: 1, price: item.price } }; Quote
QWER Posted May 13, 2016 Report Posted May 13, 2016 Hi, thanks for sharing. I have problem with this - always get status code 400. var options = { url: 'https://steamcommunity.com/market/sellitem/', headers: { 'Origin': 'http://steamcommunity.com', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Referer': 'http://steamcommunity.com/my/inventory/', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'ru,en-US;q=0.8,en;q=0.6,en-AU;q=0.4' }, form: { sessionid: session, appid: items[index]["appid"], contextid: items[index]["contextid"], assetid: items[index]["assetid"], amount: 1, price: 3 // price is $0.03 } }; request(options, function (error, response, body) { if(!error && response.statusCode == 200){ console.log("Item added on market ($" + price + ") > " + items[index]["market_hash_name"]); }else{ console.log("Error item > " + items[index]["market_hash_name"]); console.log(error); console.log(body); console.log(response); console.log(response.statusCode); } }); Where is the problem?Thanks for everything 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.