$qry_str = "id=2342342&console=test";
$ch = curl_init();
// Set query data here with the URL
curl_setopt($ch, CURLOPT_URL, 'http://example.com/test' . $qry_str);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
$content = trim(curl_exec($ch));
curl_close($ch);
$login='login';
$password='password';
if($_POST['login']==$login && $_POST['password']==$password)
try
{
// Логинимся
$loginresult = $client->logIn($login, $password);
}
$products [] = array(
'text' => 'iphone',
'price' => 2000,
'count' => 1
);