I tried this example, but don`t work .
I CONSOLE is nothing printed !!!
That is surprising. Are you trying this from desktop or bundled mobile or HTML? Do you get anything at all in the console or log?
I tried from Desktop
I did not get anything in console or log
i checked this example a second ago - all works fine
DEBUG:SCRIPT: 302
DEBUG:SCRIPT: <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.by/?gfe_rd=cr&ei=WTKsV8KnEuaFzAXq94L4Cw">here</A>.
</BODY></HTML>
DEBUG:SCRIPT:
{
content-type = text/html; charset=UTF-8,
location = http://www.google.by/?gfe_rd=cr&ei=WTKsV8KnEuaFzAXq94L4Cw,
date = Thu, 11 Aug 2016 08:07:53 GMT,
content-length = 258,
cache-control = private,
}
And the log is completely empty? Are you bundling or doing a Build and Launch? Is the script attached to a game object? Try a print() in the init() function. Can you see the print? Please try to provide more information when posting things like this.
Try to add print to example method
function example(self)
print(“this method works”)
http.request(“http://www.google.com”, “GET”, http_result)
end
I fixed thanks !
What was wrong? Please share if you think it can benefit others.
Example work good, I was not watchful !