Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1498

suds is not using HTTPS, even though the URL is set correctly

$
0
0

Consider this code:

from suds.client import Clientwsdl = "https://path/to/scv?wsdl"client = Client(wsdl)token = client.factory.create("ns1:AuthenticationToken")token.LoginName = "login"token.UserId = "userid"token.Password = "password"client.set_options(soapheaders=token)articleno = "articleno"list = client.factory.create("ns1:ArticlesList")list.Article.append(articleno)result = client.service.GetStockLevel(list)

When inspecting the stream, I see it uses HTTP instead of HTTPS, causing an error because the endpoint gives a HTTP301 on that. Even though I start my url with https://.

Is there a way to force suds to use HTTPS?


Viewing all articles
Browse latest Browse all 1498

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>