Jump to content




http api

api

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

#1 tfoote

  • New Members
  • 134 posts
  • LocationSalt Lake, UT

Posted 30 June 2012 - 07:30 PM

Is there a way that you can upload text to a website? then the website would have that text posted?

#2 CraftedCart

  • Members
  • 67 posts
  • LocationUnited Kingdom, Earth

Posted 11 August 2013 - 02: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)

#3 reububble

  • Members
  • 72 posts
  • LocationBehind you

Posted 11 August 2013 - 07:24 AM

http://computercraft...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.

#4 svdragster

  • Members
  • 222 posts
  • LocationGermany

Posted 11 August 2013 - 07: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users