Answer the question
In order to leave comments, you need to log in
Authorization by a script on a ucoz site: what's wrong?
Hello. I am trying to log in to the ucoz site using a php script (curl) to go to the necessary pages . I
use the following code:
$myCurl = curl_init();
curl_setopt_array($myCurl, [
CURLOPT_URL => 'http://сайт/index/sub',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query([
тут параметры
])
]);
$response = curl_exec($myCurl);
curl_close($myCurl);
<?xml version="1.0" encoding="UTF-8"?><ajax><cmd p="innerHTML" t="msgL555"><![CDATA[<div class="myWinLoadSD"></div>]]></cmd><cmd p="js"><![CDATA[var ad=window.location.href.replace(/#(.*)?/,'');setTimeout("window.location.href='"+ad+"?lUqgl1'",'1000')]]></cmd></ajax>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question