This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
cdel's profile picture

Home Server + CC Woes

Started by cdel, 19 February 2015 - 08:57 AM
cdel #1
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.
HPWebcamAble #2
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
InDieTasten #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 ;)/>
cdel #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 :)/>
KingofGamesYami #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).