Loading docs/examples/10-at-a-time.c +5 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,9 +19,10 @@ * KIND, either express or implied. * ***************************************************************************/ /* Example application source code using the multi interface to download many * files, but with a capped maximum amount of simultaneous transfers. * /* <DESC> * Source code using the multi interface to download many * files, with a capped maximum amount of simultaneous transfers. * </DESC> * Written by Michael Wallner */ Loading docs/examples/anyauthput.c +6 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,6 +19,11 @@ * KIND, either express or implied. * ***************************************************************************/ /* <DESC> * HTTP PUT upload with authentiction using "any" method. libcurl picks the * one the server supports/wants. * </DESC> */ #include <stdio.h> #include <fcntl.h> #ifdef WIN32 Loading docs/examples/asiohiper.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 2012 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -20,11 +20,11 @@ * ***************************************************************************/ /* <DESC> * demonstrate the use of multi socket interface with boost::asio * </DESC> */ /* * file: asiohiper.cpp * Example program to demonstrate the use of multi socket interface * with boost::asio * * This program is in c++ and uses boost::asio instead of libevent/libev. * Requires boost::asio, boost::bind and boost::system * Loading docs/examples/cacertinmem.c +4 −10 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,17 +19,11 @@ * KIND, either express or implied. * ***************************************************************************/ /* Example using a "in core" PEM certificate to retrieve a https page. * Written by Theo Borm /* <DESC> * CA cert in memory with OpenSSL to get a HTTPS page. * </DESC> */ /* on a netBSD system with OPENSSL& LIBCURL installed from * pkgsrc (using default paths) this program can be compiled using: * gcc -I/usr/pkg/include -L/usr/pkg/lib -lcurl -Wl,-R/usr/pkg/lib -lssl * -lcrypto -lz -o curlcacerttest curlcacerttest.c * on other operating systems you may want to change paths to headers * and libraries */ #include <openssl/ssl.h> #include <curl/curl.h> #include <stdio.h> Loading docs/examples/certinfo.c +5 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,6 +19,10 @@ * KIND, either express or implied. * ***************************************************************************/ /* <DESC> * Extract lots of TLS certificate info. * </DESC> */ #include <stdio.h> #include <curl/curl.h> Loading Loading
docs/examples/10-at-a-time.c +5 −4 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,9 +19,10 @@ * KIND, either express or implied. * ***************************************************************************/ /* Example application source code using the multi interface to download many * files, but with a capped maximum amount of simultaneous transfers. * /* <DESC> * Source code using the multi interface to download many * files, with a capped maximum amount of simultaneous transfers. * </DESC> * Written by Michael Wallner */ Loading
docs/examples/anyauthput.c +6 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,6 +19,11 @@ * KIND, either express or implied. * ***************************************************************************/ /* <DESC> * HTTP PUT upload with authentiction using "any" method. libcurl picks the * one the server supports/wants. * </DESC> */ #include <stdio.h> #include <fcntl.h> #ifdef WIN32 Loading
docs/examples/asiohiper.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 2012 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 2012 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -20,11 +20,11 @@ * ***************************************************************************/ /* <DESC> * demonstrate the use of multi socket interface with boost::asio * </DESC> */ /* * file: asiohiper.cpp * Example program to demonstrate the use of multi socket interface * with boost::asio * * This program is in c++ and uses boost::asio instead of libevent/libev. * Requires boost::asio, boost::bind and boost::system * Loading
docs/examples/cacertinmem.c +4 −10 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,17 +19,11 @@ * KIND, either express or implied. * ***************************************************************************/ /* Example using a "in core" PEM certificate to retrieve a https page. * Written by Theo Borm /* <DESC> * CA cert in memory with OpenSSL to get a HTTPS page. * </DESC> */ /* on a netBSD system with OPENSSL& LIBCURL installed from * pkgsrc (using default paths) this program can be compiled using: * gcc -I/usr/pkg/include -L/usr/pkg/lib -lcurl -Wl,-R/usr/pkg/lib -lssl * -lcrypto -lz -o curlcacerttest curlcacerttest.c * on other operating systems you may want to change paths to headers * and libraries */ #include <openssl/ssl.h> #include <curl/curl.h> #include <stdio.h> Loading
docs/examples/certinfo.c +5 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms Loading @@ -19,6 +19,10 @@ * KIND, either express or implied. * ***************************************************************************/ /* <DESC> * Extract lots of TLS certificate info. * </DESC> */ #include <stdio.h> #include <curl/curl.h> Loading