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. Quote
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 Quote
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... Quote
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. Quote
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. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.