Visual studio is complaining about Get(); not being a member of FHttpModule…
I am coming from C# so I might be doing something wrong here as my C++ is a bit basic to say the least.
Is it possible for any of you to maybe help me out? I am using 4.6.1 and need to do some login code for my game that requires an http connection to my server.
instead.
VS is complaining at my side too, however it works anyway and also should regarding too the docs (FHTTPModule).
After that, you have to make your GET or POST request. Check out IHttpRequest for more info.
Request->SetVerb(TEXT("POST"));
Request->SetURL("http://www....");
// setcontent-type to whatever you want
Request->SetHeader("Content-Type", "application/json");
Request->SetContentAsString("...");
...
// bind a function which gets called when the request is completed
Request->OnProcessRequestComplete().BindUObject(this, &Sandbox::completedHTTPRequest);
...
if (!Request->ProcessRequest())
{
// HTTP request failed
}