Florian Meinicke created XERCESC-2220: -----------------------------------------
Summary: Winsock Network Accessor does not support https URLs Key: XERCESC-2220 URL: https://issues.apache.org/jira/browse/XERCESC-2220 Project: Xerces-C++ Issue Type: Bug Components: Utilities Affects Versions: 3.2.3 Environment: Windows 10 MinGW 7.3.0 64-bit Reporter: Florian Meinicke According to [a comment|https://issues.apache.org/jira/browse/XERCESC-2029?focusedCommentId=13982847&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13982847] from [Xerces-C++/XERCESC-2029|https://issues.apache.org/jira/browse/XERCESC-2029] only the curl and winsock network accessors support https URLs. While I got everything working on Linux using the curl accessor I cannot do so on Windows. I'm still getting the "unsupported protocol in URL" error even though I'm using the winsock accessor. The problem appears to be that https has been deliberately disabled for the winsock accessor: Taken from {{src/xercesc/util/NetAccessors/WinSock/WinSockNetAccessor.cpp}}: {code:cpp} BinInputStream* WinSockNetAccessor::makeNew(const XMLURL& urlSource, const XMLNetHTTPInfo* httpInfo /*=0*/) { XMLURL::Protocols protocol = urlSource.getProtocol(); switch(protocol) { case XMLURL::HTTP: { BinHTTPURLInputStream* retStrm = new (urlSource.getMemoryManager()) BinHTTPURLInputStream(urlSource, httpInfo); return retStrm; break; } // // These are the only protocols we support now. So throw and // unsupported protocol exception for the others. // default : ThrowXMLwithMemMgr(MalformedURLException, XMLExcepts::URL_UnsupportedProto, urlSource.getMemoryManager()); break; } return 0; } {code} My understanding is that the winsock accessor should support https URLs so the question is why is https being disabled in {{WinSockNetAccessor}}? -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org