how do I handle http.post requests server side?
0
http post
Started by roger109z, Aug 28 2016 07:06 PM
10 replies to this topic
#1
Posted 28 August 2016 - 07:06 PM
#2
Posted 28 August 2016 - 07:21 PM
What type of server are you using? PHP? Java? Something else? It varies depending on the language.
#3
Posted 28 August 2016 - 07:23 PM
php it interacts with CC the best (as far as I know)
#6
Posted 28 August 2016 - 08: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.
#7
Posted 28 August 2016 - 08:48 PM
why thank you good person
#8
Posted 30 August 2016 - 11:55 PM
Edited by Incinirate, 04 September 2016 - 02:10 AM.
#9
Posted 31 August 2016 - 12:06 AM
That's no longer the case, as far as I'm aware.
#10
Posted 31 August 2016 - 01:14 AM
Incinirate, on 30 August 2016 - 11:55 PM, said:
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".
#11
Posted 04 September 2016 - 01: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 by Incinirate, 04 September 2016 - 02:10 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users