tuomur / python-odata

A simple library for read/write access to OData services
MIT License
79 stars 59 forks source link

can https be used? #7

Closed Alex-CodeLab closed 7 years ago

Alex-CodeLab commented 7 years ago

Is https supported?
it always returns an empty list {} when I use it with python-odata

(example url: https://services.odata.org/V4/Northwind/Northwind.svc/ )

tuomur commented 7 years ago

That site seems to have problems with its certificate. My tests just return odata.exceptions.ODataConnectionError: hostname 'services.odata.org' doesn't match either of '*.azurewebsites.net', '*.scm.azurewebsites.net', '*.azure-mobile.net', '*.scm.azure-mobile.net' when trying to use it.

Alex-CodeLab commented 7 years ago

ok. that was just an example. Having the same issue with other https that I tested (sorry, not publicly available yet)

tuomur commented 7 years ago

It should work, python-odata doesn't really care if you're using http or https. The underlying library Requests handles all connectivity. If you receive empty results (no exceptions from requests, that is) then I'd say https is working.

awartani commented 7 years ago

https is working at my end, we have been using it on Production for a while without any issue.