Answer the question
In order to leave comments, you need to log in
VK API: HTTP response code said error how to deal?
I am transferring an already working bot from hosting to a virtual server. On the hosting everything works fine, on the server the HTTP response code said error is returned. Empirically found out that the error occurs when curl_init () is executed;
So this code works:
switch ($data->type) {
case 'confirmation':
echo secretKey;
function VKapi($method, $apiOpt){
$apiOpt['access_token'] = token;
$apiOpt['v'] = v;
$ch = curl_init(); // ошибка проявляется здесь
switch ($data->type) {
case 'confirmation':
echo secretKey;
VKapi(прочий_код);
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