Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+17 more

    Repair HTTP Request Framing Bugs

    1

    Repair HTTP request framing bugs where Content-Length, Transfer-Encoding, chunked parsing, duplicate headers, proxy/backend normalization, or body boundaries disagree.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Our reverse proxy accepts both Content-Length and Transfer-Encoding and normalizes them differently from the backend client. We want one framing contract and local socket fixtures without changing body limits or supported HTTP versions.

    Your agent does

    The proxy and backend disagree on message length when both framing signals appear. The repair centralizes accepted framing combinations, rejects ambiguous requests before forwarding, ensures the forwarded request has one body boundary, and tests duplicate CL, CL+TE, malformed chunks, trailers, and connection reuse.

    What you get

    Resolve Transfer-Encoding vs Content-Length ambiguity in proxy logic.Implement strict hop-by-hop header normalization and backend handoff.Add deterministic regression tests for malformed HTTP byte sequences.Fix body boundary leaks and parser state ownership defects.

    About this skill

    The problem

    Inconsistent HTTP request framing causes dangerous parser mismatches between proxies and backends. These defects lead to request smuggling, broken body boundaries, and state ownership errors that are difficult to reproduce or debug.

    What it does

    • Identifies and patches inconsistent handling of Content-Length and Transfer-Encoding headers.
    • Normalizes hop-by-hop headers and proxy-to-backend handoff logic to ensure parser agreement.
    • Relocates validation logic to happen before irreversible state mutations or backend dispatch.
    • Generates deterministic local byte fixtures and loopback tests to verify framing fixes without live traffic.
    • Ensures transaction cleanup and callbacks are correctly bound to the specific request lifecycle.

    Why this beats prompting it yourself

    Manual prompts often overlook subtle edge cases like trailer handling or parser terminal states, leading to incomplete fixes. This skill enforces a canonical contract for state transitions and prevents common pitfalls like hiding framing defects behind broad retries or sleeps.

    Use cases

    • Fixing request smuggling vulnerabilities caused by ambiguous header parsing.
    • Standardizing chunked transfer encoding across multiple internal microservices.
    • Implementing strict body boundary validation in a custom HTTP proxy or middleware.
    • Creating regression tests for specific malformed HTTP request sequences.

    Known limitations

    Cannot contact production services or access live customer data. Requires repository access to local files and the ability to run bash-based tests.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    • One-time purchase, yours forever

    Listedtoday

    Frequently Asked Questions