Page 1 of 1

[B3RC1] HttpRequest fails in Manialink Browser

Posted: 05 Jan 2013, 12:16
by m4rcel
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:

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;
   }      
}
This script prints "Waiting for Request... Status: 0" forever, it never completes the request.

Re: [B2.0d] HttpRequest fails in Manialink Browser

Posted: 05 Jan 2013, 12:23
by spaii

Re: [B2.0d] HttpRequest fails in Manialink Browser

Posted: 27 Jan 2013, 14:17
by m4rcel
Still not working in Beta 2.1b.

Re: [B2.1b] HttpRequest fails in Manialink Browser

Posted: 27 Jan 2013, 19:06
by spaii
I also tested and confirm.