mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL
Reported-by: Dima Tisnek
This commit is contained in:
parent
270494e1a0
commit
744ee58386
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -127,7 +127,7 @@ int main(void)
|
|||||||
XML_SetCharacterDataHandler(parser, characterDataHandler);
|
XML_SetCharacterDataHandler(parser, characterDataHandler);
|
||||||
|
|
||||||
/* Initialize a libcurl handle. */
|
/* Initialize a libcurl handle. */
|
||||||
curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL);
|
curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||||
curl_handle = curl_easy_init();
|
curl_handle = curl_easy_init();
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_URL,
|
curl_easy_setopt(curl_handle, CURLOPT_URL,
|
||||||
"http://www.w3schools.com/xml/simple.xml");
|
"http://www.w3schools.com/xml/simple.xml");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user