开发者

Send device token with HTTP POST

we need to send an http post from an iphone device to our server with some info which the device token (APNS) which we want to store. How on the server 开发者_如何学Cdo you read the HTTP post and store what is in it? We just have a standard ISP hosted server which currently just has a website.

Thanks


There are many ways you could do this. You probably want to store the values in a database. Your hosting account probably has databases. Find out what database software is installed. The chances of it being MySQL http://www.mysql.com/ are high.

Depending on what you want to do with the data, a simple PHP http://php.net/index.php script that accepts POST data, parses and checks it would be fine. However, be careful. You should do some kind of authentication prior to inserting the data into the database. Or maybe the value you are sending to the server is already encrypted and you can verify it that way.

You could also use Perl, Python, Ruby, etc. It depends on what your host supports.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