views:

77

answers:

4

I'd like to make an HTTP request to a remote server and want to get reply back.

How can I connect to server and how to read the xml file response.

+2  A: 

See http://www.w3schools.com/ajax/ajax_server.asp for a simple example

Jonathan Fingland
+1  A: 

Here's a good beginner tutorial on AJAX / XMLHTTPRequest.

Cerebrus
A: 

The easiest way to generate a request to a web server and get a response back is to use a web browser - if you know the URL of the web service that is supplying the XML data, just navigate to that URL in the browser. Note that this makes a few assumptions; for example, that the web service responds to GET requests (as opposed to POST, or other HTTP verbs). If you clarify the scenario some more, we can provide more detailed guidance.

Bruce
+1  A: 

You can try with a very simple test using telnet

telnet google.com 80
GET /path/to/file/index.html HTTP/1.0
Hendra Saputra

related questions