Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / New HTTP Command Syntax?

Author
Message
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 15th Apr 2012 05:27 Edited at: 15th Apr 2012 05:28
I'm working on a server side solution to storing high score/player IP address data but I'm wondering what http commands will be available in 1.07 and how they will function. I know there is no set date yet for the release however I'm wondering if we can get a break down on how the http command set works and maybe their syntax. Is it just a basic GET request with response? Or maybe something more fancy?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Apr 2012 20:05 Edited at: 16th Apr 2012 20:06
You will be able to send POST data and files to the server. The full HTTP command set is as follows (taken from the tier 2)

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 16th Apr 2012 22:38
Sounds very interesting.

So these commands will basically communicate with PHP scripts on a server amongst other things?

If yes, then I will surely make good use of them!!!
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 17th Apr 2012 00:54
Yes, you can send PHP variables by sending POST data like so "myvar=1.4&var2=test". The POST data is not modified in any way so if you want to send special characters in the variables you'll have to escape it first.
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 17th Apr 2012 07:39 Edited at: 17th Apr 2012 07:59
Awesome! I'm just using web forms right now to replicate what AppGameKit apps will be sending but now that I know what commands I'll have at my disposal this will help in testing.

I did notice that on the SetHTTPHost Command there is an optional field for iSecure, would that happen to be a flag for encryption IE HTTPS?
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 17th Apr 2012 12:05 Edited at: 17th Apr 2012 12:06
It looks like it! Wonderful!

Also asynchronous transfer, sweeeet!

How will AppGameKit behave if you use a self-signed SSL cert?

Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 17th Apr 2012 18:42
Quote: "there is an optional field for iSecure, would that happen to be a flag for encryption IE HTTPS?"


Yes, HTTPS is supported on all platforms.

Note that the username + password optional sometimes used by web servers to limit file access is not supported on all platforms (only Windows).

Quote: "How will AppGameKit behave if you use a self-signed SSL cert?"


It doesn't do any certificate validation so it will accept any certificate for encryption.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 18th Apr 2012 01:56 Edited at: 18th Apr 2012 02:01
Can you include a command to view the fingerprint as a string?

Something like: string GetSSLFingerprint(UINT iHTTP)

This way we can do our own verification and keep people doing in-game purchases nice and secure.

Attached you'll see an example of a fingerprint. You can view it in firefox by viewing the certificate.

(Fingerprint verification is the most important part of a securing a session. Without it, a man in the middle attack is easily possible)

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 19th Apr 2012 01:18
It looks like it may be easier to turn on SSL checking than get anything out of the certificate. I'll investigate when I get some time.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 19th Apr 2012 14:45
That's a shame. You'd think these device api developers would make things easy for people. Ah well. Anyway, thanks for taking our feedback! AppGameKit is really turning out to be something special!

Marla
12
Years of Service
User Offline
Joined: 7th Dec 2011
Location:
Posted: 30th Apr 2012 16:47
Hi,

when will the HTTP commands be available?

Thank you,

Olaf
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Apr 2012 19:09
April 2012... oh wait ;P

Version 107 is very, very nearly ready... we're all waiting for its imminent release. Hopefully any day now but there's no fixed date.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Apr 2012 21:43
April is over Baxslash!!!!

Let's start complaining about 108!!! will it be ready by xmas?!!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Apr 2012 22:35
[quoteApril is over Baxslash[/quote]
I know, that was the joke

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Apr 2012 23:01
I'm glad April is over, I was fed up counting the days! Means 107 will be soon out!
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 2nd May 2012 06:28
i was wondering if a "HTTP Port" parameter was possible to set ? i have tried to add a ":8080" to the host part but with no success

Login to post a reply

Server time is: 2024-04-19 04:39:10
Your offset time is: 2024-04-19 04:39:10