Skip to content

Content-type form with POST is not working #152

Description

@visola

I've tried the following request:

http +profile '/api/v1/lists?api_key={privateKey}' -X POST -d 'name=test' -H 'Content-Type:application/x-www-form-urlencoded'

The output shows the data is coming through:

Content-Type: application/x-www-form-urlencoded
>> name=test

But the server doesn't seem to be receiving the data in the correct format because it returns a 400.

Trying the equivalent in cURL works:

curl 'http://hostname/api/v1/lists?api_key=***' -H 'Content-Type:application/x-www-form-urlencoded' -d name=test -v

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions