[jira] [Commented] (XERCESC-2220) Winsock Network Accessor does not support https URLs

"Roger Leigh (Jira)" <[email protected]>
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/XERCESC-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17433408#comment-17433408 ] 

Roger Leigh commented on XERCESC-2220:
--------------------------------------

[[email protected]] The reason this hasn't been remedied is that no one has cared sufficiently about it to develop and submit a fix for it.  If someone wishes to do so, I'll be more than happy to review and test it.

As for how to satisfy {{find_package(curl)}}, you need to make sure the CURL installation is on your {{CMAKE_PREFIX_PATH}} so that it can be searched for and found successfully.  One way to do this is to use _vcpkg _and its toolchain file, and all of the third-party dependencies can be trivially built and used.

> 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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.