I’m trying to pass POST params to be read in php form, then I want to execute a php login code based on these params
I’m using this code, what is missing?
Anyone?
void UGameInstanceYU::RequestLogin(FString Login, FString Password)
{
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject());
TSharedRef<IHttpRequest> HttpRequest = FHttpModule::Get().CreateRequest();
HttpRequest->SetVerb("POST");
HttpRequest->SetHeader("Content-Type", "application/json");
HttpRequest->SetURL("http://localhost/TheGame/RequestLogin.php");
HttpRequest->OnProcessRequestComplete().BindUObject(this, &UGameInstanceYU::OnResponseReceived);
HttpRequest->ProcessRequest();
}