Skip to content

Generated cURL commands can change the request body or method #191

Description

@OskarEichler

The public generateCurl helper uses -d, so an @-prefixed body is read as a local filename instead of sent literally. It drops empty bodies, silently truncates long bodies, and a GET with a body becomes POST because -X GET is omitted. A URL beginning with a dash is also interpreted as an option. I plan to use --data-raw, retain explicit methods when a body is present, preserve complete bodies in the standalone helper, and use --url. Inspector capture limits will remain a separate, clearly labelled concern. Validation will inspect shell-parsed argv without contacting any service.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions