David Bunch wrote:
Hey everyone, firstly, I want to thank you Jeff, for being so
patient
with me, and the quick turn around on that bug. You rock, and your
client rocks! Secondly,
does anyone know how you can log http headers that are sent and
recieved? the documentation says that to log sent and received
soap/http headers simply add these lines to the top of your code:
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)
However this only logs soap headers and soap messages not http headers.
Oops, my mistake. This (the client debug) already logs the messages and http headers.
However, the headers listed are the custom headers added by the user plus the stock onces
that suds adds but does *not* include the headers that might be generated by cookielib.
So, I added some better logging in the transport today on trunk.
To see this you should:
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
------------------------------------------------------------------------
_______________________________________________
fedora-suds-list mailing list
fedora-suds-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-suds-list