Skip to content

Single quote in cookie value make invalid curl debug command #4557

@jcamiel

Description

@jcamiel

Given this Set-Cookie header:

Set-Cookie: foo=a'b; Expires=Thu, 13 Jan 2078 22:23:01 GMT; HttpOnly; Path=/

We output the following curl logs:

* Request can be run with the following curl command:
* curl --cookie 'foo=a'b' 'http://localhost:8000/cookie-simple'

the single quote in foo=a'b should be escaped so the command can be run.

We should also check if all the args are single-quote escaped.

The curl command produces by --curl should be invalid also

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions