HTTP Headers Detection
This page displays information about the HTTP headers sent with the request.
Page Information
- Feature: HTTP Headers Detection
- Purpose: Testing request_headers parameter
This page will analyze the HTTP headers sent with the request and display them.
Your HTTP Headers
Testing Instructions
When testing the screenshot service with this page:
- First take a screenshot with the default headers to establish a baseline.
- Then set the
request_headers parameter in your screenshot request to include custom headers.
- Verify that the screenshot shows the custom headers in the list.
Sample API Requests:
POST /v1.0/screenshot
{
"url": "http://localhost:8000/detect-headers",
"format": "png"
}
POST /v1.0/screenshot
{
"url": "http://localhost:8000/detect-headers",
"format": "png",
"request_headers": [
"X-Custom-Header: TestValue",
"X-Test-Header: AnotherValue"
]
}
Common HTTP Headers
Here are some common HTTP headers you might see:
Request Headers
- User-Agent: Identifies the client software
- Accept: Media types the client can process
- Accept-Language: Preferred languages
- Accept-Encoding: Acceptable content encodings
- Connection: Connection management options
- Cookie: Stored HTTP cookies
- Host: Target host and port
- Referer: Previous web page
Response Headers
- Content-Type: Media type of the content
- Content-Length: Size of the content in bytes
- Server: Server software identification
- Set-Cookie: Sets an HTTP cookie
- Cache-Control: Caching directives
- Expires: Date/time after which the response is considered stale
- Last-Modified: Last modification date of the resource
Custom Header Tester
Use this form to create a URL that will test custom headers: