GET

GET Method

Subject to authorization, the HTTP GET method works in Pagelove as per the HTTP specification.

When a selector range unit is used alongside the PUT method, if the requested node is present in the document, only the requested node is returned to the client as a part of the body.

If the HTTP request is successful, the client receives a 206 Partial Content message back from the server. The response headers will include a Content-Range header that indicates the element that has been modified with the Content-Range header, and the body of the message set to the serialized HTML of the element.

For example, the following curl command:

% curl -si https://docs.pagelove.org/http/GET-method/ -H 'Range: selector=h1' 
HTTP/2 206 
date: Thu, 15 Jan 2026 13:27:54 GMT
content-type: text/html; charset=utf-8
content-length: 22
content-range: selector h1
etag: "gen-1"
x-azure-ref: 20260115T132754Z-r1bbfbd7bd7frnzbhC1LON0x7000000014x00000000042np
x-cache: CONFIG_NOCACHE


<h1>Introduction</h1>%

If the request refers to a resource that doesn't exist, a 404 Not Found is returned. If the resource exists, but the CSS selector is invalid, a 416 Range not Satisfiable message is sent.