1
1
1Moze2016-11-20 15:53:16
PHP
1Moze, 2016-11-20 15:53:16

What is the correct way to send a Get request to Steam?

Hi guys, need a little help sending a get request to steam.
The thing is, it doesn't matter how I send the request. Through file_get_contents or curl, the answer still comes in English.
And through the browser, a response encrypted in json arrives. In Russian. What can be done about it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
yurygolikov, 2016-11-20
@1Moze

Compare http headers. Do you make requests from one ip?

A
Alino4ka, 2016-11-22
@Alino4ka

$param=array('http' => array('header'=> 'Cookie: Steam_Language=russian')); 
$data=stream_context_create($param);
$url='http://steamcommunity.com/';
$web = file_get_contents($url, false, $data);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question