Glossary
GET request: asking a server for something
A GET request is the HTTP method for reading a resource: the client names a URL, optionally with query parameters, and the server returns a representation of it.
Semantics
HTTP defines GET as safe and idempotent. Safe means it should not change anything on the server; idempotent means sending it twice has the same effect as sending it once. These are promises the server makes, and clients, proxies and caches rely on them: a browser will happily prefetch a GET link, a crawler will retry a failed GET without asking, and a cache may serve a stored copy. When a site breaks the promise (a GET link that deletes something), automation can cause damage, which is one reason crawlers should stay away from admin paths.
The query string
GET has no meaningful body in practice, so inputs travel in the URL after a question mark: /search?q=red+shoes&page=2&sort=price. Each name and value must be percent encoded; a space becomes %20 or +, an ampersand inside a value becomes %26. Let your library build the string instead of concatenating it by hand.
const url = new URL("https://shop.example/search");
url.search = new URLSearchParams({ q: "red shoes & boots", page: "2" }).toString();
console.log(url.href);
// https://shop.example/search?q=red+shoes+%26+boots&page=2
Repeated keys (?tag=a&tag=b) and bracket styles (?tag[]=a) both appear in the wild; match whatever the site's own front end sends.
Length and visibility
URLs end up in server logs, browser history and the Referer header of the next request. Never put secrets in a GET query if you can avoid it. Very long URLs also run into limits in servers and proxies, commonly somewhere in the thousands of characters, so large inputs belong in a POST body.
Caching and conditional requests
GET responses can be cached. A server sends ETag or Last-Modified; the client asks again with If-None-Match or If-Modified-Since, and receives 304 Not Modified if nothing changed. For a scraper that revisits the same pages, conditional requests save bandwidth for both sides and lower your footprint on the site.
GET and CAPTCHA tokens
Most sites send solved tokens in a POST, but not all. Some search pages and JSON endpoints expect a reCAPTCHA or Turnstile token as a query parameter on a GET. Look at the page's own request in the Network panel: if the token appears in the URL, encode it properly with your library, because tokens contain characters that must be escaped. Use each token once and soon; a reCAPTCHA v3 token, which usually arrives under 3 seconds, is valid for about two minutes.
On the GateSolver side, the main API uses POST for everything. The in.php compatible format accepts GET requests for result checks (res.php?action=get), which some older tools rely on; see the API docs.
Common questions
Can a GET request have a body?
The specification gives a GET body no defined meaning, and many servers ignore or reject it. Put inputs in the query string.
What does idempotent mean for GET?
Sending the same GET twice has the same effect on the server as sending it once, so it is safe to retry.
How do I encode special characters in a query string?
Use your library or URLSearchParams to percent encode names and values instead of concatenating strings.
Should API keys go in a GET query string?
Avoid it. URLs are logged and leaked through referrers; send keys in a POST body or header where possible.
What is a 304 response to a GET?
Not Modified: your cached copy, identified by ETag or date, is still current, so no body is sent.
Keep reading
- POST requestThe HTTP method for sending data in a request body, with JSON and form encodings compared and createTask as an example.
- REST APIThe resource oriented style of web API built on URLs, HTTP methods and status codes, usually exchanging JSON over HTTPS.
- IdempotencyThe property that repeating an operation has the same effect as doing it once, and why it decides which retries are safe.
- API endpointA specific URL and method an API answers on, plus how endpoints are grouped, versioned and described in documentation.