Page 1 of 1
POST from Pocket PC?

Posted:
Mar 18, 2004 @ 4:14am
by mlepage
What is the best way, in my game, to HTTP POST to an URL? I just need to send a single binary file, and I will get back a single number as text, which I need to check.

Posted:
Mar 18, 2004 @ 5:01am
by fzammetti

Posted:
Mar 18, 2004 @ 8:37am
by Pejo Software - Per
You should be able to use the InternetXXX functions.
I am using this in my highscore reporting system but I only use InternetOpenUrl.

Posted:
Mar 18, 2004 @ 6:09pm
by mlepage

Posted:
Mar 18, 2004 @ 9:43pm
by Presto

Posted:
Mar 18, 2004 @ 11:53pm
by mlepage
I'm using a slightly different sequence of functions, but yes that's how it seems to work. You check error codes and other error information.
I haven't tested it yet when it fails, but hopefully it won't take too long to return an error code.

Posted:
Mar 19, 2004 @ 6:12am
by mlepage
HttpSendRequest seems to take about 20s to fail if I opened an incorrect IP address. It seems fairly quick.

Posted:
Mar 19, 2004 @ 8:05am
by mlepage
Please take a moment to test my high scores upload. Concentrix BETA7 is available here:
www.scalenesoftware.com/forums/

Posted:
Mar 20, 2004 @ 2:37am
by mlepage
Here's a question I have.
The documentation says you can reuse a request for multiple HttpSendRequest so long as you read all the returned data.
I found that didn't work for me, so I did an HttpOpenRequest for each HttpSendRequest.
But I know it should work. I'm just unclear on exactly what must be read. The documentation is unclear, what do they mean?

Posted:
Mar 20, 2004 @ 5:38am
by Presto

Posted:
Mar 20, 2004 @ 6:03am
by mlepage
It seems to be working now so I probably won't touch it till people have problems with it. It's just that in my heart I know I should be reusing a connection if I can, since it's wasteful otherwise. I just wish the docs were clearer on exactly what to do to reuse a request, instead of just hinting at it as if my name were Tantalus.

Posted:
Mar 21, 2004 @ 7:47am
by mlepage