Open EasyCompany2020 opened 8 years ago
Try to echo steam web page, i think your cookies is not fine. I use only curl_setopt($c, CURLOPT_COOKIE, $cookies); to send cookies and ez works. and lol this is my code :D
I get this http://i.imgur.com/UkPNT2c.png
Echoing the web page like this echo $SteamLogin->view('http://steamcommunity.com/id/PolarisCS');
its wrong - need to see with css and js because than you can see if you are login success or not. I meen with all steam files.. like main page
i already run the site so i sell out script sorry
Huh?
http://i.imgur.com/xpzz9YV.png Btw I am logged in successfully
than ok but with curl you can check it too
Huh?
http://i.imgur.com/ez5pJrd.png CURL is returning my cookies when I ask it to.
$url = 'https://store.steampowered.com/'; $headers = "Cookie: add cookie line"//cookie
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 0);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_COOKIE, $headers);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
echo $response;
what is your main goal?
To send a trade offer.
you dont need login all the time - cookies stays about 7days
Yes, but when i try to send the trade it returns null. Thats my issue
when u login first time?
So I log in > Send a trade offer > Returns Null.
i meen login date first?
Could it return null because the account isn't mobile authenticated?
because u need to whait 7 days
if its new host (ip)
It's not :P
its localhost?
mhm
thats been everyones problem at start
It only returns null when there's a authentication issue. Check and make sure curl is sending correct cookie headers
On Sunday, July 10, 2016, eMDy notifications@github.com wrote:
thats been every body problem at start
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/halipso/php-steam-tradeoffers/issues/29#issuecomment-231607121, or mute the thread https://github.com/notifications/unsubscribe/ACv43pQDA6iweuMFgIjFHjktzDObQXqtks5qUUwtgaJpZM4JIwec .
How do i make sure it is. :P
Try using verbose to output the request to a file, this will show you the output of the request just like if it were run on the command line.
$file = fopen('request.txt', 'w'); curl_setopt($ch,CURLOPT_VERBOSE,true); curl_setopt($ch,CURLOPT_STDERR ,$file);
If you have logen in over 7 days limit than its can be only cookies or skin data.
dont open file and never store cookies in file
use db or.. to store them
I'm using this code : `public function makeNewOffer($sessionId, $cookies, $partner, $message = '', $token, $assetid) { $type = 'POST'; $url = 'https://steamcommunity.com/tradeoffer/new/send';
return $return;
And calling it via this
$steam->makeNewOffer($array['sessionId'], $array['cookies'], '$partnerID', $message = 'HIII', '$accessToken', '$itemID');
All i get is the word null on the webpage.
Anyone got any ideas?