Skip to content

Configure header elements of a request #42

@sebastianneubert

Description

@sebastianneubert

It should be possible to add special header data to the request object.

For example it should be possible to set the content_type of a request to application-xml.

# testsuite.yml
example:
    headers:
      - {Content-Type: 'application/xml'}
    Pages:
     - { url: /api/rest/users.json, post: { email: testuser@test.local, nickname: test, name: tester } }

The request to /api/rest/users.json should have the header:

'Content-Type: application/xml; charset=utf-8'

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