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

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

In Chrome: open DevTools, select Network, trigger the action that sends the request, right-click that request, and choose Copy > Copy as cURL. Paste the result into a terminal or editor, inspect it for secrets, then run it only when you understand what it will send. Firefox offers the same capability from its Network Monitor.

Copy one request as cURL in Chrome

  1. Open the page that performs the request.
  2. Open DevTools with F12, Ctrl+Shift+I on Windows/Linux, or Cmd+Option+I on macOS, then select the Network panel.
  3. Reproduce the action you want to examine: submit a form, load data, sign in, or click the relevant control. Chrome records network activity while DevTools is open.
  4. Find the request in the Requests table. Use the filter box, request-type buttons, or the request’s domain to narrow the list.
  5. Right-click the request row and choose Copy > Copy as cURL.
  6. Paste the command into a text editor first. Check the URL, method, headers, cookies, authorization values, and body before running it.

A copied command may look like this (the exact headers and data depend on the request):

curl 'https://example.com/api/items' 
  -H 'accept: application/json' 
  -H 'content-type: application/json' 
  -H 'authorization: Bearer REDACTED_TOKEN' 
  --data-raw '{"page":1}'

Do not assume that every request is a GET. DevTools can include a method, request body, cookies, custom headers, compression flags, and other options needed to describe the observed request.

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.

Copy multiple or filtered requests in Chrome

Copy every request

Right-click in the Network request list and choose Copy > Copy all as cURL. This produces a cURL representation for the recorded set, which can be large and may contain unrelated assets such as scripts, images, and analytics calls.

#1 Best Overall
Anker USB C to USB C Cable, 60W Fast Charging Cable (2-Pack, 6 ft, Black)
  • Durable Design: Reinforced nylon exterior and a robust core ensure this cable withstands up to 5,000 bends, outlasting other brands
  • Fast Charging: Supports Power Delivery for up to 60W high-speed charging when paired with a USB-C charger
  • Versatile Compatibility: Works with virtually all USB-C devices, including phones, tablets, and laptops
  • High-Speed Data Transfer: Transfer files quickly with 480Mbps data transfer speeds
  • Included Accessories: Comes with a hook-and-loop cable tie for easy organization and a welcome guide for hassle-free setup

Copy only the requests currently listed

Apply a filter first, then choose Copy all listed as cURL. This is useful when you want only fetch/XHR calls, only a particular domain, or only requests matching a search term. Confirm that the filter really excludes authentication or setup calls your replay depends on.

Other Chrome export formats

The same context menu can offer Copy as PowerShell, Copy as fetch, and Copy as fetch (Node.js). Choose cURL when you need a shell command or want a compact description that can be translated into another client later.

Copy a request as cURL in Firefox

  1. Open Firefox Developer Tools and select Network Monitor.
  2. Perform the action that generates the request.
  3. Context-click (right-click) the request row.
  4. Open Copy, then select Copy as cURL.

Firefox’s generated command can represent several request details:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • A non-default method may be written with -X.
  • URL-encoded form data may use --data.
  • Multipart content may use --data-binary.
  • A protocol other than HTTP/1.1 may be represented with --http/VERSION.
  • A HEAD request may use -I.
  • Headers are represented with header options such as -H.
  • Compressed responses may use --compressed, allowing cURL to decompress them.

These are possible encodings, not a checklist that appears in every copied command.

Read and edit the generated command safely

Identify the request basics

  • URL: Check the host, path, query string, and whether the request points to a test or production system.
  • Method: GET usually reads; POST, PUT, PATCH, and DELETE can create, change, or remove data.
  • Headers: Look for Authorization, cookies, CSRF tokens, content type, origin, and custom application headers.
  • Body: Determine whether it is JSON, form-encoded data, multipart content, or raw text.
  • Output: Add options such as -i for response headers, -v for diagnostic detail, or -o result.json to save the response.

Remove secrets before sharing

Browser requests commonly carry session cookies, bearer tokens, API keys, private URLs, account identifiers, and personal data. Redact or replace those values before posting a command in a ticket, chat, repository, shell history, or script. Treat the command as sensitive even if the URL itself is public.

