Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
C#
Struct User {int id, pass};

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

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


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
 
Share this answer
 
Thank for helping me a lot.
I don't know if i could find out, but Thank a lot.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900