Lines Matching +full:open +full:- +full:pull +full:- +full:requests +full:- +full:limit
20 1.11 Why do you not update ca-bundle.crt
35 3.3 Why does my posting using -F not work?
42 3.10 What about SOAP, WebDAV, XML-RPC or similar protocols over HTTP?
43 3.11 How do I POST with a different Content-Type?
44 3.12 Why do FTP-specific features over HTTP proxy fail?
54 3.22 curl -X gives me HTTP problems
72 4.11 Why do my HTTP range requests return the full document?
74 4.13 Why is curl -R on Windows one hour off?
77 4.16 My HTTP POST or PUT requests are slow
78 4.17 Non-functional connect timeouts on Windows
81 4.20 curl does not return error for HTTP non-200 responses
84 5.1 Is libcurl thread-safe?
89 5.6 What about Keep-Alive or persistent connections?
91 5.8 libcurl.so.X: open failed: No such file or directory
97 5.14 Using C++ non-static functions for callbacks?
99 5.16 I want a different time-out
105 6.2 I have a closed-source program, can I use the libcurl library?
115 7.3 Can I perform multiple requests using the same handle?
138 A client-side URL transfer library, supporting DICT, FILE, FTP, FTPS,
148 platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HP-UX,
153 libcurl is free, thread-safe, IPv6 compatible, feature rich, well
166 https://media.merriam-webster.com/soundc11/c/curl0001.wav
168 There are numerous sub-projects and related projects that also use the word
170 notice that this FAQ is directed at the command-line tool named curl (and
171 libcurl the library), and may therefore not be valid for other curl-related
179 You can use libcurl freely in your application, be it open source,
180 commercial or closed-source.
183 used C-based multi-platform file transfer library on this planet - be it
184 open source or commercial.
190 market. curl is targeted at single-shot file transfers.
214 curl -- the command line tool -- is to remain a non-graphical command line
231 https://github.com/curl/curl, fork the project, and create pull requests
250 Project cURL is entirely free and open. We do this voluntarily, mostly in
260 If you want to support our project, consider a donation or a banner-program
267 During the summer of 2001, curl.com was busy advertising their client-side
283 curl-related questions on a suitable mailing list. All available mailing
287 Keeping curl-related questions and discussions on mailing lists allows
306 curl is fully open source. It means you can hire any skilled engineer to fix
307 your curl-related problems.
327 1.11 Why do you not update ca-bundle.crt
341 Firefox (by running 'make ca-bundle), or by using our online service setup
348 you can get -- or provide -- help instantly.
370 https://www.bis.doc.gov/index.php/documents/new-encryption/1653-ccl5-pt2-3
375 "pull requests" on GitHub: https://github.com/curl/curl/pulls
378 the curl-library mailing list. We are many subscribers there and there are
387 Here's a rough step-by-step:
389 1. copy a suitable lib/config-*.h file as a start to lib/config-[youros].h
391 2. edit lib/config-[youros].h to match your OS and setup
393 3. edit lib/curl_setup.h to include config-[youros].h when your OS is
410 handled automatically). This is an error-prone process and one that also
426 libressl, BoringSSL, AWS-LC, GnuTLS, wolfSSL, mbedTLS, Secure Transport
429 https://curl.se/docs/ssl-compared.html
475 Try the -C option.
477 3.3 Why does my posting using -F not work?
479 You cannot arbitrarily use -F or -d, the choice between -F or -d depends on
483 If the form you are trying to submit uses the type 'multipart/form-data',
484 then and only then you must use the -F type. In all the most common cases,
485 you should use -d which then causes a posting with the type
486 'application/x-www-form-urlencoded'.
497 file transfer. Study the -Q/--quote option.
502 commands, or use -I which implies the "no body" option sent to libcurl.
507 the -H/--header option. By adding a header with empty contents you safely
508 disable that one. Use -H "Accept:" to disable that specific header.
513 generated. It may be ASP, PHP, Perl, shell-script, SSI or plain HTML
521 Yes. You specify custom FTP commands with -Q/--quote.
525 curl -O ftp://example.com/coolfile -Q '-DELE coolfile'
529 curl -T infile ftp://example.com/dir/ -Q "-RNFR infile" -Q "-RNTO newname"
533 curl does not follow so-called redirects by default. The Location: header
535 -L/--location option. As in:
537 curl -L http://example.com
554 about bindings on the curl-library list too, but be prepared that people on
560 Java, Julia, Lisp, Lua, Mono, .NET, node.js, Object-Pascal, OCaml, Pascal,
562 Scilab, S-Lang, Smalltalk, SP-Forth, SPL, Tcl, Visual Basic, Visual FoxPro,
566 3.10 What about SOAP, WebDAV, XML-RPC or similar protocols over HTTP?
570 XML-RPC are all such ones. You can use -X to set custom requests and -H to
576 3.11 How do I POST with a different Content-Type?
578 You can always replace the internally generated headers with -H/--header.
579 To make a simple HTTP POST with text/xml as content-type, do something like:
581 curl -d "datatopost" -H "Content-Type: text/xml" [URL]
583 3.12 Why do FTP-specific features over HTTP proxy fail?
587 normally cannot use FTP-specific features such as FTP upload and FTP quote
591 the given HTTP proxy. Proxy tunneling is enabled with a special option (-p)
600 curl -d " with spaces " example.com
604 curl -d ' with spaces ' example.com
616 backslash-backtick escape sequence and the outer quotes as double quotes.
628 have no built-in support for that, so it will be treated just like any other
661 talk about using SSL-based protocols (HTTPS or FTPS) using curl or libcurl.
691 "self-signed" or otherwise signed by a CA that you do not have a CA cert
703 or the not-quite-kosher-but-more-readable way, by simply starting the path
723 curl --header "Host: www.example.com" http://127.0.0.1/
725 You can also opt to add faked host name entries to curl with the --resolve
729 curl --resolve www.example.com:80:127.0.0.1 http://www.example.com/
740 curl -O -u user:password sftp://example.com/~/file.txt
744 curl -O -u user:password scp://example.com/~/file.txt
760 3.22 curl -X gives me HTTP problems
762 In normal circumstances, -X should hardly ever be used.
766 "curl http://example.com" it will use GET. If you use -d or -F curl will use
767 POST, -I will cause a HEAD and -T will make it a PUT.
770 does for you, you can override those request methods by specifying -X
771 [WHATEVER]. This way you can for example send a DELETE by doing "curl -X
774 It is thus pointless to do "curl -XGET [URL]" as GET would be used
775 anyway. In the same vein it is pointless to do "curl -X POST -d data
777 request-body in a GET request with something like "curl -X GET -d data
780 Note that -X does not actually change curl's behavior as it only modifies the
784 Accordingly, by using -XPOST on a command line that for example would follow
799 An example that would invoke a remote CGI that uses &-symbols could be:
801 curl 'http://www.example.com/cgi-bin/query?text=yes&q=curl'
808 using -d/--data you must encode it as '%25' (which then also needs the
821 them for the curl URL "globbing" system), use the -g/--globoff option:
823 curl -g 'www.example.com/weirdname[].html'
832 By using the --fail option you can tell curl explicitly to not get any data
856 The server has not found anything matching the Request-URI. No indication
861 The method specified in the Request-Line is not allowed for the resource
862 identified by the Request-URI. The response MUST include an Allow header
874 -L/--location option to follow the redirection.
890 The first part is to avoid having clear-text passwords in the command line
892 avoided by using the "-K" option to tell curl to read parameters from a file
894 attempt to "hide" the given password by blanking out the option - this
906 SSL-based alternatives HTTPS and FTPS.
923 Microsoft Windows libraries at build-time to provide this functionality.
928 server properly for these requests to work on the web server.
936 4.11 Why do my HTTP range requests return the full document?
948 To completely disable the certificate verification, use -k. This does
949 however enable man-in-the-middle attacks and makes the transfer INSECURE.
954 store. It might for example be self-signed. You then correct this problem by
970 4.13 Why is curl -R on Windows one hour off?
973 any modern compiler that allows for a 64-bit curl_off_t type. For older
977 https://www.codeproject.com/Articles/1144/Beating-the-Daylight-Savings-Time-bug-and-getting
996 curl supports FTPS (sometimes known as FTP-SSL) both implicit and explicit
1003 To use explicit FTPS, you use an FTP:// URL and the --ftp-ssl option (or one
1008 4.16 My HTTP POST or PUT requests are slow
1010 libcurl makes all POST and PUT requests (except for requests with a small
1011 request body) use the "Expect: 100-continue" header. This header allows the
1020 any header, using -H / CURLOPT_HTTPHEADER, or by forcing it to use HTTP 1.0.
1022 4.17 Non-functional connect timeouts
1031 https://support.microsoft.com/en-us/kb/175523/en-us
1033 Also, even on non-Windows systems there may run a firewall or anti-virus
1051 host component, and is taken away. Thus, curl tries to open '/blah.txt'.
1072 re-routed around the physical problem through another path.
1078 for it to detect an issue. The curl option --keepalive-time enables
1079 keep-alive support in the TCP/IP stack which makes it periodically probe the
1086 on its own. --speed-limit/--speed-time will abort if the data transfer rate
1087 falls too low, and --connect-timeout and --max-time can be used to put an
1090 A libcurl-using application running in a known physical environment (e.g.
1094 OS-specific mechanism, then signaling libcurl to abort (see also item 5.13).
1096 4.20 curl does not return error for HTTP non-200 responses
1098 Correct. Unless you use -f (--fail).
1113 as errors and thus return a non-zero value and possibly show an error
1114 message, curl has a dedicated option for that: -f (CURLOPT_FAILONERROR in
1117 You can also use the -w option and the variable %{response_code} to extract
1122 5.1 Is libcurl thread-safe?
1126 We have written the libcurl code specifically adjusted for multi-threaded
1127 programs. libcurl will use thread-safe functions instead of non-safe ones if
1161 mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
1162 if (mem->memory) {
1163 memcpy(&(mem->memory[mem->size]), ptr, realsize);
1164 mem->size += realsize;
1165 mem->memory[mem->size] = 0;
1184 Yes, but you cannot open a FILE * and pass the pointer to a DLL and have
1192 5.6 What about Keep-Alive or persistent connections?
1216 add -DCURL_STATICLIB to your CFLAGS. Otherwise the linker will look for
1227 -----------------------------------------------------------
1233 5.8 libcurl.so.X: open failed: No such file or directory
1244 * Add an option to the linker command line that specify the hard-coded path
1245 the runtime linker should check for the lib (usually -R)
1258 picked at build-time and will be used unconditionally. Thus, if you want to
1262 - The non-IPv6 resolver that can use one of four different host name resolve
1265 A - gethostbyname()
1266 B - gethostbyname_r() with 3 arguments
1267 C - gethostbyname_r() with 5 arguments
1268 D - gethostbyname_r() with 6 arguments
1270 - The IPv6-resolver that uses getaddrinfo()
1272 - The c-ares based name resolver that uses the c-ares library for resolves.
1275 - The threaded resolver (default option on Windows). It uses:
1277 A - gethostbyname() on plain IPv4 hosts
1278 B - getaddrinfo() on IPv6 enabled hosts
1280 Also note that libcurl never resolves or reverse-lookups addresses given as
1285 libcurl provides a default built-in write function that writes received data
1297 imply sending IP packets with a made-up source address, and then you normally
1304 Also note that on many networks NATs or other IP-munging techniques are used
1323 5.14 Using C++ non-static functions for callbacks?
1333 // Call non-static member function.
1334 static_cast<YourClass*>(f)->nonStaticFunction();
1348 The follow-up question tends to be how is a program supposed to parse the
1351 will return data in a machine-readable format that can be parsed for type.
1356 Also, both LIST and NLST tend to hide unix-style hidden files (those that
1357 start with a dot) by default so you need to do "LIST -a" or similar to see
1360 Example - List only directories.
1363 curl -s ftp.funet.fi/pub/ -X MLSD | \
1364 perl -lne 'print if s/(?:^|;)type=dir;[^ ]+ (.+)$/$1/'
1366 curl -s ftp.kernel.org/pub/linux/kernel/ | \
1367 perl -lne 'print if s/^d[-rwx]{9}(?: +[^ ]+){7} (.+)$/$1/'
1374 5.16 I want a different time-out
1380 libcurl offers many more ways to time-out operations. A common alternative
1385 The most flexible way is by writing your own time-out logic and using
1393 Internet protocol server. libcurl is only a client-side library. For server
1395 good open source ones out there for most protocols you could want a server
1396 for. There are also really good stand-alone servers that have been tested
1405 sure you use the non-blocking multi API which will do transfers
1406 asynchronously - still in the same single thread.
1433 6.2 I have a closed-source program, can I use the libcurl library?
1472 Next to none. All you need to adhere to is the MIT-style license (stated in
1498 The module for PHP that makes it possible for PHP programs to access curl-
1511 7.3 Can I perform multiple requests using the same handle?
1513 Yes - at least in PHP version 4.3.8 and later (this has been known to not
1559 other languages, as long as those backends can be plugged in at build-time.