如何在php web和WP7应用程序之间传递参数? [英] How to pass arguments between php web and WP7 application?

查看:144
本文介绍了如何在php web和WP7应用程序之间传递参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的大家,
我正在使用WP7应用程序和PHP服务器.
我想知道如何在PHP和WP7应用之间对话"?
我可以从PHP服务器向WP7服务器传递参数或参数列表(它是构造函数)吗?
就是这样:

Dear everyone,
I am working with my WP7 application and PHP server.
I wonder how to "talk" between PHP and WP7 app??
Could i pass an arguments or list of arguments(which is constructor) from PHP server to WP7 server???
it is as this:

Struct User {int id, pass};


如果有人知道,请教我.
非常感谢您的帮助.


If someone know, please teach me.
Thank a lot for helping me.

推荐答案

这是最常见的问题,最简单的答案是USE URI.

如果您请求具有正确URL的HTTP服务器,则您的http服务器将在不知道要求谁的情况下做出响应(通过知道我的意思是编程语言,但是有时必须知道谁在要求但与编程语言无关.).即使您开发了一个与PHP脚本基础服务器进行通信的C程序,并以适当的方式询问它,它也会响应.

URL的一个简单示例是

www.someone.com?with=something&alsowith=otherthing


当您请求该网址时,您的浏览器(包含许多其他信息)将生成以下请求:

This is the most common question with the most simple answer is USE URI.

if you request an HTTP server with proper URL then your http server will response without knowing who asked for(by knowing I mean programming language, but sometime it is important to know who is asking for, but yet not related to programming language. ). Even if you develop a C Program to communicate with a PHP script base server and ask it in proper manner it will response.

A simple example of URL is

www.someone.com?with=something&alsowith=otherthing


when you would request that url then your browser (with lots other info) will generate below request:

GET /with=something&alsowith=otherthing HTTP/1.1
Host: www.someone.com



现在,无论您使用哪种语言,您的程序都将通过端口80(可以不同)连接到www.someone.com,然后发送上述请求,您的http服务器将做出响应.实际上,此答案无济于事,请了解有关客户端/服务器应用程序和HTTP服务器的更多信息.



Now Your program, whatever the language is, will connect to www.someone.com with port 80(it can be different) and then send above request and your http server will response. as a matter of fact this answer wont help you, learn more about client/server Application and HTTP server


感谢您的帮助.
我不知道是否能找到答案,但是非常感谢.
Thank for helping me a lot.
I don''t know if i could find out, but Thank a lot.


这篇关于如何在php web和WP7应用程序之间传递参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