How to add http headers in suds 0.3.6?
Posted
by Esabe
on Stack Overflow
See other posts from Stack Overflow
or by Esabe
Published on 2010-05-10T15:43:48Z
Indexed on
2010/05/17
19:20 UTC
Read the original article
Hit count: 230
Hi everyone,
I have an application in python 2.5 which sends data through suds 0.3.6.
The problem is that the data contains non-ascii characters, so I need the following header to exist in the soap message:
Content-Type="text/html; charset="utf-8"
and the header that exists in the SOAP message is just:
Content-Type="text/html"
I know that it is fixed in suds 0.4, but it requires Python2.6 and I NEED Python2.5 because I use CentOS and it needs that version. So the question is:
How could I change or add new HTTP headers to a SOAP message?
© Stack Overflow or respective owner