I created one server in ASP.net using web API and call API in Roku using a bright script. I request server using POST method Its successfully done. But Is It possible Response back in Roku.
EDITED POST:
In my Server, if username and password are right then return true otherwise false.
Following code in my Server :
if (Program.global(name, pass))
{
Request.CreateResponse(HttpStatusCode.OK, System.Text.Encoding.UTF8.GetBytes(pass));
return Request.CreateResponse(HttpStatusCode.OK, "UserName : " + name + " PassWord : " + pass);
}
else
{
return Request.CreateResponse(HttpStatusCode.OK, "Invalid UserName & Password");
}
I check in Postman if username and password are "right then returned username and password in response" and "wrong then return invalid username and password as a string in response".
I refer to this POST. and also refer the roUrlEvent
In Postman I check the request URL it's required sometimes so I enter the wrong username and password its working fine But the valid username and password its directly generate the error.
Execution timeout (runtime error &h23)
Does anyone know this error?