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

Online app

Started by RoD, 21 June 2014 - 01:52 PM
RoD #1
Posted 21 June 2014 - 03:52 PM
Hey everyone,
I am trying to make an app that can comunicate with other computers (cc computers) trough the world wide web.
I tryed pastebin (uploading values) but i then realized that i can't use it due the url being randomly generated.
I need to upload text so other computers can read it and know that other computer is trying to connect with him. I also need to be able to change the data. Is it possible? I dont really want to buy a server for a website, but it look like one of the few only options. Or is there any website that does what i intend?
sEi #2
Posted 21 June 2014 - 04:50 PM
If you register at pastebin you get a uniq ID so you can edit pastes without changing their url. And then if you make a program using HTTP contacting pastebin you 'might' get it to play.

Hope this helps - it is just a shot from the hip!

/sEi
RoD #3
Posted 21 June 2014 - 05:08 PM
If you register at pastebin you get a uniq ID so you can edit pastes without changing their url. And then if you make a program using HTTP contacting pastebin you 'might' get it to play.

Hope this helps - it is just a shot from the hip!

/sEi
I have and pastebin account. The problem is, if i want to change data in a paste, i need to put my account details (username and password) in the code…
Bomb Bloke #4
Posted 21 June 2014 - 06:19 PM
I suspect that if Cranium's SmartPaste isn't what you want, it'll at least demonstrate what you need to know.

Bear in mind that anonymous pastes can't be edited. Users will need a Pastebin account if they're going to use that server. The trick is to have your script ask the user which account to use…
Lyqyd #5
Posted 21 June 2014 - 06:40 PM
Pastebin is really the wrong thing to use for this, though. They'll start throttling your IP and eventually temporarily ban it if you pull down too many pastes too quickly. You'll want to set up a web server with a little php script that takes posted data and serves it up again.
RoD #6
Posted 21 June 2014 - 09:36 PM
Ok thanks guys, i will try to get a webserver :P/>