Jump to content




Home Server + CC Woes


  • You cannot reply to this topic
4 replies to this topic

#1 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, 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.

#2 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb 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 ![email protected] 1?#

Edited by HPWebcamAble, 19 February 2015 - 03:53 PM.


#3 InDieTasten

  • Members
  • 357 posts
  • LocationGermany

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 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, 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 :)

#5 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited 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).





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users