[B3RC1] HttpRequest fails in Manialink Browser
Posted: 05 Jan 2013, 12:16
This bug has laready been reported here, but as there is no answer from Nadeo yet, I want to report it here in the Beta forum again.
When using the HttpRequest class in the Manialink Browser, the requests fails to be successfully executed. Instead, Request.IsCompleted stays False forever, and Request.StatusCode returns always 0. Additionally, the request never appears in the network traffic, so it seems that it is actually never executed from the Manialink browser.
Test script:
This script prints "Waiting for Request... Status: 0" forever, it never completes the request.
When using the HttpRequest class in the Manialink Browser, the requests fails to be successfully executed. Instead, Request.IsCompleted stays False forever, and Request.StatusCode returns always 0. Additionally, the request never appears in the network traffic, so it seems that it is actually never executed from the Manialink browser.
Test script:
Code: Select all
declare Text URL = "http://localhost/test/getXML";
log("Valid: " ^ Http.IsValidUrl(URL); // Outputs True for my test URL
log("Slots: " ^ Http.SlotsAvailable);
declare CHttpRequest Request = Http.CreateGet(URL);
log("Slots: " ^ Http.SlotsAvailable); // Slots have been reduced by 1
declare Integer Next = Now + 1000;
while (True) {
while (Now < Next) {
yield;
}
if (Request.IsCompleted) {
log("Request Completed, Status: " ^ Request.StatusCode);
log(Request.Result);
break;
} else {
log("Waiting for Request... Status: " ^ Request.StatusCode);
Next += 1000;
yield;
}
}