October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Use Urlbox to Screenshot Pages Behind HTTP Basic Authentication

Use Urlbox’s header render option to send HTTP Basic Authentication credentials to a protected page, while authenticating separately to the Urlbox API.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a page protected by HTTP Basic Authentication with Urlbox, Base64-encode the complete username:password pair and pass it as the destination page’s Authorization header using Urlbox’s header render option. Separately, authenticate your Urlbox API request with your Urlbox project secret as a Bearer token. These are two different credentials for two different systems.

Send Basic Authentication credentials to the destination page

Urlbox’s guide demonstrates a synchronous JSON request to https://api.urlbox.com/v1/render/sync. For its example destination, https://httpbin.org/basic-auth/foo/bar, the credentials are foo:bar. Base64-encoding the entire string, including the colon, produces Zm9vOmJhcg==. Urlbox’s render options then include "header": "Authorization=Basic Zm9vOmJhcg==" and "full_page": true. Use credentials for a site you are authorized to access; the example pair is illustrative, not a credential for other sites. Urlbox’s guide describes this pattern.

Keep the two authorization layers separate

  1. Urlbox API authorization: send Authorization: Bearer YOUR_URLBOX_SECRET as an HTTP header on the request to Urlbox.
  2. Destination-page authorization: set the Urlbox render option header to Authorization=Basic BASE64_USERNAME_COLON_PASSWORD. Urlbox applies this header when loading the destination URL.

The Urlbox secret grants access to the API; the Basic credentials grant access to the protected page. Do not put the destination password in the Urlbox API Bearer token, or use your Urlbox secret as the destination’s Basic credentials. Urlbox’s API-authentication documentation describes the Bearer-token layer: Urlbox API documentation.

Check that your Urlbox plan includes the header option

Urlbox’s render-options documentation lists the header option as requiring a HiFi plan. Check the entitlement on the account you will use before building a workflow around it; plan details can change. See Urlbox render options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall

Distinguish Basic Authentication from a login form

Use the Basic header method when the site uses HTTP Basic Authentication—typically, the browser displays its built-in username-and-password prompt. A normal webpage login form is different: submitting the form usually establishes a session represented by one or more cookies. Sending a Basic header to such a page will not, by itself, log in.

  • HTTP Basic Authentication: encode username:password and send Authorization: Basic … through Urlbox’s header render option.
  • Form-based session: log in through the site’s normal process and provide the relevant session cookies using Urlbox’s cookie option. Treat session cookies as credentials and protect them accordingly.
  • Site-supported token or header: use one only if the destination explicitly supports it. If you control the site, Urlbox’s guide recommends a rotating temporary token in an Authorization header when possible.

Urlbox documents both header and cookie render options in its render-options reference. A URL parameter can work only if the target application supports that authentication method; it is generally a poor place for credentials because URLs may be logged.

Rank #2
Dell Latitude 3190 11.6" HD 2-in-1 Touchscreen Laptop Intel N5030 1.1Ghz 4GB Ram 128GB SSD Windows 11 Professional (Renewed)
  • 1.1 GHz (boost up to 2.4GHz) Intel Celeron N5030 Quad-Core
  • 4GB DDR4 System Memory; 128GB Solid State Drive
  • 11.6" HD (1366 x 768) Multi-Touch Display
  • Combo headphone/microphone jack - Noble Wedge Lock slot - HDMI; 2 USB 3.1 Gen 1
  • Windows 11 Pro

Make a full-page capture

Set full_page: true in the render options when you need the whole page rather than just the visible viewport. Urlbox documents two full-page modes: stitch, the default and accuracy-oriented mode, and native, a faster mode that may not work well on every site. Prefer stitch when capture fidelity matters; try native when speed matters and verify the output for your target page. See Urlbox screenshot documentation.

