Skip to main content

USER_AGENT

Constant USER_AGENT 

Source
pub const USER_AGENT: &str = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36";
Expand description

The user agent both paths send.

A tool-shaped agent (webfetch/0.1.x) is refused or challenged by a large share of CDNs, which turns an ordinary fetch into an empty page. The search path already sent a browser agent for exactly this reason; the fetch path did not, and the mismatch was the single most common cause of a 403.