fetch_with_headers
Fetch web page content using custom HTTP headers. Specify URL, headers, and optional timeout to retrieve status, content, and response details.
Instructions
Fetches a URL with custom headers.
Args: url: The URL to fetch headers: Dictionary of custom headers timeout: Request timeout in seconds (default: 30)
Returns: Dictionary containing status_code, content, headers, encoding, and error (if any)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| headers | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||