Same problem for me, I also tried to request some data, but it seems not working in Manialink context.
My script:
Code: Select all
log("Test start");
log("Valid: " ^ Http.IsValidUrl("http://localhost/test/getXML"));
log("Slots: " ^ Http.SlotsAvailable);
declare CHttpRequest Request = Http.CreateGet("http://localhost/test/getXML");
log("Slots: " ^ Http.SlotsAvailable);
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;
}
}
The URL is proofed to be valid, and the slots are decreased with each script call, but yet I was unable to see the request in the network traffic., So the request seems to be actually never started. (Thus, the script of course keeps in the loop printing "Waiting for Request", status is always 0. )