Sintaxe
M
Web.Headers(url as text, optional options as nullable record) as recordParâmetros
- urltextObrigatório
URL cujos cabeçalhos serão obtidos.
M"https://www.bing.com"- optionsnullable recordOpcional
Registro opcional com propriedades da requisição HTTP.
M[RelativePath = "search", Query = [q = searchText]]
Retorna
recordExemplo
M
let
searchText = "Power Query"
in
Web.Headers(
"https://www.bing.com",
[
RelativePath = "search",
Query = [q = searchText]
]
)Resultado
M
([
#"Cache-Control" = "private, max-age=0",
#"Content-Encoding" = "gzip",
#"Content-Length" = "0",
#"Content-Type" = "text/html; charset=utf-8",
Date = "Tue, 14 Dec 2021 16:57:25 GMT",
Expires = "Tue, 14 Dec 2021 16:56:25 GMT",
Vary = "Accept-Encoding"
]
meta [
Response.Status = 200
])Mais informações
- Subgrupo
- Web