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.
Home Server + CC Woes
Started by cdel, Feb 19 2015 09:57 AM
4 replies to this topic
#1
Posted 19 February 2015 - 09:57 AM
#2
Posted 19 February 2015 - 03:49 PM
It works for me (In CCEmuRedux)
It prints ![email protected] 1?#
response = http.get("http://cdel.me/chirp/posts.php")
response = response.readAll()
print(response)
It prints ![email protected] 1?#
Edited by HPWebcamAble, 19 February 2015 - 03:53 PM.
#3
Posted 19 February 2015 - 04:05 PM
I would assume your whitelisted hosts do not contain your domain, or a wildcard fitting your domain
#4
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
#5
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).
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











