HTTP Request Host, Method, Path, URI and Query Fields
How HTTP host, method, path, URI, query, and referer appear in edge rules, gateway policies, and request logs—and when raw vs normalized values matter.
This page brings together Cloudflare documentation on the parts of an HTTP request—hostname, method, path, full URI, query string, referrer, and related headers—and how those values are named in the Ruleset Engine, Zero Trust HTTP policies, cache configuration, and Logpush datasets. The same ideas show up when you write a firewall expression, ship security logs to a SIEM, or debug why a rule “sees” a different host than your origin receives.
http.host: hostname on the request (Host header)
Section titled “http.host: hostname on the request (Host header)”The Ruleset Engine field http.host is the hostname used in the full request URI. Cloudflare states that it contains the Host header from the original client request:
The hostname used in the full request URI.
The http.host field contains the Host header from the original client request.
— Cloudflare,
http.host
If Origin Rules change the hostname sent to the origin, that change is not reflected in http.host for later phases (custom rules, cache rules, transform rules, or Workers). Rule evaluation uses the original, unmodified host—an important exception when troubleshooting “my origin got internal.example but my rule still matches www.example.”
In Logpush, the same idea appears under different names depending on the dataset, for example ClientRequestHost on HTTP Requests (“Host requested by the client”), HTTPHost on Gateway HTTP (“Content of the host header in the HTTP request”), and EdgeRequestHost for the host header on the request from the edge to the origin. For cache partitioning, Cache keys explain that Host in the cache key can follow the original host (resolved: false) or the resolved host used to reach the origin (resolved: true), which may differ after Origin Rules.
Load balancer and health-check docs repeatedly point to host-header mismatches: Common error codes and Health Checks analytics both advise you to set the host header on the monitor or health check object when probes fail. Cloudflare Tunnel origin parameters document HTTP Host Header (httpHostHeader) for setting the Host header on requests to the local service.
When to match on host in policies and logs
Section titled “When to match on host in policies and logs”HTTP policies do not expose a separate “host” row in the cluster snippet, but Gateway HTTP logs store HTTPHost for inspection. For expression-based rules at the edge, prefer http.host (or raw counterparts below) rather than guessing from URL strings alone.
http.request.method: GET, POST, and other verbs
Section titled “http.request.method: GET, POST, and other verbs”The field http.request.method returns the HTTP method as an uppercase string:
The HTTP method, returned as a string of uppercase characters.
— Cloudflare,
http.request.method
Example value in the reference: "GET".
Zero Trust HTTP policies map the UI label HTTP Method to http.request.method == "GET". Legacy Rate Limiting could scope rules to POST or GET, or match all methods (__ALL__ when none is specified).
Logpush mirrors this as ClientRequestMethod / HTTPMethod on datasets such as HTTP Requests, Firewall Events, and DEX Application Tests (“HTTP test method. HTTP tests only.”).
Schema.org defines httpMethod for structured data: an HTTP method appropriate for a request to an HTTP EntryPoint, with “values are capitalized strings as used in HTTP.” That is metadata vocabulary, not edge rule syntax, but the capitalization rule matches Cloudflare’s string form.
Chrome’s extension APIs (declarativeNetRequest, webRequest) describe RequestMethod as the HTTP method of a network request in the browser—a different runtime, same field semantics for filtering and logging inside the client.
Path, query, and URI: what “URL” means in rules
Section titled “Path, query, and URI: what “URL” means in rules”People often say “URL” when they mean only the path, or only path plus query. Cloudflare splits these explicitly.
http.request.uri.path (path only)
Section titled “http.request.uri.path (path only)”The URI path of the request.
— Cloudflare,
http.request.uri.path
Example: "/articles/index". Logpush HTTP Requests defines ClientRequestPath as the path without the query string.
HTTP policies use URL Path with http.request.uri.path == "/foo/bar".
http.request.uri.query (query without ?)
Section titled “http.request.uri.query (query without ?)”The entire query string, without the ? delimiter.
— Cloudflare,
http.request.uri.query
Example: "section=539061&expand=comments". Firewall and HTTP request logs expose referer query separately (ClientRefererQuery) when you need the referring page’s query, not the current request’s.
http.request.uri (path + query)
Section titled “http.request.uri (path + query)”The URI path and query string of the request.
— Cloudflare,
http.request.uri
Example: "/articles/index?section=539061&expand=comments". Policies label URL Path and Query as http.request.uri.path_and_query and URL Query as http.request.uri.query.
http.request.full_uri (scheme, host, path, query)
Section titled “http.request.full_uri (scheme, host, path, query)”The full URI as received by the web server.
The value will not include the #fragment part, which is not sent to web servers.
— Cloudflare,
http.request.full_uri
Example: "https://www.example.org/articles/index?section=539061&expand=comments". Logpush ClientRequestURI is described as the full path and query of the requested URL; scheme and host appear in separate fields (ClientRequestScheme, ClientRequestHost).
http.request.uri.path.extension
Section titled “http.request.uri.path.extension”For file-type style rules, the extension field is the lowercased segment after the last dot in the path (no dot), with special cases for hidden paths like /.mp3:
The lowercased file extension in the URI path without the dot (.) character.
— Cloudflare,
http.request.uri.path.extension
Use this when blocking by extension rather than parsing http.request.uri.path manually.
Referrer, cookies, protocol version, and forwarded client IP
Section titled “Referrer, cookies, protocol version, and forwarded client IP”Referer: http.referer is the Referer header—the linking page’s address (http.referer). Firewall Events split referer into ClientRefererHost, ClientRefererPath, ClientRefererQuery, and ClientRefererScheme for analytics.
Cookies: http.cookie is the entire Cookie header as one string (http.cookie). Parsed cookie maps in HTTP Requests (Cookies object) require Logpush Custom fields configuration.
HTTP version: http.request.version (for example HTTP/1.1, HTTP/3) is documented at http.request.version. Logpush uses ClientRequestProtocol on HTTP and firewall datasets.
X-Forwarded-For: http.x_forwarded_for is the full header value (http.x_forwarded_for), for example "203.0.113.195, 70.41.3.18".
Request/response headers in logs: RequestHeaders and ResponseHeaders on HTTP Requests are also tied to Custom fields setup.
Raw fields (raw.http.request.*): immutable original values
Section titled “Raw fields (raw.http.request.*): immutable original values”Transformed URIs can change as rules run. Fields prefixed with raw. keep the original request values for later evaluations; they are immutable for the whole request workflow and unaffected by earlier matched rules.
For example, raw.http.request.full_uri:
The raw full URI as received by the web server without any transformation.
This is the raw field version of the http.request.full_uri field. Raw fields, prefixed with raw., preserve original request values for later evaluations.
— Cloudflare,
raw.http.request.full_uri
The same pattern applies to raw.http.request.uri, raw.http.request.uri.path, raw.http.request.uri.query, and raw.http.request.uri.path.extension.
Cloudflare notes that raw fields may still reflect basic HTTP server normalization and that behavior could change in the future—do not assume byte-for-byte equality with the client wire format.
Logpush and analytics: naming map for the same request
Section titled “Logpush and analytics: naming map for the same request”Security and traffic datasets reuse the same HTTP concepts with product-specific column names. The table below is a practical map when correlating a WAF expression with a log column (account vs zone dataset pages are parallel for several types).
| Concept | Ruleset Engine (examples) | Logpush / product (examples) |
|---|---|---|
| Client hostname | http.host |
ClientRequestHost, HTTPHost, ClientRequestHost (WebSocket) |
| HTTP method | http.request.method |
ClientRequestMethod, HTTPMethod |
| Path only | http.request.uri.path |
ClientRequestPath, ClientRefererPath (referer, not request) |
| Path + query | http.request.uri |
ClientRequestURI (path + query; host/scheme separate) |
| Full URI | http.request.full_uri |
Combine scheme, host, and URI fields in HTTP Requests |
| Referer URL parts | http.referer (full header) |
ClientRefererHost, ClientRefererScheme, etc. on Firewall Events |
| Edge → origin host | (not http.host after origin rewrite) |
EdgeRequestHost on HTTP Requests |
Gateway HTTP adds proxy-centric fields such as URL, Referer, RedirectTargetURI, and ProxyEndpoint. Core Web Vitals records Path as “the URL path at the time the Core Web Vitals are captured”—analytics path, not the full ruleset URI object.
Workers Tail Handler redacts sensitive headers and ID-like URL substrings in trace events by default; getUnredacted() returns full TailRequest data when you intentionally need unredacted properties—relevant when validating request URLs in Worker logs without leaking tokens.
Common mistakes
Section titled “Common mistakes”- Matching
http.request.uri.pathwhen the query matters — usehttp.request.uri,http.request.uri.path_and_queryin Gateway policies, orhttp.request.full_uriwhen the scheme and host matter. - Assuming
http.hostchanges after Origin Rules — it stays the client’s original host for rule phases; useEdgeRequestHostin logs or origin parameters for downstream host behavior. - Expecting
#fragmentin any server-side field — fragments are client-only. - Treating Logpush
ClientRequestURIas a browser-visible full URL — it is path and query; combine with scheme and host fields. - Relying on
Cookies/RequestHeadersin HTTP Requests without Custom fields — those objects are empty unless configured. - Using transformed URI fields after rewrite rules — for forensic “what did the client send?” use
raw.http.request.*.
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open Security → WAF → Custom rules (or the relevant ruleset) and confirm expressions use the field names from the Ruleset Engine field reference (for example
http.request.method,http.request.uri.path). - Send a test request with a known path and query, then inspect a matching event in Firewall Events Logpush or Log Explorer and compare
ClientRequestPath,ClientRequestURI, andClientRequestHostto what you used in the rule. - If you use Origin Rules or cache key Resolved host, compare
http.hostin a rule withEdgeRequestHostand cache behavior per Cache keys. - For Zero Trust, verify Gateway HTTP log fields (
HTTPMethod,HTTPHost,URL) against your HTTP policies selectors. - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match the official docs or your observed log fields, email yimasynthetic@gmail.com with the page URL and the exact statement you think is wrong so it can be corrected.