Send Request to Server [JavaScript/AJAX Code]

An example of sending a request to the server. In this Send Request to Server example, the Accept: */* request header tells the server that the client accepts any media type. The Content-Type: text/html response header informs the client that the server returned HTML. The JavaScript/AJAX code was automatically generated for the Send Request Server example.
Send Request to Server [JavaScript/AJAX Code] Send
GET /echo HTTP/1.1
Host: reqbin.com
Accept: */*

Updated: Viewed: 3129 times
JavaScript/AJAX code for Send Request Server example

JavaScript/AJAX code for Send Request Server Example

This JavaScript/AJAX code snippet was generated automatically for the Send Request Server example.
<< Back to the Send Request Server example

Generate code snippets for JavaScript/AJAX and other programming languages

Convert your Send Request Server request to the PHP, JavaScript/AJAX, Curl/Bash, Python, Java, C#/.NET code snippets using the JavaScript/AJAX code generator.