[B3RC1] HttpRequest fails in Manialink Browser

Moderator: NADEO

Locked
User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

[B3RC1] HttpRequest fails in Manialink Browser

Post 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.
Last edited by m4rcel on 10 Feb 2013, 17:03, edited 2 times in total.
ImageImage
Image
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post by spaii »

User avatar
m4rcel
Posts: 650
Joined: 15 Jun 2010, 11:12
Contact:

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

Post by m4rcel »

Still not working in Beta 2.1b.
ImageImage
Image
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post by spaii »

I also tested and confirm.
Locked

Return to “Maniaplanet Reports”

Who is online

Users browsing this forum: No registered users and 1 guest