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

HTTP help

Started by birdini, 19 August 2012 - 04:00 PM
birdini #1
Posted 19 August 2012 - 06:00 PM
I have looked nearly everywhere for a tutorial on how to correctly use the http api. When I use http.get() on a pastebin It returns the entire html document of the webpage, not just the text I need. Any suggestions?
sjele #2
Posted 19 August 2012 - 06:02 PM
If http is enabled in config do:
pastebin get haya5a nameOnComputer

haya5a is the part after pastebin.com/