http-request tagged requests and articles

Categorized request examples and articles tagged with [http-request] keyword
Curl CORS Request
An example of sending a Curl request with the CORS Origin header (Cross-Origin Resource Sharing request). For CORS requests, the Origin header indicates where the request is coming from. In this Curl CORS Request example, the Origin header is passed to the server with the -H "Origin: https://example.reqbin.com" command-line option.

HTTP DELETE Method
The HTTP DELETE method is used to delete a resource from the server. Unlike GET and HEAD requests, the DELETE requests may change the server state.

HTTP POST
The HTTP POST method is used to send data to the server. The type and size of data are not limited but you must specify the data type in the Content-Type header and the data size in the Content-Length header fields. The HTTP POST method is not idempotent, which means that sending an identical POST request multiple times may additionally affect the state or cause further side effects.

HTTP GET
The HTTP GET method is used to request a resource from the server. The GET requests cannot have a message body but you still can send data to the server using the URL parameters. HTTP GET requests should only receive data (the server must not change its state). If you want to change data on the server, use POST, PUT, PATCH or DELETE methods.

HTTP PUT Request
The HTTP PUT method is used to update an existing resource on the server, while the POST method creates or adds a resource on the server. The HTTP PUT method is defined as idempotent, which means that multiple identical PUT requests should have the same effect as a single request.

HTTP HEAD Request
The HTTP HEAD method is used to retrieve HTTP headers from the server. The server does not return the message body in the response.

HTTP OPTIONS Method
The HTTP OPTIONS method describes the communication options for the target resource. Browsers send the HTTP OPTIONS request to find out HTTP methods and other options supported by a web server as a 'preflight' request to send data to another domain.

HTTP PATCH Method
The HTTP PATCH method applies partial modifications to existing resources, unlike the HTTP PUT that performs a complete replacement of resources.

HTTP Methods
The HTTP method indicates the action that the request wants to perform on the requested resource.

Cross-Origin Resource Sharing (CORS)
Cross-Origin Resource Sharing (CORS) is a mechanism that provides secure communication between browsers and servers running on different origins (on different hostnames or protocols) using additional HTTP headers.

HTTP TRACE Method
The HTTP TRACE method is used to debug web server connections by returning the full HTTP request to the client for proxy-debugging purposes.