Skip to content

Cannot explicitly set POST headers and body #1

Description

Hi,

Basically I would like to set the body with the XML I constructed and set the content type to "application/xml". However, with the existing API, I just could not figure out how to explicitly set the headers and body for POST message.

resp = myendpoint.update().post(payload=":",
headers={"Content-Type":"text/xml"})

which always converted my request into a html form submission.

Finally I have to resort to a quick hack to make it work.

https://github.com/hsun/apibee/commit/7bc5310b94f0cb817f97efccf2201c85b3b5b1dc

Maybe there is a more elegant way to do it?

-thanks

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