541 posts
Location
Melbourne, Australia
Posted 19 February 2015 - 09:57 AM
On the router my server is connected to, I have two ports open, 80 (web server) and 22 (ssh). When using http.get(), it returns and works as it should with
other websites, however when I use my website, it returns nil, I am trying to show
this in the lua prompt.
957 posts
Location
Web Development
Posted 19 February 2015 - 03:49 PM
It works for me (In CCEmuRedux)
response = http.get("http://cdel.me/chirp/posts.php")
response = response.readAll()
print(response)
It prints !cdel@Chirp… 1?#
Edited on 19 February 2015 - 02:53 PM
355 posts
Location
Germany
Posted 19 February 2015 - 04:05 PM
I would assume your whitelisted hosts do not contain your domain, or a wildcard fitting your domain ;)/>
541 posts
Location
Melbourne, Australia
Posted 19 February 2015 - 10:17 PM
Sorry, I forgot to mention, 1lann suggested that I turn down the level of security on cloudflare, it then started working fine. Thanks for putting in the effort although :)/>
3057 posts
Location
United States of America
Posted 19 February 2015 - 10:26 PM
I'd guess cloudflare was blocking the request because it comes from the user-agent java. Change that, and cloudflare (probably) won't block it (even with the security turned up).