github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/ua.fqlx (about) 1 LET url = @lab.cdn.static + '/api/ts' 2 LET ua = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) brave/0.7.10 Chrome/47.0.2526.110 Brave/0.36.5 Safari/537.36" 3 LET page = DOCUMENT(url, { 4 userAgent: ua 5 }) 6 7 LET h = ELEMENT(page, "#headers") 8 LET headers = JSON_PARSE(h.innerText) 9 10 RETURN T::EQ(ua, headers["User-Agent"][0])