Jump to content




Having trouble with http api.


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

#1 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 07 February 2016 - 09:46 PM

I tried running this code a LOT of times and it is not working.

When I replace the URL with "http://google.com" or "http://example.com" it works normally.

When running the code locally (from a file on the PC) it still does not work.

I even restarted my physical laptop to be sure it is not an issue with the laptop.

Thanks for the help in advance.

PS: For those to lazy to click on the link, here is the code:

--[[
    Updater Script
]]--

local path = ...
print(path)
print("lelz")

local handle = http.get("https://raw.githubusercontent.com/Creator/Tunnel/master/Releases/latest.lua")
local f = loadstring(handle.readAll())
print(handle.readAll())
setfenv(f,_G)
f(path)

And make sure to make me feel like an idiot when you discover the issue.

#2 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 07 February 2016 - 10:06 PM

could the https be causing the problem?

#3 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 07 February 2016 - 10:26 PM

I think I tried it both ways. it turns out the s does matter. Thanks.

#4 Lignum

  • Members
  • 558 posts

Posted 07 February 2016 - 10:50 PM

Where are you testing this? HTTPS works fine for me on CCEmuRedux.

#5 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 07 February 2016 - 11:37 PM

Normal CC.

#6 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 07 February 2016 - 11:40 PM

What is not working? What does it do?

#7 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 07 February 2016 - 11:42 PM

Well, it works now. It turns out the s in https is very important.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users