This site is no longer active and is available for archival purposes only. Registration and login is disabled.

POST from Pocket PC?


POST from Pocket PC?

Postby mlepage » Mar 18, 2004 @ 4:14am

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.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby fzammetti » Mar 18, 2004 @ 5:01am

Attachments
Read Web Site And Write Out HTML.zip
(128.94 KiB) Downloaded 289 times
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Pejo Software - Per » Mar 18, 2004 @ 8:37am

You should be able to use the InternetXXX functions.
I am using this in my highscore reporting system but I only use InternetOpenUrl.
User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby mlepage » Mar 18, 2004 @ 6:09pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Presto » Mar 18, 2004 @ 9:43pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby mlepage » Mar 18, 2004 @ 11:53pm

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.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Mar 19, 2004 @ 6:12am

HttpSendRequest seems to take about 20s to fail if I opened an incorrect IP address. It seems fairly quick.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Mar 19, 2004 @ 8:05am

Please take a moment to test my high scores upload. Concentrix BETA7 is available here:

www.scalenesoftware.com/forums/
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Mar 20, 2004 @ 2:37am

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?
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Presto » Mar 20, 2004 @ 5:38am

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby mlepage » Mar 20, 2004 @ 6:03am

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.
www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby mlepage » Mar 21, 2004 @ 7:47am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron