This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
http post
Started by roger109z, 28 August 2016 - 06:06 PMPosted 28 August 2016 - 08:06 PM
how do I handle http.post requests server side?
Posted 28 August 2016 - 08:21 PM
What type of server are you using? PHP? Java? Something else? It varies depending on the language.
Posted 28 August 2016 - 08:23 PM
php it interacts with CC the best (as far as I know)
Posted 28 August 2016 - 08:46 PM
Posted 28 August 2016 - 09:41 PM
ComputerCraft's http.post() sends a generic POST request to the server, so a simple Google search of "How to handle post request in PHP" should give you enough information about how to handle it.
Posted 28 August 2016 - 09:48 PM
why thank you good person
Posted 31 August 2016 - 12:55 AM
Edited on 04 September 2016 - 01:10 AM
Posted 31 August 2016 - 01:06 AM
That's no longer the case, as far as I'm aware.
Posted 31 August 2016 - 02:14 AM
That's false, I can connect to https twitter, and as far as I know it's https only, Wiresharks also tells me that the connection was made over TLS.Just something to keep in mind, cc can't make https requests, any attempt to route traffic through https will be redirected to http.
The only issue I had with https pages not loading in CC (and OC for that matter) is when a certificate is signed with an authority that isn't in Java's truststore, such as "Let's Encrypt".
Posted 04 September 2016 - 02:32 AM
Hm, very strange, last time I checked, my traffic was re-routed through http, I knew this because the server I was interfacing with rejects plain http. Although it's probably because I was using an emulator, I'll test it in-game real quick and edit my post.
Edit: Yep, just tested in-game and it works, please disregard my previous post.
Edit: Yep, just tested in-game and it works, please disregard my previous post.
Edited on 04 September 2016 - 01:10 AM