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

HTTP Post

Started by bigbrainiac10, 22 August 2014 - 11:39 AM
bigbrainiac10 #1
Posted 22 August 2014 - 01:39 PM
Hi, I'm having a bit of trouble using the post function in the HTTP api.

I know the arguments, and I've managed to use it with php

php://input

However, I want to be able access certain data using

$_POST['blah']

But the problem is, I don't actually know how to properly format a post request string.

Does anyone know how?
Lyqyd #2
Posted 22 August 2014 - 05:16 PM
You could try reading through the built-in pastebin program.
bigbrainiac10 #3
Posted 22 August 2014 - 08:26 PM
*Facepalm*

Never even thought of that… I feel dumb.

I'll go take a look now, thanks a lot. :)/>