HAR to cURL Commands Extractor

ДанныеРазработчикНетворкинг
Реклама · УДАЛИТЬ?

Или

cURL Options

Фильтры

Upload or paste a HAR file to extract cURL commands.
Реклама · УДАЛИТЬ?

Гид

HAR to cURL Commands Extractor

HAR to cURL Commands Extractor

A HAR (HTTP Archive) file captures every network request your browser made on a page — but reading raw HAR JSON is painful, and reproducing a single request by hand is worse. This tool parses a HAR export entirely in your browser and turns each captured request into a ready-to-run cURL command, complete with method, headers, cookies and request body. Drop it into a terminal to replay an API call, share a reproducible bug report, or move a request from DevTools into a script.

Как использовать

In your browser DevTools, open the Network tab, right-click any request and choose “Save all as HAR with content” (or export the whole session). Upload that .har file here, or paste the JSON directly. The tool immediately lists a cURL command for every request. Use the filters to narrow down to a method, status code or just the API (XHR) calls, then copy a single command or download the whole set as a runnable shell script.

Возможности

  • Every request as cURL – Each entry in the HAR becomes a standalone, copy-paste cURL command.
  • Умная фильтрация – Narrow output by HTTP method, status tier (2xx/3xx/4xx/5xx), content type, or a free-text URL search.
  • Header control – Toggle request headers, the Cookie header and the request body independently, and skip HTTP/2 pseudo-headers.
  • Auth masking – Optionally replace Authorization and API-key values with a placeholder before sharing.
  • Shell-safe escaping – Values are single-quoted and escaped so commands run correctly even with special characters.
  • Один клик для экспорта – Copy all commands or download them as a .sh script. Everything runs client-side; nothing is uploaded.

Реклама · УДАЛИТЬ?

Часто задаваемые вопросы

  1. Что такое файл HAR?

    A HAR (HTTP Archive) file is a JSON-formatted log of a web browser's interaction with a site. It records each request and response — URLs, headers, cookies, timings, payloads and status codes — under a top-level log.entries array. Browsers and tools export it for performance analysis and debugging.

  2. Why does cURL need shell-safe quoting?

    A POSIX shell interprets characters like spaces, quotes, ampersands and dollar signs before cURL ever sees them. Wrapping each argument in single quotes — and escaping any embedded single quote — ensures the value is passed literally, so a JSON body or a header with special characters is sent exactly as captured.

  3. What are HTTP/2 pseudo-headers?

    HTTP/2 replaced the old request line with pseudo-headers that begin with a colon, such as :method, :path, :scheme and :authority. They are part of the HTTP/2 framing layer, not real request headers, so they are usually omitted when reconstructing an equivalent cURL command.

  4. Why mask Authorization headers before sharing requests?

    Captured requests frequently contain bearer tokens, session cookies and API keys that grant access to an account. Replacing those values with a placeholder lets you share a reproducible request — for a bug report or documentation — without leaking live credentials that an attacker could reuse.

Хотите убрать рекламу? Откажитесь от рекламы сегодня

Установите наши расширения

Добавьте инструменты ввода-вывода в свой любимый браузер для мгновенного доступа и более быстрого поиска

в Расширение Chrome в Расширение края в Расширение Firefox в Расширение Opera

Табло результатов прибыло!

Табло результатов — это интересный способ следить за вашими играми, все данные хранятся в вашем браузере. Скоро появятся новые функции!

Реклама · УДАЛИТЬ?
Реклама · УДАЛИТЬ?
Реклама · УДАЛИТЬ?

новости с техническими моментами

Примите участие

Помогите нам продолжать предоставлять ценные бесплатные инструменты

Купи мне кофе
Реклама · УДАЛИТЬ?