Rank #2
Sale
LISEN USB C to USB C Cable, 240W Fast Charging Type C Charger Cord (6.6FT)
  • CONFIRM BEFORE BUYING — USB-C to USB-C ONLY: This iPhone 18 Charging cable connects two USB-C ports — it does NOT include a USB-A connector. Not a retractable coil cable. Not a magnetic self-winding cable. Features a tangle-free, ultra-flexible design for everyday 240W fast charging. If you experience any quality issues upon arrival, our customer support team is available 24/7 to assist with a prompt and professional solution
  • High Power ≠ High Risk | Smarter Compatibility for Every Device: 240W doesn't mean compromising safety—it means unmatched versatility. Thanks to PD3.1 Extended Power Range (EPR) technology, our c to c cable fast charging dynamically adjusts voltage/current to deliver each device's maximum safe power (e.g., 60W to iPads, 100W to older MacBooks, 140W to MacBook Pro). Other 60W/100W usb c to usb c cable can't hit full charging speed for your power-hungry devices—they're held back by their own power limits. LISEN 240W usb-c charge cable? It charges all your gear steadily, efficiently, and at full speed, with zero safety risks
  • 240W Ultra Fast Charging | Smart Protocol Matching: This iPhone 18 pro max charger fast charging cable supports PD3.1 EPR/QC4.0 fast charging up to 240W Max, working seamlessly with USB-C Power Delivery adapters (e.g.60W/100W/240W). It automatically matches your device’s handshake protocol to deliver the maximum safe power it can handle. It's 2.4X faster than 100W fast charging usb-c cables: Up to 85% charged in 30 mins for iPhone 18 Pro Max, up to 65% charged in 30 mins for iPad Pro, and up to 80% charged in 30 mins for MacBook Pro 16''(M5). This iPhone 18 charger cord balances speed and protection perfectly, giving you both fast and secure charging
  • E-Marker 3.0 Chip | Real-Time Current/Voltage Monitoring: LISEN 240W type c charger fast charging cable has an E-Marker 3.0 + PD3.1 EPR system that actively monitors current/voltage 3.2M+ times per second, ensuring zero overloads, short circuits, or battery damage. Paired with dual safeguards (overheat + surge protection) and PD3.1/QC4.0 certifications, it's not just a USB-C to USB-C cable—it's a smart guardian for your devices
  • Premium Copper Core | Conductivity Meets Durability: This high speed usb c cable fast charging is upgraded from standard copper to 99.99% oxygen-free copper cores—thicker, purer, and lower-resistance. This means: (1) Stable power delivery even at 240W (no energy loss or heat buildup). (2) Longer lifespan (resists corrosion and wear, unlike cheaper alloys). (3) Faster data sync (480Mbps) with minimal signal interference

Chrome also provides HAR export choices that distinguish sanitized data from exports containing sensitive data. Choose the sanitized option when you need to share a network capture, and inspect the copied cURL command independently because it may still contain credentials.

Make a replayable version

Replace short-lived values with environment variables rather than hard-coding them:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl 'https://example.com/api/items' 
  -H "Authorization: Bearer $API_TOKEN" 
  -H 'Content-Type: application/json' 
  --data-raw '{"page":1}'

For a safe diagnostic replay, change a mutating method to a documented test endpoint where possible, remove unnecessary cookies, and avoid sending the command against production until you know whether it changes state.

Why a copied cURL command can behave differently

Copy as cURL describes the HTTP request DevTools observed; it does not export the entire browser environment. A replay can fail or return different data when:

  • Cookies or authorization tokens have expired.
  • The server requires a fresh CSRF token or a value generated by an earlier request.
  • The browser supplied client-side state, service-worker behavior, or JavaScript-generated data that is not represented in the command.
  • The request depends on a sequence of calls, a particular account state, or a one-time nonce.
  • The server applies different policy to the browser’s user agent, IP address, region, or protocol.
  • The page changed after you captured the request.

When a replay fails, compare the copied command with the request’s Headers, Payload, and Response tabs, then capture a fresh request rather than endlessly reusing stale credentials.