Protect credentials and verify access

  • Base64 is an encoding, not encryption. Anyone who obtains the encoded value can decode it to recover the username and password.
  • Use HTTPS for the destination and API request, keep the Urlbox secret and destination credentials out of source control and public logs, and restrict access to any saved request data.
  • Use an authorized test target first. Check the resulting capture to confirm that the page loaded after authentication rather than returning a login prompt or access-denied page.
  • If you control the destination, prefer a short-lived, rotating token where supported instead of a long-lived password.

Troubleshoot common failures

  • The capture shows a login prompt or unauthorized response: confirm the target uses HTTP Basic Authentication, that the encoded value represents the exact username:password pair (including the colon), and that the render option is formatted as Authorization=Basic ….
  • The Urlbox request is rejected: check that the API request includes Authorization: Bearer YOUR_URLBOX_SECRET, independently of the destination header, and that the secret belongs to the account being used.
  • The header option is unavailable: verify that the account’s current plan includes the documented header option; Urlbox lists a HiFi plan requirement.
  • A regular login form remains visible: the site likely uses a form-based session, not Basic Authentication. Use the necessary session cookies through the documented cookie option, subject to the site’s authentication rules.
  • The screenshot is incomplete or unreliable: confirm that full_page: true is set if the full document is required. Compare the documented stitch and native modes on an authorized target; native is faster but may not suit every site.

Urlbox’s guide is dated July 26, 2024, while its options documentation is live. Confirm current account entitlement and behavior with a request to a site you are authorized to access.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a screenshot API that accepts a URL in one GET request and can return a screenshot or PDF. Its API supports custom headers, including Authorization, for pages that permit header-based access. For a target that uses HTTP Basic Authentication, supply the destination’s Basic Authorization header using the service’s documented header parameter. Do not treat this as a way to bypass a site’s access controls.

ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. It also offers an MCP server for AI agents to take screenshots. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. See the ScreenshotNeo documentation for request parameters and authentication details.

For example, a public page can be captured with this cURL request:

Rank #4
15.6 Inch Laptop Computer, N4020, 4GB DDR4 RAM, 128GB eMMC,with Windows 11
  • EFFORTLESS EVERYDAY PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 Home system, delivering reliable, low-power efficiency for daily tasks like document editing, email, online classes, and web browsing
  • 15.6-INCH FULL HD DISPLAY: Enjoy immersive visuals on the 15.6" FHD (1920x1080) anti-glare screen with micro-edge bezels. Delivers clear details and comfortable viewing for long study sessions, working on spreadsheets, and video playback
  • RESPONSIVE MULTITASKING & STORAGE: Built with 4GB LPDDR4 RAM and 128GB eMMC storage for smooth daily essential use. Expand your storage by up to 1TB via the integrated TF card slot to easily store movies, photos, and working files
  • ADVANCED CONNECTIVITY: Outfitted with 2x Full-Featured Type-C ports for data transfer, fast charging, and dual-monitor output, alongside 2x USB 3.2 Gen1 ports and a 3.5mm audio jack for complete peripheral compatibility
  • LIGHTWEIGHT & SILENT OPERATION: Slim and portable for effortless travel or commuting. Features a 1MP HD webcam for remote meetings, 38Wh battery with 45W Type-C fast charging, and a fanless silent design for peaceful work environments.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

For a protected page, consult the documentation for the supported custom-header parameter and pass the destination’s properly formed Basic Authorization header; the example above does not include credentials. Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99
Bestseller No. 2
Dell Latitude 3190 11.6' HD 2-in-1 Touchscreen Laptop Intel N5030 1.1Ghz 4GB Ram 128GB SSD Windows 11 Professional (Renewed)
Dell Latitude 3190 11.6" HD 2-in-1 Touchscreen Laptop Intel N5030 1.1Ghz 4GB Ram 128GB SSD Windows 11 Professional (Renewed)
1.1 GHz (boost up to 2.4GHz) Intel Celeron N5030 Quad-Core; 4GB DDR4 System Memory; 128GB Solid State Drive
Bestseller No. 3
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00
Best Value
15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage
  • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
  • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
  • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
  • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
  • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.