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

http api

Started by tfoote, 30 June 2012 - 06:30 PM
tfoote #1
Posted 30 June 2012 - 08:30 PM
Is there a way that you can upload text to a website? then the website would have that text posted?
CraftedCart #2
Posted 11 August 2013 - 03:57 AM
Run
Pastebin put FILENAME
This will upload it to pastebin.com. You should get a message saying what URL it is at.
Also note that this is a program, not code, and you also need an Internet connection and the HTTP API enabled (find it in you computercraft config file)
reububble #3
Posted 11 August 2013 - 08:24 AM
http://computercraft.info/wiki/HTTP_(API) will come in handy for you.

If my inklings are correct, you can build a basic web browser using the simple functions listed on that wiki page.
Give it shot. Hopefully somebody with some REAL experience in this topic will soon come to the rescue.
Unfortunately, that person is not myself.
svdragster #4
Posted 11 August 2013 - 08:46 AM
You can use the Pastebin API to upload a text to Pastebin, using the http api.

If you want to upload a text to your website, you will need a php script or something similar.