Rank #3
Anker USB C to USB C Cable, 100W Fast Charging Cable (2-Pack, 6 ft, Black)
  • The Anker Advantage: Join the 80 million+ powered by our leading technology.
  • Rapid Charging: Supports high-speed charging up to 100W when used with a compatible charger.
  • Highly Compatible: Designed to work flawlessly with any USB-C device. (Does not support video output.)
  • Rugged and Durable: A hard-wearing nylon exterior combines with a 5,000-bend lifespan to create a cable that’s durable both inside and out.
  • What You Get: 2-Pack Anker 333 USB-C to USB-C Cable (6ft Nylon), hook and loop cable tie, welcome guide, everlasting warranty, and friendly customer service.

Troubleshooting common problems

The Copy as cURL option is missing

Make sure you are right-clicking a request row in the Network panel, not the page, a header field, or the Console. If the list is empty, reload with DevTools open and perform the action again. A filter may also be hiding the request.

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

The command returns 401 or 403

The copied cookie, bearer token, CSRF token, or signed URL may have expired or been scoped to the browser session. Capture a new request, redact only for sharing, and use the fresh value locally. Check whether the request requires an earlier login or token-generation call.

The command returns 415 or malformed-data errors

Verify the content type and body encoding. Preserve JSON punctuation, form encoding, or multipart boundaries exactly as generated. Do not manually convert --data-binary to a plain string when the endpoint expects multipart data.

The command downloads compressed or unreadable output

Keep --compressed when Firefox generated it, or save the response with -o and inspect the file type. Use -i or -v to separate response headers from the body.

The request works in the browser but not in a shell

Check for missing dependent requests, browser-only state, an expired token, a required origin or referer header, and differences in DNS, proxy, IP, or user agent. Reproduce the action, copy the newest request, and compare every meaningful header and payload field rather than adding headers at random.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
LISEN USB C to USB C Cable 60W for iPhone 18 Pro Duo Charging Cable, 5-Pack
  • 60W Turbo Fast Charging:This iPhone 18 charger cord support PD3.0/QC3.0/QC4.0 fast charging up to 60W Max (20V/3A) with USB-C Power Delivery adapters such as 30W/45W/60W. Which 2.2X faster than 3.1A version and charges USB C Phone from 0% to 80% within 35 minutes, iPad Pro 64% within 35 minutes, Macbook air 50% within 35 minutes, and data transfer speeds up to 480Mbps (1200 songs synced per minute) compatible with Samsung,Tablt,iPad Air Mini Pro,Macbook and More.
  • Right for ALL Your Devices:This is the USB-C to USB-C cable Not the USB-C to USB-A cable, iPhone 18 Pro Max fast charger Compatible with virtually all USB-C devices including phones, tablets, and laptops. Such as Samsung Galaxy S25/S24/S23/S22/S21+/S21/S20/ S20+/ S20 Ultra/ Note 10, MacBook Air/Pro 13'', iPad Mini 6, iPad Pro 2021/2020/2018, iPad Air 2020, iPhone 18/ iPhone Duo/ 18 pro max/ iPhone 17/ iPhone Air/ 17 pro max/iPhone 16/ 16 Plus/ 16 pro max/iPhone 15 pro max plus. NOTE: Don't Compatible with iPhone 14/13/12/11/X. This product supports bulk purchasing, making it ideal for businesses and large orders.
  • Green Recyclable Materials:The LISEN USB C to USB C iPhone 18 17 16 15 charger fast charging you rely on most are braided from 48 strands of recyclable cotton yarn material. This braiding design also helps to prevent tangling and damage from bending and twisting. Using recycled materials is one of the ways we can lower the carbon impact of our products, since these materials often have a lower carbon footprint than materials from primary sources.
  • Triple Protection USB C Port:USB to USB C Cable has electronic safety certifications that comply with appropriate standards, it built-in laser welding technology, which ensure the metal part won't break. The copper core part is reinforced with UV glue to prevent the solder joints from falling off. The USB C port pass Load-bearing 13KG test which longer service life and will never break.
  • What You Get:LISEN USB C to USB C Cable 5-Pack (3.3/3.3/6.6/6.6/10FT), 18-Month worry-free period and 24/7 customer service, if you have any questions, we will resolve your issue within 24 hours. Whether you're shopping for samsung or iphone 16 pro max charger cord accessories gifts for men/women or reliable car accessories, this super fast charger usb c to c cable is built to last

