[ https://issues.apache.org/jira/browse/XERCESC-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17433730#comment-17433730 ]
Andrew Patterson commented on XERCESC-2220: ------------------------------------------- [~rleigh] I might submit a patch then; we just updated to the latest and our old method (generate VC projects, update them & check _those_ in) doesn't work nearly as well. I fiddled with the CMAKE files and it was easy to allow Windows to use CURL, so long as it satisfies _find_package(curl)_ as I said. We build libcurl as part of our build process so we tried defining CURL_INCLUDE_DIR & CURL_LIBRARY. The latter was easy; the former wouldn't take no matter what we tried. The build output for libcurl is a self-contained folder with it's own include path, so presumably that's what we should be specifying, but it wouldn't take. If we could do that, we could verify that my CMAKE patch and I'd happily send it your way. When I searched earlier, there were several tickets related to HTTPS on Windows; this is simply the only that's clearly stating the problem. The others were a muddle so they were either languishing or closed I believe. > 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 > Priority: Major > > 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