Skip to content Skip to sidebar Skip to footer

Python + Soap + Xmlhttprequest

Hello I am trying to do a SOAP request here is my code: # Create an OpenerDirector with support for Basic HTTP Authentication... auth_handler = urllib2.HTTPBasicAuthHandler() auth_

Solution 1:

HTTPSConnection takes a host name, not a URL, so it should be

webservice = httplib.HTTPSConnection("webservices.autotask.net", 443)

and i believe that the host header is added for you, so you can skip that, but if its not, that should also be the host name, and not a URL.

Post a Comment for "Python + Soap + Xmlhttprequest"