2toetommy Posted November 17, 2012 Posted November 17, 2012 Looking into APi's cor CC and i see theres a http function in there. AND again zero info on it. If it works the way it bearly mentioned it then that would be kool. Has anyone used http at all? http.get( url ) or anything i see no info how to use or write this up. HELP PLEASE.
Linear_Spoon Posted November 17, 2012 Posted November 17, 2012 You can click the command for more details: http://computercraft.info/wiki/index.php?title=Http.get Also check out the fs.open documentation. This is the return value of http.get http://computercraft.info/wiki/index.php?title=Fs.open#File_Handles If you need more examples/help I'll be back in the morning
Kommunističeskiĭ Posted November 17, 2012 Posted November 17, 2012 Looking into APi's cor CC and i see theres a http function in there. AND again zero info on it. If it works the way it bearly mentioned it then that would be kool. Has anyone used http at all? http.get( url ) or anything i see no info how to use or write this up. HELP PLEASE. HTTP API is kinda useless unless you have your own web server with a custom program to handle CC requests. You can't really write a web browser in Lua. Not in this century anyways; most websites use stuff like Java and Flash for a lot of the content. Would be fun to see an IRC interface written in PHP specifically for cross-server ComputerCraft chatting...
thebird Posted November 17, 2012 Posted November 17, 2012 HTTP API is kinda useless unless you have your own web server with a custom program to handle CC requests... When you enable the HTTP API, you can download stuff from Pastebin onto a CC computer in the game. This allows users to write code on their local machine in a more comfortable editor and then download the code onto the CC computers.
Kommunističeskiĭ Posted November 18, 2012 Posted November 18, 2012 When you enable the HTTP API, you can download stuff from Pastebin onto a CC computer in the game. This allows users to write code on their local machine in a more comfortable editor and then download the code onto the CC computers. I use AutoHotkey for that. :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now