@rwhapham said:
Is there a way to determine the “secure” status of a server prior to connecting to it? I was hoping that this info would have been added to the PMS/servers endpoint, but it’s not. I want to add support for connecting to a secure server, but want to make sure there’s not a better way than brute force attempting HTTPS first, then falling back to HTTP. Thanks.
May be the certificate=“1” in the xml you get from :32400 default request means that
test with localhost:32400
Or it could be derived from preferences item secureConnections (1 means Preferred, 2 is Disabled)
My XML from one of my servers
<MediaContainer size="16" allowCameraUpload="1" allowChannelAccess="1" allowSync="1" certificate="1" friendlyName="AML-SA-LT" machineIdentifier="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" multiuser="1" myPlex="1" myPlexMappingState="mapped" myPlexSigninState="ok" myPlexSubscription="1" myPlexUsername="xxxxxxx@xxxx.xxx" platform="Windows" platformVersion="6.1 (Build 7601)" requestParametersInCookie="1" sync="1" transcoderActiveVideoSessions="0" transcoderAudio="1" transcoderVideo="1" transcoderVideoBitrates="64,96,208,320,720,1500,2000,3000,4000,8000,10000,12000,20000" transcoderVideoQualities="0,1,2,3,4,5,6,7,8,9,10,11,12" transcoderVideoResolutions="128,128,160,240,320,480,768,720,720,1080,1080,1080,1080" updatedAt="1440508970" version="0.9.12.11.1406-8403350">...</MediaContainer>
There may be other ways to get that info