Multiple copied requests are noisy

Use Chrome’s request-type and text filters, then choose Copy all listed as cURL. For a single API call, prefer the individual request menu so you do not accidentally replay analytics, asset, or tracking calls.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Safari and version differences

A WebKit issue titled “Web Inspector: ER: Copy as cURL” was marked resolved fixed in 2016. That historical record confirms implementation work at that point, but it does not establish the current menu path or availability in every Safari release. Check the Web Inspector installed with your Safari version before relying on Safari-specific instructions. Chrome and Firefox provide the documented Network/Network Monitor context-menu workflows described above.

Or skip the browser setup

If your actual goal is a clean screenshot or PDF rather than replaying an HTTP request, ScreenshotNeo provides a direct API call. It accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers. Its MCP server lets Claude, Cursor, and other MCP clients call take_screenshot, get_page_info, and capture_pdf.

See the ScreenshotNeo API documentation for all options, including full-page and element captures, device presets, dark mode, custom CSS and JavaScript, waits, blocking rules, headers, cookies, geolocation, PDF settings, caching, signed links, asynchronous jobs, bulk capture, and usage reporting.

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

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}`);

The Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is included on every plan. Create a free ScreenshotNeo account.

FAQ

Does Copy as cURL copy the response too?

No. It copies a command that describes the request. Run it separately if you need to capture the current response.

Best Value
ANKER USB A to USB C Cable, USB to USB C Cable (2-Pack, 6 ft, Black)
  • The Anker Advantage: Join the 50 million+ powered by our leading technology.
  • Enhanced Durability: Improved construction techniques and materials make a cable that lasts 5× longer.
  • Universal Compatibility: Designed to work flawlessly with any device that uses a USB-C port.
  • Fast Sync & Charge: Supports fast charging up to 15W (3A/5V) and data transfer speeds up to 480Mbps. (Not compatible with Power Delivery).
  • What You Get: 2 × Premium Nylon-Braided USB-A to USB-C Charger Cable (6ft), welcome guide, everlasting warranty, and our friendly customer service.

Can I copy a request before it finishes?

You can copy a recorded row, but a pending request may lack final information or may still depend on a response. For reliable replay, wait until the request completes when practical.

Is a copied cURL command portable between operating systems?

The HTTP options are portable, but quoting, line-continuation characters, shell variables, and certificate or proxy configuration differ between shells. Review the command for Bash, PowerShell, or another shell before execution.

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

Frequently Asked Questions

Does Copy as cURL copy the response too?

No. It copies a command that describes the request; run it separately to obtain a response.

Can I copy a request before it finishes?

You can, but waiting for completion generally gives a more complete and dependable request description.

Is a copied cURL command portable between operating systems?

The HTTP options are broadly portable, while quoting and line-continuation syntax vary by shell.

Quick Recap

Bestseller No. 1
Anker USB C to USB C Cable, 60W Fast Charging Cable (2-Pack, 6 ft, Black)
Anker USB C to USB C Cable, 60W Fast Charging Cable (2-Pack, 6 ft, Black)
High-Speed Data Transfer: Transfer files quickly with 480Mbps data transfer speeds
$9.99
Bestseller No. 3
Anker USB C to USB C Cable, 100W Fast Charging Cable (2-Pack, 6 ft, Black)
Anker USB C to USB C Cable, 100W Fast Charging Cable (2-Pack, 6 ft, Black)
The Anker Advantage: Join the 80 million+ powered by our leading technology.; Note: This is a data transfer and charging cable, and does not support video output.
$12.99
Bestseller No. 5
ANKER USB A to USB C Cable, USB to USB C Cable (2-Pack, 6 ft, Black)
ANKER USB A to USB C Cable, USB to USB C Cable (2-Pack, 6 ft, Black)
The Anker Advantage: Join the 50 million+ powered by our leading technology.
$9.99

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.

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