php ch curl_init https api login icq net auth clientLogin curl_setopt_

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<?php
$ch = curl_init("https://api.login.icq.net/auth/clientLogin");
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(array(
"devId" => "ma15d7JTxbmVG-RP",
"f" => "xml",
"pwd" => "111111",
"s" => "576447975"
)),
CURLOPT_HEADER => true,
CURLOPT_RETURNTRANSFER => true,
));
echo curl_exec($ch);