Hello, I'm having a problem trying to network php from server but I don't think the code is wrong are you willing to help me?

Hello, I’m having a problem trying to network php from server but I don’t think the code is wrong are you willing to help me?

this is my code

cocos2d::network::HttpRequest* request = new cocos2d::network::HttpRequest();
request->setUrl( “https://www.doniwahyudi.ga/get.php” );
request->setRequestType(cocos2d::network::HttpRequest::Type::GET);
request->setResponseCallback(CC_CALLBACK_2(HelloWorld::onHttpRequestCompleted, this));
request->setTag(“GET test”);
cocos2d::network::HttpClient::getInstance()->send(request);
request->release();

void HelloWorld::onHttpRequestCompleted(cocos2d::network::HttpClient* sender, cocos2d::network::HttpResponse* response)
{

// The data will be placed in the buffer.
std::vector<char>* buffer = response->getResponseData();
char* concatenated = (char*)malloc(buffer->size() + 1);
std::string s2(buffer->begin(), buffer->end());
strcpy(concatenated, s2.c_str());

// JSON Parser
Json* json = Json_create(concatenated);

int test1 = Json_getInt(json, "a", -1);

const char* test2 = Json_getString(json, "b", "default");

float test3 = Json_getFloat(json, "c", -1.0f);

// View the console
log("HTTP Response : key a : %i", test1);
log("HTTP Response : key b : %s", test2);
log("HTTP Response : key c : %f", test3);

// Delete the JSON object
Json_dispose(json);

if (response->getResponseCode() == 200)
{
    log("Succeeded");

    return;
}
else
{
    log("Failed");
}

}