PDF Authentication & Headers
Generate PDFs from password-protected websites using HTTP Basic Authentication and custom user agent headers. Access internal applications and authenticated content.
Configure authentication and custom headers for generating PDFs from protected content, internal applications, and sites requiring specific browser identification.
Authentication Options
HTTP Basic Authentication (httpAuth)
- Default: None
- Description: Provides HTTP Basic Authentication credentials
- Format:
base64url(username:password) - Example:
httpAuth=YWRtaW46c2VjcmV0MTIz
Custom User Agent (userAgent)
- Default: Standard Chrome user agent
- Description: Override the browser's user agent string
- Format: Base64URL encoded string
- Example:
userAgent=TW96aWxsYS81LjAgKGN1c3RvbSBib3Qp
Usage Examples
Basic Authentication
https://cdn.capture.page/KEY/HASH/pdf?url=https://protected.example.com&httpAuth=YWRtaW46cGFzc3dvcmQCustom User Agent
https://cdn.capture.page/KEY/HASH/pdf?url=https://example.com&userAgent=TW96aWxsYS81LjAgKGJvdCkgQXBwbGVXZWJLaXQCombined Authentication
https://cdn.capture.page/KEY/HASH/pdf?url=https://internal.app.com&httpAuth=YWRtaW46c2VjcmV0&userAgent=Q3VzdG9tQm90LzEuMAPDF Storage Options
Integrate PDF generation with AWS S3 storage. Configure custom filenames, access control lists (ACL), automatic redirects, and upload management for seamless delivery.
PDF Timing Options
Perfect PDF generation timing with custom delays up to 60 seconds. Control cache invalidation with timestamps for fresh PDFs from dynamic and JavaScript-heavy pages.