You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Maybe there is a more elegant way to do it?
-thanks
The text was updated successfully, but these errors were encountered: