Skip to content

How to print curl command with json payload #689

@danielecr

Description

@danielecr

Please: I do not know if this is a bug.

I want to send to the shell this:

curl  -X POST localhost:8080/get/pets -H'Content-type: application/json'  -d'{"payload":"low"}'

I searched through examples, I found nothing similar

file.tape contains:

Type "curl  -X POST localhost:8080/get/pets -H\"Content-type: application/json\"  -d\"{\"payload\":\"low\"}\""
Enter
Sleep 2s

This print "Invalid command: ..." here and there.

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