HEAD Request

This operation makes a HEAD request to the specified url.

📘

Note: This operation is part of the HTTP Book (BDK). To use this book, you need to first learn it in your agent.

Input Concepts

ConceptDescriptionTypeRequired
urlThe URL to make the HEAD request to.textYes
headersThe headers to include in the request. For example {"Authorization": "Bearer <token>"}. Note: If connect is set, the "Authorization" header will be added automatically to the request, and a manually set "Authorization" header will be ignored.No

Output Concepts

ConceptDescriptionType
answerThe response from the HEAD request.file or list of ortext

Examples

  1. Get the headers of a post
head "https://jsonplaceholder.typicode.com/posts/1"
  1. Get the headers that have an Authentication header
create a json
use the above as the headers input
set the headers input's "Authentication" to "Bearer <token>"
head "https://jsonplaceholder.typicode.com/posts/1"
... the headers is the headers input