Work with the HTTP protocol in UE4

How do I download code page from the Internet using HTTP.

UObject* WorldContextObject;
UWorld* World = GEngine->GetWorldFromContextObject(WorldContextObject);
UServerLoader* obj = (UServerLoader*)StaticConstructObject(UServerLoader::StaticClass());
TSharedRef< IHttpRequest > HttpRequest = FHttpModule::Get().CreateRequest();
HttpRequest->OnProcessRequestComplete().BindUObject(obj, [](FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful) {
	if (!bWasSuccessful)
		UE_LOG(LogTemp, Error, TEXT("Response was invalid! Please check the URL."));
	FString responseData = Response->GetContentAsString();

This code produces the error. What am I doing wrong?

This is a bit off-topic but how did you managed to get HTTP work? I get FHttpModule is undefined eventhough I added these two line in Project.Build.cs

    PrivateDependencyModuleNames.AddRange(new string[] { "HTTP" }); 
    PrivateIncludePathModuleNames.AddRange(new string[] { "HTTP" });

and of course included http.h.

I also included http.h and added HTTP module and I were errors during compilation. How can I get the HTML source of page with this module?

I actually had wrong http.h included so I used this to get it work.

#include "Runtime/Online/HTTP/Public/Http.h"


What have you wrote in the code to download HTML page from the Internet?

I’m currently doing HTTP POST requests only.

Trying to follow the