Page 1 of 1
HTTP communication between servers.
Posted: Thu Nov 15, 2007 7:22 am
by claws
hi everyone.
http
browser <-----------> server
browser is nothing but a http client = communicates using HTTP.
http http
browser ----------> server -----------> server
can we some how implement the second stage of above communication?
i mean if using server side laguage.. in the page that is requested for if it in turn requests some other server and sends the data to the client that it fetched from other server.
is it feasible? possible ? if so.. how?
Posted: Thu Nov 15, 2007 10:10 am
by Jenk
Yes, it is.
SOAP, REST, RPC (XML or other), etc. have been using communication over http for years.
Posted: Thu Nov 15, 2007 10:45 pm
by claws
thanks
yeah i dont know about these. definitely i will learn all these. but i have a small doubt. using this can i fetch anything i want. are these as good as HTTP.
like fetching an object that is pointed by URL.
SOAP, REST, RPC (XML or other), etc. have been using communication over http for years.
can you please remove that
etc. and then tell what else are available.
sorry. its not that i want spoon feeding. i don't know what are all the technologies are available.
so.. for me to google also. i need to know atleast the name of technology
so, can you please tell me the technologies till date to implement this type of communication.
pointing to some other page would be more help ful
Posted: Fri Nov 16, 2007 3:14 am
by Chris Corbyn
claws wrote:thanks
yeah i dont know about these. definitely i will learn all these. but i have a small doubt. using this can i fetch anything i want. are these as good as HTTP.
like fetching an object that is pointed by URL.
SOAP, REST, RPC (XML or other), etc. have been using communication over http for years.
can you please remove that
etc. and then tell what else are available.
sorry. its not that i want spoon feeding. i don't know what are all the technologies are available.
so.. for me to google also. i need to know atleast the name of technology
so, can you please tell me the technologies till date to implement this type of communication.
pointing to some other page would be more help ful
SOAP is an complete protocol for using services wrapped around http.
REST is a standard way of accessing services with HTTP (typically using XML or JSON).
RPC is just a fancy way of saying that one server commincates with another over HTTP.
If you're wondering how to connect to a server using HTTP from a PHP script without worrying about if you're using REST or SOAP etc then you have a few options:
file_get_contents() or fopen() for really basic reads.
curl_*() (The cURL library functions) for advanced connectivity.
fsockopen() if you really want to get muck under your fingernails.