How to make an HTTP Request from Unreal

If someone googles through this thread (it’s the first result) and just wants to copy paste a quick http request without butchering your code with all of that above, here it is:

    auto request = FHttpModule::Get().CreateRequest();
    request->SetURL(FString("http://google.com"));
    request->OnProcessRequestComplete().BindLambda([](FHttpRequestPtr request, FHttpResponsePtr response, bool success) {
    });
    request->ProcessRequest();
7 Likes