PHP cURL POST gives me error 403 while trying to contact STEAM Server -


i'm trying automate accepting trades on steam account, i've been able login , fine gives me hope can contact server remotely, kept login cookies on using curl cookie jar. here's curl code:

$useragent = $_server['http_user_agent']; $url = "https://steamcommunity.com/tradeoffer/957#######/accept/"; $params = [ 'sessionid' => "71824xxxxxxxxxxxx" , 'tradeofferid' => ########, 'serverid' => #, 'partner' => ############## ]; $cookie_jar = 'c:\windows\temp\cooc0b3.tmp'; $session = curl_init($url); curl_setopt($session, curlopt_cookiejar, $cookie_jar); curl_setopt($session, curlopt_cookiefile, $cookie_jar); curl_setopt($session, curlopt_header, 1); curl_setopt($session, curlinfo_header_out, true);  curl_setopt($session, curlopt_verbose, 1); curl_setopt($session, curlopt_post, true); curl_setopt($session, curlopt_postfields, $params); curl_setopt($session, curlopt_followlocation, true); curl_setopt($session, curlopt_returntransfer, 1); curl_setopt($session, curlopt_connecttimeout ,0);  curl_setopt($session, curlopt_timeout, 400); curl_setopt($session, curlopt_useragent, $useragent); curl_setopt($session, curlopt_ssl_verifypeer, false); $response = curl_exec($session); $response2 = curl_getinfo($session, curlinfo_header_out ); print_r($response); 

the user agent set current chrome browser i'm using, , session id 1 stored in cookiejar. note i've tried inspect , edit html script on real account login, made form send previous parameters input field method="post" action="<previous accept trade url>" , accepted.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -