curlgen

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package curlgen renders a captured request as a runnable curl command, so a tester (or the AI) can reproduce and iterate on it in a terminal. It favors security-testing fidelity: the exact path is preserved (--path-as-is) and TLS verification is skipped (-k), matching how Interceptor itself talks to targets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(method, url string, headers http.Header, body []byte) string

Build renders a curl command for method/url with the given headers and body. Values are single-quoted and shell-escaped; long commands wrap with backslash continuations. Content-Length is dropped (curl computes it).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL