I am capturing the viewport data and can send to to a remote application, which displays it – this works fine.
However, I decided that I would like to try it in the browser, too:
HttpRequest->SetVerb("POST");
HttpRequest->SetHeader("Content-Type", "image/png");
HttpRequest->SetContent(data);
HttpRequest->SetURL("http://localhost:9291");
// Execute the request
HttpRequest->ProcessRequest();
Here is the data:
const TArray<uint8> data;
My HTML looks like this:
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=0.1">
</head>
<body style="margin: 0px;">
<img style="-webkit-user-select: none" src="http://localhost:9291/">
</body>
</html>
However, my image is never displayed… all that happens is I see my page waiting for localhost… waiting and waiting…
Does anyone have any idea what is wrong? I would love some help with this.
Thanks!