PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchUse curl --user 'username:password' https://example.com/ to send HTTP Basic Authentication. Prefer HTTPS, omit the password for an interactive prompt, and use a protected secret mechanism in automation. Basic Auth is an HTTP challenge-and-response scheme—not encryption—so credentials must never travel over plain HTTP.
Send Basic Auth with cURL
The standard command is:
curl --user 'username:password' https://example.com/
The short alias is equivalent:
curl -u 'username:password' https://example.com/
--user (or -u) supplies the username and password for the remote HTTP server. cURL splits the value at the first colon, so this form cannot represent a username containing a colon. If your password contains shell-special characters, quote the complete argument with single quotes where possible, or use a safer file or prompt-based method.
Let cURL prompt for the password
Leave the password out to avoid placing it in shell history or a visible process argument:
curl --user username https://example.com/
cURL prompts for the password interactively. The prompt is not echoed to the terminal. This is usually the safest approach for a one-off manual request.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Select Basic explicitly
curl --basic --user 'username:password' https://example.com/
HTTP Basic is cURL’s default authentication method when no other method is selected, so --basic is normally unnecessary. It is useful when you want the command to document or force the scheme.
What Basic Authentication actually protects
Basic Auth encodes a username and password and sends them in an HTTP Authorization header. Encoding is not encryption. The curl project describes Basic credentials as “plain text based,” meaning they are only slightly obfuscated and remain readable to anyone sniffing an unprotected connection. Use an https:// URL so TLS encrypts the request in transit.
HTTPS protects the connection between cURL and the server; it does not make a weak password strong, prevent the server from logging credentials accidentally, or turn a browser’s HTML login form into HTTP Basic. Many consumer websites display a login form, establish a session cookie, and never accept an Authorization: Basic header. Confirm the API or endpoint documentation before choosing this method.
Credentials without leaking them
Interactive use
Use the username-only form when working at a terminal:
curl -u username https://api.example.com/private
This avoids putting the password in the command line. Shell history, terminal recording, CI logs, and process-list tools can otherwise expose a literal username:password argument.
Protected cURL configuration
For repeatable scripts, place credentials in a permissions-restricted cURL config file rather than in a command that is copied into tickets or logged by a runner. A minimal file is:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
user = "username:password"
Invoke it with:
curl --config ~/.config/curl/private.conf https://api.example.com/private
Protect the file so only the intended account can read it (for example, with restrictive operating-system permissions), and keep it out of source control and backups that are not approved for secrets. cURL’s FAQ discusses command-line visibility and using protected configuration or standard-input mechanisms for secrets: curl FAQ.
Environment and secret-manager patterns
In automation, obtain the secret from the CI platform or operating-system secret manager and inject it only for the process that needs it. Avoid printing the variable, expanding it into a command recorded by the runner, or writing it to a world-readable temporary file. The exact syntax depends on your shell and CI system; the security requirement is the same: keep the password out of logs, history, process listings, and repositories.
Recommended Free Tools
Inspect a request without exposing the password
Use headers and verbose output to diagnose authentication, but remember that verbose traces can contain sensitive data and should not be pasted into public logs:
curl --user username -v https://api.example.com/private
Look for the server’s WWW-Authenticate response header. A challenge such as WWW-Authenticate: Basic realm="…" indicates that the endpoint offers Basic. A 401 Unauthorized response can instead mean that the credentials are wrong, the account lacks permission, or the endpoint expects a different authentication scheme.
To show only response headers while keeping the body out of the terminal:
curl --user username -sS -D - -o /dev/null https://api.example.com/private
Use -sS for quiet output plus errors, -D - to write headers to standard output, and -o /dev/null to discard the response body.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
When the authentication method is unknown
If documentation does not identify the server’s scheme, let cURL negotiate after inspecting the server response:
curl --anyauth --user username https://api.example.com/private
--anyauth can require an additional request/response round trip while cURL discovers a method the server supports. It is a discovery option, not a replacement for reading the API documentation. Once you know the scheme, select it explicitly. cURL also supports methods such as Digest, NTLM, and Negotiate, although availability depends on how your cURL build was compiled; consult the installed version’s man page.
Redirects and credential boundaries
Following redirects is common for APIs and downloads:
curl --location --user username https://example.com/start
With --location, cURL sends supplied credentials to the initial host by default. It does not automatically forward them to a different host. This boundary helps prevent a redirect from disclosing credentials to an unrelated destination.
Free tools Windows power users keep installed
One-click scans. No signup required.
--location-trusted changes that behavior and permits credentials to be sent to other hosts:
curl --location-trusted --user username https://example.com/start
Use this only when every possible redirect target is under your control and intended to receive the credentials. The cURL man page warns that routine use can create a security breach. Before enabling it, inspect redirects with headers or a controlled test and verify the final host.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Server authentication versus proxy authentication
--user authenticates to the destination server. A proxy has a separate credential option:
curl --proxy-user proxyname https://example.com/
The short form is -U. To explicitly select Basic for the proxy, add --proxy-basic:
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →curl --proxy-basic --proxy-user 'proxyname:proxypassword' https://example.com/
You may need both sets of credentials when a corporate proxy and the origin API each require authentication:
curl --proxy-user proxyname --user apiname https://api.example.com/private
Keep the two identities separate. A proxy challenge does not prove that the origin accepts Basic, and an origin credential will not satisfy a proxy.
Practical request examples
JSON API response
curl --user username
-H 'Accept: application/json'
https://api.example.com/v1/account
Authenticated POST
curl --user username
-H 'Content-Type: application/json'
--data '{"enabled":true}'
https://api.example.com/v1/account/settings
Save a protected download
curl --user username -o report.pdf https://api.example.com/reports/latest.pdf
In each example, cURL prompts for the password because only the username is supplied.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshooting Basic Auth failures
401 Unauthorized
- Verify the URL and account against the API documentation.
- Check the
WWW-Authenticateheader to see whether Basic is offered. - Confirm that the password was entered correctly and that shell quoting did not alter it.
- Check whether the account is authorized for that particular path; valid credentials can still lack permission.
403 Forbidden
The server understood the request but refused access. Check account roles, IP allowlists, required headers, and application-level authorization. Changing --basic will not fix a policy denial.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsBest Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
It works in a browser but not in cURL
The browser may be using a form login, session cookie, CSRF token, JavaScript-generated request, or a single-sign-on flow. Reproduce the documented API authentication method instead of assuming the page’s login accepts Basic. If the service requires cookies, obtain them through its supported login flow and send them with cURL only according to its terms and security guidance.
Credentials disappear after a redirect
Check the redirect target. cURL intentionally limits credential forwarding across hosts. Keep --location and fix the endpoint or authorization setup where possible; do not switch to --location-trusted unless the cross-host transfer is explicitly required and trusted.
Proxy errors
Use --proxy-user for proxy credentials and --user for origin credentials. If the proxy advertises a different scheme, select the matching proxy option supported by your cURL build. Test the proxy independently before diagnosing the origin API.
Performance, reliability, and operational checks
- Round trips: Explicit Basic avoids authentication-method discovery.
--anyauthmay add a request/response exchange. - Connection security: Use HTTPS and keep certificate verification enabled; do not “solve” TLS errors by disabling verification in production.
- Retries: Retrying a request can repeat a state-changing operation. Add retries only when the endpoint’s operation is idempotent or the API provides an idempotency mechanism.
- Timeouts: Set an operation limit in automation, for example
--max-time 90, so a stuck connection does not consume a worker indefinitely. - Logging: Redact command lines, headers, config files, and verbose traces. Treat a captured Basic header as a usable password until it is revoked.
- Version differences: Options are documented for the installed cURL build. Check
curl --versionand the matching cURL man page before relying on a platform-specific feature.
Or skip the browser setup
If your goal is a clean screenshot of an authenticated or public page rather than an API response, ScreenshotNeo is a website screenshot API and MCP server. Its one-call request can capture PNG, JPEG, WebP, or PDF output while removing cookie banners, newsletter popups, and chat widgets before capture. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and the response identifies the page verdict and billing status in X-Page-Verdict and X-Billed headers.
cURL:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
See the ScreenshotNeo documentation for authentication and options. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo.
Reference links
- cURL man page for current option behavior, redirects, authentication, and proxy flags.
- The Art Of Scripting HTTP Requests Using curl for Basic Auth, HTTPS, prompts, and form-login distinctions.
- cURL tutorial for authentication defaults and proxy usage.
- cURL FAQ for protecting credentials from command-line exposure.
Frequently Asked Questions
Can a username contain a colon with cURL’s -u option?
No. cURL splits the supplied user-and-password string at the first colon, so this syntax cannot represent a colon in the username. Use an authentication method or client flow that supports that identity format.
Does Basic Auth log me into a normal website?
Usually not. Many websites use an HTML form, cookies, CSRF protection, or single sign-on rather than HTTP Basic. Use the site’s documented API or authentication flow.
Should I use –anyauth for every request?
No. Use it when the server’s scheme is unknown and accept the possible extra round trip. Once the scheme is documented, selecting it explicitly is more predictable.
Quick Recap
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.

