Debian Codegraph @

codelitephp/resources/cc/curl.php

raw
1 <?php
2
3 // Start of curl v.
4
5 class CURLFile {
6 public $name;
7 public $mime;
8 public $postname;
9
10
11 /**
12 * Create a CURLFile object
13 * @link http://www.php.net/manual/en/curlfile.construct.php
14 * @param filename string <p>
15 * Path to the file which will be uploaded.
16 * </p>
17 * @param mimetype string[optional] <p>
18 * Mimetype of the file.
19 * </p>
20 * @param postname string[optional] <p>
21 * Name of the file.
22 * </p>
23 * @return string a CURLFile object.
24 */
25 public function __construct ($filename, $mimetype = null, $postname = null) {}
26
27 /**
28 * Get file name
29 * @link http://www.php.net/manual/en/curlfile.getfilename.php
30 * @return string file name.
31 */
32 public function getFilename () {}
33
34 /**
35 * Get MIME type
36 * @link http://www.php.net/manual/en/curlfile.getmimetype.php
37 * @return string MIME type.
38 */
39 public function getMimeType () {}
40
41 /**
42 * Set MIME type
43 * @link http://www.php.net/manual/en/curlfile.setmimetype.php
44 * @param mime string <p>
45 *
46 * </p>
47 * @return void
48 */
49 public function setMimeType ($mime) {}
50
51 /**
52 * Get file name for POST
53 * @link http://www.php.net/manual/en/curlfile.getpostfilename.php
54 * @return string file name for POST.
55 */
56 public function getPostFilename () {}
57
58 /**
59 * Set file name for POST
60 * @link http://www.php.net/manual/en/curlfile.setpostfilename.php
61 * @param postname string <p>
62 *
63 * </p>
64 * @return void
65 */
66 public function setPostFilename ($postname) {}
67
68 /**
69 * Unserialization handler
70 * @link http://www.php.net/manual/en/curlfile.wakeup.php
71 * @return void
72 */
73 public function __wakeup () {}
74
75 }
76
77 /**
78 * Initialize a cURL session
79 * @link http://www.php.net/manual/en/function.curl-init.php
80 * @param url string[optional] <p>
81 * If provided, the CURLOPT_URL option will be set
82 * to its value. You can manually set this using the
83 * curl_setopt function.
84 * </p>
85 *
86 * <p>
87 * The file protocol is disabled by cURL if
88 * open_basedir is set.
89 * </p>
90 * @return resource a cURL handle on success, false on errors.
91 */
92 function curl_init ($url = null) {}
93
94 /**
95 * Copy a cURL handle along with all of its preferences
96 * @link http://www.php.net/manual/en/function.curl-copy-handle.php
97 * @param ch resource
98 * @return resource a new cURL handle.
99 */
100 function curl_copy_handle ($ch) {}
101
102 /**
103 * Gets cURL version information
104 * @link http://www.php.net/manual/en/function.curl-version.php
105 * @param age int[optional] <p>
106 * </p>
107 * @return array an associative array with the following elements:
108 *
109 *
110 *
111 * <tr valign="top">
112 * <td>Indice</td>
113 * <td>Value description</td>
114 * </tr>
115 *
116 *
117 * <tr valign="top">
118 * <td>version_number</td>
119 * <td>cURL 24 bit version number</td>
120 * </tr>
121 * <tr valign="top">
122 * <td>version</td>
123 * <td>cURL version number, as a string</td>
124 * </tr>
125 * <tr valign="top">
126 * <td>ssl_version_number</td>
127 * <td>OpenSSL 24 bit version number</td>
128 * </tr>
129 * <tr valign="top">
130 * <td>ssl_version</td>
131 * <td>OpenSSL version number, as a string</td>
132 * </tr>
133 * <tr valign="top">
134 * <td>libz_version</td>
135 * <td>zlib version number, as a string</td>
136 * </tr>
137 * <tr valign="top">
138 * <td>host</td>
139 * <td>Information about the host where cURL was built</td>
140 * </tr>
141 * <tr valign="top">
142 * <td>age</td>
143 * <td></td>
144 * </tr>
145 * <tr valign="top">
146 * <td>features</td>
147 * <td>A bitmask of the CURL_VERSION_XXX constants</td>
148 * </tr>
149 * <tr valign="top">
150 * <td>protocols</td>
151 * <td>An array of protocols names supported by cURL</td>
152 * </tr>
153 */
154 function curl_version ($age = null) {}
155
156 /**
157 * Set an option for a cURL transfer
158 * @link http://www.php.net/manual/en/function.curl-setopt.php
159 * @param ch resource
160 * @param option int <p>
161 * The CURLOPT_XXX option to set.
162 * </p>
163 * @param value mixed <p>
164 * The value to be set on option.
165 * </p>
166 * <p>
167 * value should be a bool for the
168 * following values of the option parameter:
169 *
170 *
171 *
172 * <tr valign="top">
173 * Option</td>
174 * Set value to</td>
175 * Notes</td>
176 * </tr>
177 *
178 *
179 * <tr valign="top">
180 * CURLOPT_AUTOREFERER</td>
181 *
182 * true to automatically set the Referer: field in
183 * requests where it follows a Location: redirect.
184 * </td>
185 *
186 * </td>
187 * </tr>
188 * <tr valign="top">
189 * CURLOPT_BINARYTRANSFER</td>
190 *
191 * true to return the raw output when
192 * CURLOPT_RETURNTRANSFER is used.
193 * </td>
194 *
195 * From PHP 5.1.3, this option has no effect: the raw output will
196 * always be returned when
197 * CURLOPT_RETURNTRANSFER is used.
198 * </td>
199 * </tr>
200 * <tr valign="top">
201 * CURLOPT_COOKIESESSION</td>
202 *
203 * true to mark this as a new cookie "session". It will force libcurl
204 * to ignore all cookies it is about to load that are "session cookies"
205 * from the previous session. By default, libcurl always stores and
206 * loads all cookies, independent if they are session cookies or not.
207 * Session cookies are cookies without expiry date and they are meant
208 * to be alive and existing for this "session" only.
209 * </td>
210 *
211 * </td>
212 * </tr>
213 * <tr valign="top">
214 * CURLOPT_CERTINFO</td>
215 *
216 * true to output SSL certification information to STDERR
217 * on secure transfers.
218 * </td>
219 *
220 * Added in cURL 7.19.1.
221 * Available since PHP 5.3.2.
222 * Requires CURLOPT_VERBOSE to be on to have an effect.
223 * </td>
224 * </tr>
225 * <tr valign="top">
226 * CURLOPT_CONNECT_ONLY</td>
227 *
228 * true tells the library to perform all the required proxy authentication
229 * and connection setup, but no data transfer. This option is implemented for
230 * HTTP, SMTP and POP3.
231 * </td>
232 *
233 * Added in 7.15.2.
234 * Available since PHP 5.5.0.
235 * </td>
236 * </tr>
237 * <tr valign="top">
238 * CURLOPT_CRLF</td>
239 *
240 * true to convert Unix newlines to CRLF newlines
241 * on transfers.
242 * </td>
243 *
244 * </td>
245 * </tr>
246 * <tr valign="top">
247 * CURLOPT_DNS_USE_GLOBAL_CACHE</td>
248 *
249 * true to use a global DNS cache. This option is
250 * not thread-safe and is enabled by default.
251 * </td>
252 *
253 * </td>
254 * </tr>
255 * <tr valign="top">
256 * CURLOPT_FAILONERROR</td>
257 *
258 * true to fail verbosely if the HTTP code returned
259 * is greater than or equal to 400. The default behavior is to return
260 * the page normally, ignoring the code.
261 * </td>
262 *
263 * </td>
264 * </tr>
265 * <tr valign="top">
266 * CURLOPT_FILETIME</td>
267 *
268 * true to attempt to retrieve the modification
269 * date of the remote document. This value can be retrieved using
270 * the CURLINFO_FILETIME option with
271 * curl_getinfo.
272 * </td>
273 *
274 * </td>
275 * </tr>
276 * <tr valign="top">
277 * CURLOPT_FOLLOWLOCATION</td>
278 *
279 * true to follow any
280 * "Location: " header that the server sends as
281 * part of the HTTP header (note this is recursive, PHP will follow as
282 * many "Location: " headers that it is sent,
283 * unless CURLOPT_MAXREDIRS is set).
284 * </td>
285 *
286 * </td>
287 * </tr>
288 * <tr valign="top">
289 * CURLOPT_FORBID_REUSE</td>
290 *
291 * true to force the connection to explicitly
292 * close when it has finished processing, and not be pooled for reuse.
293 * </td>
294 *
295 * </td>
296 * </tr>
297 * <tr valign="top">
298 * CURLOPT_FRESH_CONNECT</td>
299 *
300 * true to force the use of a new connection
301 * instead of a cached one.
302 * </td>
303 *
304 * </td>
305 * </tr>
306 * <tr valign="top">
307 * CURLOPT_FTP_USE_EPRT</td>
308 *
309 * true to use EPRT (and LPRT) when doing active
310 * FTP downloads. Use false to disable EPRT and LPRT and use PORT
311 * only.
312 * </td>
313 *
314 * </td>
315 * </tr>
316 * <tr valign="top">
317 * CURLOPT_FTP_USE_EPSV</td>
318 *
319 * true to first try an EPSV command for FTP
320 * transfers before reverting back to PASV. Set to false
321 * to disable EPSV.
322 * </td>
323 *
324 * </td>
325 * </tr>
326 * <tr valign="top">
327 * CURLOPT_FTP_CREATE_MISSING_DIRS</td>
328 *
329 * true to create missing directories when an FTP operation
330 * encounters a path that currently doesn't exist.
331 * </td>
332 *
333 * </td>
334 * </tr>
335 * <tr valign="top">
336 * CURLOPT_FTPAPPEND</td>
337 *
338 * true to append to the remote file instead of
339 * overwriting it.
340 * </td>
341 *
342 * </td>
343 * </tr>
344 * <tr valign="top">
345 * CURLOPT_TCP_NODELAY</td>
346 *
347 * Pass a long specifying whether the TCP_NODELAY option is to be set or
348 * cleared (1 = set, 0 = clear). The option is cleared by default.
349 * </td>
350 *
351 * Available since PHP 5.2.1 for versions compiled with libcurl 7.11.2 or
352 * greater.
353 * </td>
354 * </tr>
355 * <tr valign="top">
356 * CURLOPT_FTPASCII</td>
357 *
358 * An alias of
359 * CURLOPT_TRANSFERTEXT. Use that instead.
360 * </td>
361 *
362 * </td>
363 * </tr>
364 * <tr valign="top">
365 * CURLOPT_FTPLISTONLY</td>
366 *
367 * true to only list the names of an FTP
368 * directory.
369 * </td>
370 *
371 * </td>
372 * </tr>
373 * <tr valign="top">
374 * CURLOPT_HEADER</td>
375 *
376 * true to include the header in the output.
377 * </td>
378 *
379 * </td>
380 * </tr>
381 * <tr valign="top">
382 * <td>CURLINFO_HEADER_OUT</td>
383 *
384 * true to track the handle's request string.
385 * </td>
386 *
387 * Available since PHP 5.1.3. The CURLINFO_
388 * prefix is intentional.
389 * </td>
390 * </tr>
391 * <tr valign="top">
392 * CURLOPT_HTTPGET</td>
393 *
394 * true to reset the HTTP request method to GET.
395 * Since GET is the default, this is only necessary if the request
396 * method has been changed.
397 * </td>
398 *
399 * </td>
400 * </tr>
401 * <tr valign="top">
402 * CURLOPT_HTTPPROXYTUNNEL</td>
403 *
404 * true to tunnel through a given HTTP proxy.
405 * </td>
406 *
407 * </td>
408 * </tr>
409 * <tr valign="top">
410 * CURLOPT_MUTE</td>
411 *
412 * true to be completely silent with regards to
413 * the cURL functions.
414 * </td>
415 *
416 * Removed in cURL 7.15.5 (You can use CURLOPT_RETURNTRANSFER instead)
417 * </td>
418 * </tr>
419 * <tr valign="top">
420 * CURLOPT_NETRC</td>
421 *
422 * true to scan the ~/.netrc
423 * file to find a username and password for the remote site that
424 * a connection is being established with.
425 * </td>
426 *
427 * </td>
428 * </tr>
429 * <tr valign="top">
430 * CURLOPT_NOBODY</td>
431 *
432 * true to exclude the body from the output.
433 * Request method is then set to HEAD. Changing this to false does
434 * not change it to GET.
435 * </td>
436 *
437 * </td>
438 * </tr>
439 * <tr valign="top">
440 * CURLOPT_NOPROGRESS</td>
441 * <p>
442 * true to disable the progress meter for cURL transfers.
443 *
444 * <p>
445 * PHP automatically sets this option to true, this should only be
446 * changed for debugging purposes.
447 * </p>
448 *
449 * </p></td>
450 *
451 * </td>
452 * </tr>
453 * <tr valign="top">
454 * CURLOPT_NOSIGNAL</td>
455 *
456 * true to ignore any cURL function that causes a
457 * signal to be sent to the PHP process. This is turned on by default
458 * in multi-threaded SAPIs so timeout options can still be used.
459 * </td>
460 *
461 * Added in cURL 7.10.
462 * </td>
463 * </tr>
464 * <tr valign="top">
465 * CURLOPT_POST</td>
466 *
467 * true to do a regular HTTP POST. This POST is the
468 * normal application/x-www-form-urlencoded kind,
469 * most commonly used by HTML forms.
470 * </td>
471 *
472 * </td>
473 * </tr>
474 * <tr valign="top">
475 * CURLOPT_PUT</td>
476 *
477 * true to HTTP PUT a file. The file to PUT must
478 * be set with CURLOPT_INFILE and
479 * CURLOPT_INFILESIZE.
480 * </td>
481 *
482 * </td>
483 * </tr>
484 * <tr valign="top">
485 * CURLOPT_RETURNTRANSFER</td>
486 *
487 * true to return the transfer as a string of the
488 * return value of curl_exec instead of outputting
489 * it out directly.
490 * </td>
491 *
492 * </td>
493 * </tr>
494 * <tr valign="top">
495 * CURLOPT_SAFE_UPLOAD</td>
496 *
497 * true to disable support for the @ prefix for
498 * uploading files in CURLOPT_POSTFIELDS, which
499 * means that values starting with @ can be safely
500 * passed as fields. CURLFile may be used for
501 * uploads instead.
502 * </td>
503 *
504 * Added in PHP 5.5.0 with false as the default value. PHP 5.6.0
505 * changes the default value to true.
506 * </td>
507 * </tr>
508 * <tr valign="top">
509 * CURLOPT_SSL_VERIFYPEER</td>
510 *
511 * false to stop cURL from verifying the peer's
512 * certificate. Alternate certificates to verify against can be
513 * specified with the CURLOPT_CAINFO option
514 * or a certificate directory can be specified with the
515 * CURLOPT_CAPATH option.
516 * </td>
517 *
518 * true by default as of cURL 7.10. Default bundle installed as of
519 * cURL 7.10.
520 * </td>
521 * </tr>
522 * <tr valign="top">
523 * CURLOPT_TRANSFERTEXT</td>
524 *
525 * true to use ASCII mode for FTP transfers.
526 * For LDAP, it retrieves data in plain text instead of HTML. On
527 * Windows systems, it will not set STDOUT to binary
528 * mode.
529 * </td>
530 *
531 * </td>
532 * </tr>
533 * <tr valign="top">
534 * CURLOPT_UNRESTRICTED_AUTH</td>
535 *
536 * true to keep sending the username and password
537 * when following locations (using
538 * CURLOPT_FOLLOWLOCATION), even when the
539 * hostname has changed.
540 * </td>
541 *
542 * </td>
543 * </tr>
544 * <tr valign="top">
545 * CURLOPT_UPLOAD</td>
546 *
547 * true to prepare for an upload.
548 * </td>
549 *
550 * </td>
551 * </tr>
552 * <tr valign="top">
553 * CURLOPT_VERBOSE</td>
554 *
555 * true to output verbose information. Writes
556 * output to STDERR, or the file specified using
557 * CURLOPT_STDERR.
558 * </td>
559 *
560 * </td>
561 * </tr>
562 *
563 *
564 *
565 * </p>
566 * <p>
567 * value should be an integer for the
568 * following values of the option parameter:
569 *
570 *
571 *
572 * <tr valign="top">
573 * <td>Option</td>
574 * <td>Set value to</td>
575 * <td>Notes</td>
576 * </tr>
577 *
578 *
579 * <tr valign="top">
580 * CURLOPT_BUFFERSIZE</td>
581 *
582 * The size of the buffer to use for each read. There is no guarantee
583 * this request will be fulfilled, however.
584 * </td>
585 *
586 * Added in cURL 7.10.
587 * </td>
588 * </tr>
589 * <tr valign="top">
590 * CURLOPT_CLOSEPOLICY</td>
591 *
592 * One of the CURLCLOSEPOLICY_* values.
593 *
594 * <p>
595 * This option is deprecated, as it was never implemented in cURL and
596 * never had any effect.
597 * </p>
598 *
599 * </td>
600 *
601 * Removed in PHP 5.6.0.
602 * </td>
603 * </tr>
604 * <tr valign="top">
605 * <td>CURLOPT_CONNECTTIMEOUT</td>
606 *
607 * The number of seconds to wait while trying to connect. Use 0 to
608 * wait indefinitely.
609 * </td>
610 *
611 * </td>
612 * </tr>
613 * <tr valign="top">
614 * CURLOPT_CONNECTTIMEOUT_MS</td>
615 *
616 * The number of milliseconds to wait while trying to connect. Use 0 to
617 * wait indefinitely.
618 *
619 * If libcurl is built to use the standard system name resolver, that
620 * portion of the connect will still use full-second resolution for
621 * timeouts with a minimum timeout allowed of one second.
622 * </td>
623 *
624 * Added in cURL 7.16.2. Available since PHP 5.2.3.
625 * </td>
626 * </tr>
627 * <tr valign="top">
628 * CURLOPT_DNS_CACHE_TIMEOUT</td>
629 *
630 * The number of seconds to keep DNS entries in memory. This
631 * option is set to 120 (2 minutes) by default.
632 * </td>
633 *
634 * </td>
635 * </tr>
636 * <tr valign="top">
637 * CURLOPT_FTPSSLAUTH</td>
638 *
639 * The FTP authentication method (when is activated):
640 * CURLFTPAUTH_SSL (try SSL first),
641 * CURLFTPAUTH_TLS (try TLS first), or
642 * CURLFTPAUTH_DEFAULT (let cURL decide).
643 * </td>
644 *
645 * Added in cURL 7.12.2.
646 * </td>
647 * </tr>
648 * <tr valign="top">
649 * CURLOPT_HTTP_VERSION</td>
650 *
651 * CURL_HTTP_VERSION_NONE (default, lets CURL
652 * decide which version to use),
653 * CURL_HTTP_VERSION_1_0 (forces HTTP/1.0),
654 * or CURL_HTTP_VERSION_1_1 (forces HTTP/1.1).
655 * </td>
656 *
657 * </td>
658 * </tr>
659 * <tr valign="top">
660 * CURLOPT_HTTPAUTH</td>
661 *
662 * <p>
663 * The HTTP authentication method(s) to use. The options are:
664 * CURLAUTH_BASIC,
665 * CURLAUTH_DIGEST,
666 * CURLAUTH_GSSNEGOTIATE,
667 * CURLAUTH_NTLM,
668 * CURLAUTH_ANY, and
669 * CURLAUTH_ANYSAFE.
670 * </p>
671 * <p>
672 * The bitwise | (or) operator can be used to combine
673 * more than one method. If this is done, cURL will poll the server to see
674 * what methods it supports and pick the best one.
675 * </p>
676 * <p>
677 * CURLAUTH_ANY is an alias for
678 * CURLAUTH_BASIC | CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM.
679 * </p>
680 * <p>
681 * CURLAUTH_ANYSAFE is an alias for
682 * CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM.
683 * </p>
684 * </td>
685 *
686 * </td>
687 * </tr>
688 * <tr valign="top">
689 * CURLOPT_INFILESIZE</td>
690 *
691 * The expected size, in bytes, of the file when uploading a file to
692 * a remote site. Note that using this option will not stop libcurl
693 * from sending more data, as exactly what is sent depends on
694 * CURLOPT_READFUNCTION.
695 * </td>
696 *
697 * </td>
698 * </tr>
699 * <tr valign="top">
700 * CURLOPT_LOW_SPEED_LIMIT</td>
701 *
702 * The transfer speed, in bytes per second, that the transfer should be
703 * below during the count of CURLOPT_LOW_SPEED_TIME
704 * seconds before PHP considers the transfer too slow and aborts.
705 * </td>
706 *
707 * </td>
708 * </tr>
709 * <tr valign="top">
710 * CURLOPT_LOW_SPEED_TIME</td>
711 *
712 * The number of seconds the transfer speed should be below
713 * CURLOPT_LOW_SPEED_LIMIT before PHP considers
714 * the transfer too slow and aborts.
715 * </td>
716 *
717 * </td>
718 * </tr>
719 * <tr valign="top">
720 * CURLOPT_MAXCONNECTS</td>
721 *
722 * The maximum amount of persistent connections that are allowed.
723 * When the limit is reached,
724 * CURLOPT_CLOSEPOLICY is used to determine
725 * which connection to close.
726 * </td>
727 *
728 * </td>
729 * </tr>
730 * <tr valign="top">
731 * CURLOPT_MAXREDIRS</td>
732 *
733 * The maximum amount of HTTP redirections to follow. Use this option
734 * alongside CURLOPT_FOLLOWLOCATION.
735 * </td>
736 *
737 * </td>
738 * </tr>
739 * <tr valign="top">
740 * CURLOPT_PORT</td>
741 *
742 * An alternative port number to connect to.
743 * </td>
744 *
745 * </td>
746 * </tr>
747 * <tr valign="top">
748 * CURLOPT_PROTOCOLS</td>
749 *
750 * <p>
751 * Bitmask of CURLPROTO_* values. If used, this bitmask
752 * limits what protocols libcurl may use in the transfer. This allows you to have
753 * a libcurl built to support a wide range of protocols but still limit specific
754 * transfers to only be allowed to use a subset of them. By default libcurl will
755 * accept all protocols it supports.
756 * See also CURLOPT_REDIR_PROTOCOLS.
757 * </p>
758 * <p>
759 * Valid protocol options are:
760 * CURLPROTO_HTTP,
761 * CURLPROTO_HTTPS,
762 * CURLPROTO_FTP,
763 * CURLPROTO_FTPS,
764 * CURLPROTO_SCP,
765 * CURLPROTO_SFTP,
766 * CURLPROTO_TELNET,
767 * CURLPROTO_LDAP,
768 * CURLPROTO_LDAPS,
769 * CURLPROTO_DICT,
770 * CURLPROTO_FILE,
771 * CURLPROTO_TFTP,
772 * CURLPROTO_ALL
773 * </p>
774 * </td>
775 *
776 * Added in cURL 7.19.4.
777 * </td>
778 * </tr>
779 * <tr valign="top">
780 * CURLOPT_PROXYAUTH</td>
781 *
782 * The HTTP authentication method(s) to use for the proxy connection.
783 * Use the same bitmasks as described in
784 * CURLOPT_HTTPAUTH. For proxy authentication,
785 * only CURLAUTH_BASIC and
786 * CURLAUTH_NTLM are currently supported.
787 * </td>
788 *
789 * Added in cURL 7.10.7.
790 * </td>
791 * </tr>
792 * <tr valign="top">
793 * CURLOPT_PROXYPORT</td>
794 *
795 * The port number of the proxy to connect to. This port number can
796 * also be set in CURLOPT_PROXY.
797 * </td>
798 *
799 * </td>
800 * </tr>
801 * <tr valign="top">
802 * CURLOPT_PROXYTYPE</td>
803 *
804 * Either CURLPROXY_HTTP (default) or
805 * CURLPROXY_SOCKS5.
806 * </td>
807 *
808 * Added in cURL 7.10.
809 * </td>
810 * </tr>
811 * <tr valign="top">
812 * CURLOPT_REDIR_PROTOCOLS</td>
813 *
814 * Bitmask of CURLPROTO_* values. If used, this bitmask
815 * limits what protocols libcurl may use in a transfer that it follows to in
816 * a redirect when CURLOPT_FOLLOWLOCATION is enabled.
817 * This allows you to limit specific transfers to only be allowed to use a subset
818 * of protocols in redirections. By default libcurl will allow all protocols
819 * except for FILE and SCP. This is a difference compared to pre-7.19.4 versions
820 * which unconditionally would follow to all protocols supported.
821 * See also CURLOPT_PROTOCOLS for protocol constant values.
822 * </td>
823 *
824 * Added in cURL 7.19.4.
825 * </td>
826 * </tr>
827 * <tr valign="top">
828 * CURLOPT_RESUME_FROM</td>
829 *
830 * The offset, in bytes, to resume a transfer from.
831 * </td>
832 *
833 * </td>
834 * </tr>
835 * <tr valign="top">
836 * CURLOPT_SSL_VERIFYHOST</td>
837 *
838 * 1 to check the existence of a common name in the
839 * SSL peer certificate. 2 to check the existence of
840 * a common name and also verify that it matches the hostname
841 * provided. In production environments the value of this option
842 * should be kept at 2 (default value).
843 * </td>
844 *
845 * Support for value 1 removed in cURL 7.28.1
846 * </td>
847 * </tr>
848 * <tr valign="top">
849 * CURLOPT_SSLVERSION</td>
850 *
851 * The SSL version (2 or 3) to use. By default PHP will try to determine
852 * this itself, although in some cases this must be set manually.
853 * </td>
854 *
855 * </td>
856 * </tr>
857 * <tr valign="top">
858 * CURLOPT_TIMECONDITION</td>
859 *
860 * How CURLOPT_TIMEVALUE is treated.
861 * Use CURL_TIMECOND_IFMODSINCE to return the
862 * page only if it has been modified since the time specified in
863 * CURLOPT_TIMEVALUE. If it hasn't been modified,
864 * a "304 Not Modified" header will be returned
865 * assuming CURLOPT_HEADER is true.
866 * Use CURL_TIMECOND_IFUNMODSINCE for the reverse
867 * effect. CURL_TIMECOND_IFMODSINCE is the
868 * default.
869 * </td>
870 *
871 * </td>
872 * </tr>
873 * <tr valign="top">
874 * CURLOPT_TIMEOUT</td>
875 *
876 * The maximum number of seconds to allow cURL functions to execute.
877 * </td>
878 *
879 * </td>
880 * </tr>
881 * <tr valign="top">
882 * CURLOPT_TIMEOUT_MS</td>
883 *
884 * The maximum number of milliseconds to allow cURL functions to
885 * execute.
886 *
887 * If libcurl is built to use the standard system name resolver, that
888 * portion of the connect will still use full-second resolution for
889 * timeouts with a minimum timeout allowed of one second.
890 * </td>
891 *
892 * Added in cURL 7.16.2. Available since PHP 5.2.3.
893 * </td>
894 * </tr>
895 * <tr valign="top">
896 * CURLOPT_TIMEVALUE</td>
897 *
898 * The time in seconds since January 1st, 1970. The time will be used
899 * by CURLOPT_TIMECONDITION. By default,
900 * CURL_TIMECOND_IFMODSINCE is used.
901 * </td>
902 *
903 * </td>
904 * </tr>
905 * <tr valign="top">
906 * CURLOPT_MAX_RECV_SPEED_LARGE</td>
907 *
908 * If a download exceeds this speed (counted in bytes per second) on
909 * cumulative average during the transfer, the transfer will pause to
910 * keep the average rate less than or equal to the parameter value.
911 * Defaults to unlimited speed.
912 * </td>
913 *
914 * Added in cURL 7.15.5. Available since PHP 5.4.0.
915 * </td>
916 * </tr>
917 * <tr valign="top">
918 * CURLOPT_MAX_SEND_SPEED_LARGE</td>
919 *
920 * If an upload exceeds this speed (counted in bytes per second) on
921 * cumulative average during the transfer, the transfer will pause to
922 * keep the average rate less than or equal to the parameter value.
923 * Defaults to unlimited speed.
924 * </td>
925 *
926 * Added in cURL 7.15.5. Available since PHP 5.4.0.
927 * </td>
928 * </tr>
929 * <tr valign="top">
930 * CURLOPT_SSH_AUTH_TYPES</td>
931 *
932 * A bitmask consisting of one or more of
933 * CURLSSH_AUTH_PUBLICKEY,
934 * CURLSSH_AUTH_PASSWORD,
935 * CURLSSH_AUTH_HOST,
936 * CURLSSH_AUTH_KEYBOARD. Set to
937 * CURLSSH_AUTH_ANY to let libcurl pick one.
938 * </td>
939 *
940 * Added in cURL 7.16.1.
941 * </td>
942 * </tr>
943 * <tr valign="top">
944 * CURLOPT_IPRESOLVE</td>
945 *
946 * Allows an application to select what kind of IP addresses to use when
947 * resolving host names. This is only interesting when using host names that
948 * resolve addresses using more than one version of IP, possible values are
949 * CURL_IPRESOLVE_WHATEVER,
950 * CURL_IPRESOLVE_V4,
951 * CURL_IPRESOLVE_V6, by default
952 * CURL_IPRESOLVE_WHATEVER.
953 * </td>
954 *
955 * Added in cURL 7.10.8.
956 * </td>
957 * </tr>
958 *
959 *
960 *
961 * </p>
962 * <p>
963 * value should be a string for the
964 * following values of the option parameter:
965 *
966 *
967 *
968 * <tr valign="top">
969 * <td>Option</td>
970 * <td>Set value to</td>
971 * <td>Notes</td>
972 * </tr>
973 *
974 *
975 * <tr valign="top">
976 * CURLOPT_CAINFO</td>
977 *
978 * The name of a file holding one or more certificates to verify the
979 * peer with. This only makes sense when used in combination with
980 * CURLOPT_SSL_VERIFYPEER.
981 * </td>
982 *
983 * Requires absolute path.
984 * </td>
985 * </tr>
986 * <tr valign="top">
987 * CURLOPT_CAPATH</td>
988 *
989 * A directory that holds multiple CA certificates. Use this option
990 * alongside CURLOPT_SSL_VERIFYPEER.
991 * </td>
992 *
993 * </td>
994 * </tr>
995 * <tr valign="top">
996 * CURLOPT_COOKIE</td>
997 *
998 * The contents of the "Cookie: " header to be
999 * used in the HTTP request.
1000 * Note that multiple cookies are separated with a semicolon followed
1001 * by a space (e.g., "fruit=apple; colour=red")
1002 * </td>
1003 *
1004 * </td>
1005 * </tr>
1006 * <tr valign="top">
1007 * CURLOPT_COOKIEFILE</td>
1008 *
1009 * The name of the file containing the cookie data. The cookie file can
1010 * be in Netscape format, or just plain HTTP-style headers dumped into
1011 * a file.
1012 * If the name is an empty string, no cookies are loaded, but cookie
1013 * handling is still enabled.
1014 * </td>
1015 *
1016 * </td>
1017 * </tr>
1018 * <tr valign="top">
1019 * CURLOPT_COOKIEJAR</td>
1020 *
1021 * The name of a file to save all internal cookies to when the handle is closed,
1022 * e.g. after a call to curl_close.
1023 * </td>
1024 *
1025 * </td>
1026 * </tr>
1027 * <tr valign="top">
1028 * CURLOPT_CUSTOMREQUEST</td>
1029 * <p>
1030 * A custom request method to use instead of
1031 * "GET" or "HEAD" when doing
1032 * a HTTP request. This is useful for doing
1033 * "DELETE" or other, more obscure HTTP requests.
1034 * Valid values are things like "GET",
1035 * "POST", "CONNECT" and so on;
1036 * i.e. Do not enter a whole HTTP request line here. For instance,
1037 * entering "GET /index.html HTTP/1.0\r\n\r\n"
1038 * would be incorrect.
1039 *
1040 * <p>
1041 * Don't do this without making sure the server supports the custom
1042 * request method first.
1043 * </p>
1044 *
1045 * </p></td>
1046 *
1047 * </td>
1048 * </tr>
1049 * <tr valign="top">
1050 * CURLOPT_EGDSOCKET</td>
1051 *
1052 * Like CURLOPT_RANDOM_FILE, except a filename
1053 * to an Entropy Gathering Daemon socket.
1054 * </td>
1055 *
1056 * </td>
1057 * </tr>
1058 * <tr valign="top">
1059 * CURLOPT_ENCODING</td>
1060 *
1061 * The contents of the "Accept-Encoding: " header.
1062 * This enables decoding of the response. Supported encodings are
1063 * "identity", "deflate", and
1064 * "gzip". If an empty string, "",
1065 * is set, a header containing all supported encoding types is sent.
1066 * </td>
1067 *
1068 * Added in cURL 7.10.
1069 * </td>
1070 * </tr>
1071 * <tr valign="top">
1072 * CURLOPT_FTPPORT</td>
1073 *
1074 * The value which will be used to get the IP address to use
1075 * for the FTP "PORT" instruction. The "PORT" instruction tells
1076 * the remote server to connect to our specified IP address. The
1077 * string may be a plain IP address, a hostname, a network
1078 * interface name (under Unix), or just a plain '-' to use the
1079 * systems default IP address.
1080 * </td>
1081 *
1082 * </td>
1083 * </tr>
1084 * <tr valign="top">
1085 * CURLOPT_INTERFACE</td>
1086 *
1087 * The name of the outgoing network interface to use. This can be an
1088 * interface name, an IP address or a host name.
1089 * </td>
1090 *
1091 * </td>
1092 * </tr>
1093 * <tr valign="top">
1094 * CURLOPT_KEYPASSWD</td>
1095 *
1096 * The password required to use the CURLOPT_SSLKEY
1097 * or CURLOPT_SSH_PRIVATE_KEYFILE private key.
1098 * </td>
1099 *
1100 * Added in cURL 7.16.1.
1101 * </td>
1102 * </tr>
1103 * <tr valign="top">
1104 * CURLOPT_KRB4LEVEL</td>
1105 *
1106 * The KRB4 (Kerberos 4) security level. Any of the following values
1107 * (in order from least to most powerful) are valid:
1108 * "clear",
1109 * "safe",
1110 * "confidential",
1111 * "private"..
1112 * If the string does not match one of these,
1113 * "private" is used. Setting this option to &null;
1114 * will disable KRB4 security. Currently KRB4 security only works
1115 * with FTP transactions.
1116 * </td>
1117 *
1118 * </td>
1119 * </tr>
1120 * <tr valign="top">
1121 * CURLOPT_POSTFIELDS</td>
1122 *
1123 *
1124 * The full data to post in a HTTP "POST" operation.
1125 * To post a file, prepend a filename with @ and
1126 * use the full path. The filetype can be explicitly specified by
1127 * following the filename with the type in the format
1128 * ';type=mimetype'. This parameter can either be
1129 * passed as a urlencoded string like 'para1=val1&para2=val2&...'
1130 * or as an array with the field name as key and field data as value.
1131 * If value is an array, the
1132 * Content-Type header will be set to
1133 * multipart/form-data.
1134 *
1135 *
1136 * As of PHP 5.2.0, value must be an array if
1137 * files are passed to this option with the @ prefix.
1138 *
1139 *
1140 * As of PHP 5.5.0, the @ prefix is deprecated and
1141 * files can be sent using CURLFile. The
1142 * @ prefix can be disabled for safe passing of
1143 * values beginning with @ by setting the
1144 * CURLOPT_SAFE_UPLOAD option to true.
1145 *
1146 * </td>
1147 *
1148 * </td>
1149 * </tr>
1150 * <tr valign="top">
1151 * CURLOPT_PROXY</td>
1152 *
1153 * The HTTP proxy to tunnel requests through.
1154 * </td>
1155 *
1156 * </td>
1157 * </tr>
1158 * <tr valign="top">
1159 * CURLOPT_PROXYUSERPWD</td>
1160 *
1161 * A username and password formatted as
1162 * "[username]:[password]" to use for the
1163 * connection to the proxy.
1164 * </td>
1165 *
1166 * </td>
1167 * </tr>
1168 * <tr valign="top">
1169 * CURLOPT_RANDOM_FILE</td>
1170 *
1171 * A filename to be used to seed the random number generator for SSL.
1172 * </td>
1173 *
1174 * </td>
1175 * </tr>
1176 * <tr valign="top">
1177 * CURLOPT_RANGE</td>
1178 *
1179 * Range(s) of data to retrieve in the format
1180 * "X-Y" where X or Y are optional. HTTP transfers
1181 * also support several intervals, separated with commas in the format
1182 * "X-Y,N-M".
1183 * </td>
1184 *
1185 * </td>
1186 * </tr>
1187 * <tr valign="top">
1188 * CURLOPT_REFERER</td>
1189 *
1190 * The contents of the "Referer: " header to be used
1191 * in a HTTP request.
1192 * </td>
1193 *
1194 * </td>
1195 * </tr>
1196 * <tr valign="top">
1197 * CURLOPT_SSH_HOST_PUBLIC_KEY_MD5</td>
1198 *
1199 * A string containing 32 hexadecimal digits. The string should be the
1200 * MD5 checksum of the remote host's public key, and libcurl will reject
1201 * the connection to the host unless the md5sums match.
1202 * This option is only for SCP and SFTP transfers.
1203 * </td>
1204 *
1205 * Added in cURL 7.17.1.
1206 * </td>
1207 * </tr>
1208 * <tr valign="top">
1209 * CURLOPT_SSH_PUBLIC_KEYFILE</td>
1210 *
1211 * The file name for your public key. If not used, libcurl defaults to
1212 * $HOME/.ssh/id_dsa.pub if the HOME environment variable is set,
1213 * and just "id_dsa.pub" in the current directory if HOME is not set.
1214 * </td>
1215 *
1216 * Added in cURL 7.16.1.
1217 * </td>
1218 * </tr>
1219 * <tr valign="top">
1220 * CURLOPT_SSH_PRIVATE_KEYFILE</td>
1221 *
1222 * The file name for your private key. If not used, libcurl defaults to
1223 * $HOME/.ssh/id_dsa if the HOME environment variable is set,
1224 * and just "id_dsa" in the current directory if HOME is not set.
1225 * If the file is password-protected, set the password with
1226 * CURLOPT_KEYPASSWD.
1227 * </td>
1228 *
1229 * Added in cURL 7.16.1.
1230 * </td>
1231 * </tr>
1232 * <tr valign="top">
1233 * CURLOPT_SSL_CIPHER_LIST</td>
1234 *
1235 * A list of ciphers to use for SSL. For example,
1236 * RC4-SHA and TLSv1 are valid
1237 * cipher lists.
1238 * </td>
1239 *
1240 * </td>
1241 * </tr>
1242 * <tr valign="top">
1243 * CURLOPT_SSLCERT</td>
1244 *
1245 * The name of a file containing a PEM formatted certificate.
1246 * </td>
1247 *
1248 * </td>
1249 * </tr>
1250 * <tr valign="top">
1251 * CURLOPT_SSLCERTPASSWD</td>
1252 *
1253 * The password required to use the
1254 * CURLOPT_SSLCERT certificate.
1255 * </td>
1256 *
1257 * </td>
1258 * </tr>
1259 * <tr valign="top">
1260 * CURLOPT_SSLCERTTYPE</td>
1261 *
1262 * The format of the certificate. Supported formats are
1263 * "PEM" (default), "DER",
1264 * and "ENG".
1265 * </td>
1266 *
1267 * Added in cURL 7.9.3.
1268 * </td>
1269 * </tr>
1270 * <tr valign="top">
1271 * CURLOPT_SSLENGINE</td>
1272 *
1273 * The identifier for the crypto engine of the private SSL key
1274 * specified in CURLOPT_SSLKEY.
1275 * </td>
1276 *
1277 * </td>
1278 * </tr>
1279 * <tr valign="top">
1280 * CURLOPT_SSLENGINE_DEFAULT</td>
1281 *
1282 * The identifier for the crypto engine used for asymmetric crypto
1283 * operations.
1284 * </td>
1285 *
1286 * </td>
1287 * </tr>
1288 * <tr valign="top">
1289 * CURLOPT_SSLKEY</td>
1290 *
1291 * The name of a file containing a private SSL key.
1292 * </td>
1293 *
1294 * </td>
1295 * </tr>
1296 * <tr valign="top">
1297 * CURLOPT_SSLKEYPASSWD</td>
1298 * <p>
1299 * The secret password needed to use the private SSL key specified in
1300 * CURLOPT_SSLKEY.
1301 *
1302 * <p>
1303 * Since this option contains a sensitive password, remember to keep
1304 * the PHP script it is contained within safe.
1305 * </p>
1306 *
1307 * </p></td>
1308 *
1309 * </td>
1310 * </tr>
1311 * <tr valign="top">
1312 * CURLOPT_SSLKEYTYPE</td>
1313 *
1314 * The key type of the private SSL key specified in
1315 * CURLOPT_SSLKEY. Supported key types are
1316 * "PEM" (default), "DER",
1317 * and "ENG".
1318 * </td>
1319 *
1320 * </td>
1321 * </tr>
1322 * <tr valign="top">
1323 * CURLOPT_URL</td>
1324 *
1325 * The URL to fetch. This can also be set when initializing a
1326 * session with curl_init.
1327 * </td>
1328 *
1329 * </td>
1330 * </tr>
1331 * <tr valign="top">
1332 * CURLOPT_USERAGENT</td>
1333 *
1334 * The contents of the "User-Agent: " header to be
1335 * used in a HTTP request.
1336 * </td>
1337 *
1338 * </td>
1339 * </tr>
1340 * <tr valign="top">
1341 * CURLOPT_USERPWD</td>
1342 *
1343 * A username and password formatted as
1344 * "[username]:[password]" to use for the
1345 * connection.
1346 * </td>
1347 *
1348 * </td>
1349 * </tr>
1350 *
1351 *
1352 *
1353 * </p>
1354 * <p>
1355 * value should be an array for the
1356 * following values of the option parameter:
1357 *
1358 *
1359 *
1360 * <tr valign="top">
1361 * <td>Option</td>
1362 * <td>Set value to</td>
1363 * <td>Notes</td>
1364 * </tr>
1365 *
1366 *
1367 * <tr valign="top">
1368 * CURLOPT_HTTP200ALIASES</td>
1369 *
1370 * An array of HTTP 200 responses that will be treated as valid
1371 * responses and not as errors.
1372 * </td>
1373 *
1374 * Added in cURL 7.10.3.
1375 * </td>
1376 * </tr>
1377 * <tr valign="top">
1378 * CURLOPT_HTTPHEADER</td>
1379 *
1380 * An array of HTTP header fields to set, in the format
1381 *
1382 * array('Content-type: text/plain', 'Content-length: 100')
1383 *
1384 * </td>
1385 *
1386 * </td>
1387 * </tr>
1388 * <tr valign="top">
1389 * CURLOPT_POSTQUOTE</td>
1390 *
1391 * An array of FTP commands to execute on the server after the FTP
1392 * request has been performed.
1393 * </td>
1394 *
1395 * </td>
1396 * </tr>
1397 * <tr valign="top">
1398 * CURLOPT_QUOTE</td>
1399 *
1400 * An array of FTP commands to execute on the server prior to the FTP
1401 * request.
1402 * </td>
1403 *
1404 * </td>
1405 * </tr>
1406 *
1407 *
1408 *
1409 * </p>
1410 * <p>
1411 * value should be a stream resource (using
1412 * fopen, for example) for the following values of the
1413 * option parameter:
1414 *
1415 *
1416 *
1417 * <tr valign="top">
1418 * <td>Option</td>
1419 * <td>Set value to</td>
1420 * </tr>
1421 *
1422 *
1423 * <tr valign="top">
1424 * CURLOPT_FILE</td>
1425 *
1426 * The file that the transfer should be written to. The default
1427 * is STDOUT (the browser window).
1428 * </td>
1429 * </tr>
1430 * <tr valign="top">
1431 * CURLOPT_INFILE</td>
1432 *
1433 * The file that the transfer should be read from when uploading.
1434 * </td>
1435 * </tr>
1436 * <tr valign="top">
1437 * CURLOPT_STDERR</td>
1438 *
1439 * An alternative location to output errors to instead of
1440 * STDERR.
1441 * </td>
1442 * </tr>
1443 * <tr valign="top">
1444 * CURLOPT_WRITEHEADER</td>
1445 *
1446 * The file that the header part of the transfer is written to.
1447 * </td>
1448 * </tr>
1449 *
1450 *
1451 *
1452 * </p>
1453 * <p>
1454 * value should be the name of a valid function or a Closure
1455 * for the following values of the option parameter:
1456 *
1457 *
1458 *
1459 * <tr valign="top">
1460 * <td>Option</td>
1461 * <td>Set value to</td>
1462 * </tr>
1463 *
1464 *
1465 * <tr valign="top">
1466 * CURLOPT_HEADERFUNCTION</td>
1467 *
1468 * A callback accepting two parameters.
1469 * The first is the cURL resource, the second is a
1470 * string with the header data to be written. The header data must
1471 * be written when by this callback. Return the number of
1472 * bytes written.
1473 * </td>
1474 * </tr>
1475 * <tr valign="top">
1476 * CURLOPT_PASSWDFUNCTION</td>
1477 *
1478 * A callback accepting three parameters.
1479 * The first is the cURL resource, the second is a
1480 * string containing a password prompt, and the third is the maximum
1481 * password length. Return the string containing the password.
1482 * </td>
1483 * </tr>
1484 * <tr valign="top">
1485 * CURLOPT_PROGRESSFUNCTION</td>
1486 *
1487 * <p>
1488 * A callback accepting five parameters.
1489 * The first is the cURL resource, the second is the total number of
1490 * bytes expected to be downloaded in this transfer, the third is
1491 * the number of bytes downloaded so far, the fourth is the total
1492 * number of bytes expected to be uploaded in this transfer, and the
1493 * fifth is the number of bytes uploaded so far.
1494 * </p>
1495 *
1496 * <p>
1497 * The callback is only called when the CURLOPT_NOPROGRESS
1498 * option is set to false.
1499 * </p>
1500 *
1501 * <p>
1502 * Return a non-zero value to abort the transfer. In which case, the
1503 * transfer will set a CURLE_ABORTED_BY_CALLBACK
1504 * error.
1505 * </p>
1506 * </td>
1507 * </tr>
1508 * <tr valign="top">
1509 * CURLOPT_READFUNCTION</td>
1510 *
1511 * A callback accepting three parameters.
1512 * The first is the cURL resource, the second is a
1513 * stream resource provided to cURL through the option
1514 * CURLOPT_INFILE, and the third is the maximum
1515 * amount of data to be read. The callback must return a string
1516 * with a length equal or smaller than the amount of data requested,
1517 * typically by reading it from the passed stream resource. It should
1518 * return an empty string to signal EOF.
1519 * </td>
1520 * </tr>
1521 * <tr valign="top">
1522 * CURLOPT_WRITEFUNCTION</td>
1523 *
1524 * A callback accepting two parameters.
1525 * The first is the cURL resource, and the second is a
1526 * string with the data to be written. The data must be saved by
1527 * this callback. It must return the exact number of bytes written
1528 * or the transfer will be aborted with an error.
1529 * </td>
1530 * </tr>
1531 *
1532 *
1533 *
1534 * </p>
1535 * <p>
1536 * Other values:
1537 *
1538 *
1539 *
1540 * <tr valign="top">
1541 * <td>Option</td>
1542 * <td>Set value to</td>
1543 * </tr>
1544 *
1545 *
1546 * <tr valign="top">
1547 * CURLOPT_SHARE</td>
1548 *
1549 * A result of curl_share_init. Makes the cURL
1550 * handle to use the data from the shared handle.
1551 * </td>
1552 * </tr>
1553 *
1554 *
1555 *
1556 * </p>
1557 * @return bool Returns true on success, false on failure.
1558 */
1559 function curl_setopt ($ch, $option, $value) {}
1560
1561 /**
1562 * Set multiple options for a cURL transfer
1563 * @link http://www.php.net/manual/en/function.curl-setopt-array.php
1564 * @param ch resource
1565 * @param options array <p>
1566 * An array specifying which options to set and their values.
1567 * The keys should be valid curl_setopt constants or
1568 * their integer equivalents.
1569 * </p>
1570 * @return bool true if all options were successfully set. If an option could
1571 * not be successfully set, false is immediately returned, ignoring any
1572 * future options in the options array.
1573 */
1574 function curl_setopt_array ($ch, array $options) {}
1575
1576 /**
1577 * Perform a cURL session
1578 * @link http://www.php.net/manual/en/function.curl-exec.php
1579 * @param ch resource
1580 * @return mixed Returns true on success, false on failure. However, if the CURLOPT_RETURNTRANSFER
1581 * option is set, it will return
1582 * the result on success, false on failure.
1583 */
1584 function curl_exec ($ch) {}
1585
1586 /**
1587 * Get information regarding a specific transfer
1588 * @link http://www.php.net/manual/en/function.curl-getinfo.php
1589 * @param ch resource
1590 * @param opt int[optional] <p>
1591 * This may be one of the following constants:
1592 *
1593 *
1594 *
1595 * CURLINFO_EFFECTIVE_URL - Last effective URL
1596 * @return mixed If opt is given, returns its value.
1597 * Otherwise, returns an associative array with the following elements
1598 * (which correspond to opt), or false on failure:
1599 *
1600 *
1601 *
1602 * "url"
1603 *
1604 *
1605 *
1606 *
1607 * "content_type"
1608 *
1609 *
1610 *
1611 *
1612 * "http_code"
1613 *
1614 *
1615 *
1616 *
1617 * "header_size"
1618 *
1619 *
1620 *
1621 *
1622 * "request_size"
1623 *
1624 *
1625 *
1626 *
1627 * "filetime"
1628 *
1629 *
1630 *
1631 *
1632 * "ssl_verify_result"
1633 *
1634 *
1635 *
1636 *
1637 * "redirect_count"
1638 *
1639 *
1640 *
1641 *
1642 * "total_time"
1643 *
1644 *
1645 *
1646 *
1647 * "namelookup_time"
1648 *
1649 *
1650 *
1651 *
1652 * "connect_time"
1653 *
1654 *
1655 *
1656 *
1657 * "pretransfer_time"
1658 *
1659 *
1660 *
1661 *
1662 * "size_upload"
1663 *
1664 *
1665 *
1666 *
1667 * "size_download"
1668 *
1669 *
1670 *
1671 *
1672 * "speed_download"
1673 *
1674 *
1675 *
1676 *
1677 * "speed_upload"
1678 *
1679 *
1680 *
1681 *
1682 * "download_content_length"
1683 *
1684 *
1685 *
1686 *
1687 * "upload_content_length"
1688 *
1689 *
1690 *
1691 *
1692 * "starttransfer_time"
1693 *
1694 *
1695 *
1696 *
1697 * "redirect_time"
1698 *
1699 *
1700 *
1701 *
1702 * "certinfo"
1703 *
1704 *
1705 *
1706 *
1707 * "request_header" (This is only set if the CURLINFO_HEADER_OUT
1708 * is set by a previous call to curl_setopt)
1709 */
1710 function curl_getinfo ($ch, $opt = null) {}
1711
1712 /**
1713 * Return a string containing the last error for the current session
1714 * @link http://www.php.net/manual/en/function.curl-error.php
1715 * @param ch resource
1716 * @return string the error message or '' (the empty string) if no
1717 * error occurred.
1718 */
1719 function curl_error ($ch) {}
1720
1721 /**
1722 * Return the last error number
1723 * @link http://www.php.net/manual/en/function.curl-errno.php
1724 * @param ch resource
1725 * @return int the error number or 0 (zero) if no error
1726 * occurred.
1727 */
1728 function curl_errno ($ch) {}
1729
1730 /**
1731 * Close a cURL session
1732 * @link http://www.php.net/manual/en/function.curl-close.php
1733 * @param ch resource
1734 * @return void
1735 */
1736 function curl_close ($ch) {}
1737
1738 /**
1739 * Return string describing the given error code
1740 * @link http://www.php.net/manual/en/function.curl-strerror.php
1741 * @param errornum int <p>
1742 * One of the cURL error codes constants.
1743 * </p>
1744 * @return string error description or &null; for invalid error code.
1745 */
1746 function curl_strerror ($errornum) {}
1747
1748 /**
1749 * Return string describing error code
1750 * @link http://www.php.net/manual/en/function.curl-multi-strerror.php
1751 * @param errornum int <p>
1752 * One of the CURLM error codes constants.
1753 * </p>
1754 * @return string error string for valid error code, &null; otherwise.
1755 */
1756 function curl_multi_strerror ($errornum) {}
1757
1758 /**
1759 * Reset all options of a libcurl session handle
1760 * @link http://www.php.net/manual/en/function.curl-reset.php
1761 * @param ch resource
1762 * @return void
1763 */
1764 function curl_reset ($ch) {}
1765
1766 /**
1767 * URL encodes the given string
1768 * @link http://www.php.net/manual/en/function.curl-escape.php
1769 * @param ch resource
1770 * @param str string <p>
1771 * The string to be encoded.
1772 * </p>
1773 * @return string escaped string&return.falseforfailure;.
1774 */
1775 function curl_escape ($ch, $str) {}
1776
1777 /**
1778 * Decodes the given URL encoded string
1779 * @link http://www.php.net/manual/en/function.curl-unescape.php
1780 * @param ch resource
1781 * @param str string <p>
1782 * The URL encoded string to be decoded.
1783 * </p>
1784 * @return string decoded string &return.falseforfailure;.
1785 */
1786 function curl_unescape ($ch, $str) {}
1787
1788 /**
1789 * Pause and unpause a connection
1790 * @link http://www.php.net/manual/en/function.curl-pause.php
1791 * @param ch resource
1792 * @param bitmask int <p>
1793 * One of CURLPAUSE_* constants.
1794 * </p>
1795 * @return int an error code (CURLE_OK for no error).
1796 */
1797 function curl_pause ($ch, $bitmask) {}
1798
1799 /**
1800 * Returns a new cURL multi handle
1801 * @link http://www.php.net/manual/en/function.curl-multi-init.php
1802 * @return resource a cURL multi handle resource on success, false on failure.
1803 */
1804 function curl_multi_init () {}
1805
1806 /**
1807 * Add a normal cURL handle to a cURL multi handle
1808 * @link http://www.php.net/manual/en/function.curl-multi-add-handle.php
1809 * @param mh resource
1810 * @param ch resource
1811 * @return int 0 on success, or one of the CURLM_XXX errors
1812 * code.
1813 */
1814 function curl_multi_add_handle ($mh, $ch) {}
1815
1816 /**
1817 * Remove a multi handle from a set of cURL handles
1818 * @link http://www.php.net/manual/en/function.curl-multi-remove-handle.php
1819 * @param mh resource
1820 * @param ch resource
1821 * @return int 0 on success, or one of the CURLM_XXX error
1822 * codes.
1823 */
1824 function curl_multi_remove_handle ($mh, $ch) {}
1825
1826 /**
1827 * Wait for activity on any curl_multi connection
1828 * @link http://www.php.net/manual/en/function.curl-multi-select.php
1829 * @param mh resource
1830 * @param timeout float[optional] <p>
1831 * Time, in seconds, to wait for a response.
1832 * </p>
1833 * @return int On success, returns the number of descriptors contained in
1834 * the descriptor sets. On failure, this function will return -1 on a select failure or timeout (from the underlying select system call).
1835 */
1836 function curl_multi_select ($mh, $timeout = null) {}
1837
1838 /**
1839 * Run the sub-connections of the current cURL handle
1840 * @link http://www.php.net/manual/en/function.curl-multi-exec.php
1841 * @param mh resource
1842 * @param still_running int <p>
1843 * A reference to a flag to tell whether the operations are still running.
1844 * </p>
1845 * @return int A cURL code defined in the cURL Predefined Constants.
1846 * </p>
1847 *
1848 * <p>
1849 * This only returns errors regarding the whole multi stack. There might still have
1850 * occurred problems on individual transfers even when this function returns
1851 * CURLM_OK.
1852 */
1853 function curl_multi_exec ($mh, &$still_running) {}
1854
1855 /**
1856 * Return the content of a cURL handle if <constant>CURLOPT_RETURNTRANSFER</constant> is set
1857 * @link http://www.php.net/manual/en/function.curl-multi-getcontent.php
1858 * @param ch resource
1859 * @return string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
1860 */
1861 function curl_multi_getcontent ($ch) {}
1862
1863 /**
1864 * Get information about the current transfers
1865 * @link http://www.php.net/manual/en/function.curl-multi-info-read.php
1866 * @param mh resource
1867 * @param msgs_in_queue int[optional] <p>
1868 * Number of messages that are still in the queue
1869 * </p>
1870 * @return array On success, returns an associative array for the message, false on failure.
1871 * </p>
1872 * <p>
1873 * <table>
1874 * Contents of the returned array
1875 *
1876 *
1877 * <tr valign="top">
1878 * <td>Key:</td>
1879 * <td>Value:</td>
1880 * </tr>
1881 *
1882 *
1883 * <tr valign="top">
1884 * <td>msg</td>
1885 * <td>The CURLMSG_DONE constant. Other return values
1886 * are currently not available.</td>
1887 * </tr>
1888 * <tr valign="top">
1889 * <td>result</td>
1890 * <td>One of the CURLE_* constants. If everything is
1891 * OK, the CURLE_OK will be the result.</td>
1892 * </tr>
1893 * <tr valign="top">
1894 * <td>handle</td>
1895 * <td>Resource of type curl indicates the handle which it concerns.</td>
1896 * </tr>
1897 *
1898 *
1899 * </table>
1900 */
1901 function curl_multi_info_read ($mh, &$msgs_in_queue = null) {}
1902
1903 /**
1904 * Close a set of cURL handles
1905 * @link http://www.php.net/manual/en/function.curl-multi-close.php
1906 * @param mh resource
1907 * @return void
1908 */
1909 function curl_multi_close ($mh) {}
1910
1911 /**
1912 * Set an option for the cURL multi handle
1913 * @link http://www.php.net/manual/en/function.curl-multi-setopt.php
1914 * @param mh resource <p>
1915 *
1916 * </p>
1917 * @param option int <p>
1918 * One of the CURLMOPT_* constants.
1919 * </p>
1920 * @param value mixed <p>
1921 * The value to be set on option.
1922 * </p>
1923 * <p>
1924 * value should be an int for the
1925 * following values of the option parameter:
1926 *
1927 *
1928 *
1929 * <tr valign="top">
1930 * Option</td>
1931 * Set value to</td>
1932 * </tr>
1933 *
1934 *
1935 * <tr valign="top">
1936 * CURLMOPT_PIPELINING</td>
1937 *
1938 * Pass 1 to enable or 0 to disable. Enabling pipelining on a multi
1939 * handle will make it attempt to perform HTTP Pipelining as far as
1940 * possible for transfers using this handle. This means that if you add
1941 * a second request that can use an already existing connection, the
1942 * second request will be "piped" on the same connection rather than
1943 * being executed in parallel.
1944 * </td>
1945 * </tr>
1946 * <tr valign="top">
1947 * CURLMOPT_MAXCONNECTS</td>
1948 *
1949 * Pass a number that will be used as the maximum amount of
1950 * simultaneously open connections that libcurl may cache. Default is
1951 * 10. When the cache is full, curl closes the oldest one in the cache
1952 * to prevent the number of open connections from increasing.
1953 * </td>
1954 * </tr>
1955 *
1956 *
1957 *
1958 * </p>
1959 * @return bool Returns true on success, false on failure.
1960 */
1961 function curl_multi_setopt ($mh, $option, $value) {}
1962
1963 /**
1964 * Initialize a cURL share handle
1965 * @link http://www.php.net/manual/en/function.curl-share-init.php
1966 * @return resource resource of type "cURL Share Handle".
1967 */
1968 function curl_share_init () {}
1969
1970 /**
1971 * Close a cURL share handle
1972 * @link http://www.php.net/manual/en/function.curl-share-close.php
1973 * @param sh resource <p>
1974 * A cURL share handle returned by curl_share_init
1975 * </p>
1976 * @return void
1977 */
1978 function curl_share_close ($sh) {}
1979
1980 /**
1981 * Set an option for a cURL share handle.
1982 * @link http://www.php.net/manual/en/function.curl-share-setopt.php
1983 * @param sh resource <p>
1984 * A cURL share handle returned by curl_share_init.
1985 * </p>
1986 * @param option int <p>
1987 *
1988 *
1989 *
1990 * <tr valign="top">
1991 * Option</td>
1992 * Description</td>
1993 * </tr>
1994 *
1995 *
1996 * <tr valign="top">
1997 * CURLSHOPT_SHARE</td>
1998 *
1999 * Specifies a type of data that should be shared.
2000 * </td>
2001 * </tr>
2002 * <tr valign="top">
2003 * CURLSHOPT_UNSHARE</td>
2004 *
2005 * Specifies a type of data that will be no longer shared.
2006 * </td>
2007 * </tr>
2008 *
2009 *
2010 *
2011 * </p>
2012 * @param value string <p>
2013 *
2014 *
2015 *
2016 * <tr valign="top">
2017 * Value</td>
2018 * Description</td>
2019 * </tr>
2020 *
2021 *
2022 * <tr valign="top">
2023 * CURL_LOCK_DATA_COOKIE</td>
2024 *
2025 * Shares cookie data.
2026 * </td>
2027 * </tr>
2028 * <tr valign="top">
2029 * CURL_LOCK_DATA_DNS</td>
2030 *
2031 * Shares DNS cache. Note that when you use cURL multi handles,
2032 * all handles added to the same multi handle will share DNS cache
2033 * by default.
2034 * </td>
2035 * </tr>
2036 * <tr valign="top">
2037 * CURL_LOCK_DATA_SSL_SESSION</td>
2038 *
2039 * Shares SSL session IDs, reducing the time spent on the SSL
2040 * handshake when reconnecting to the same server. Note that SSL
2041 * session IDs are reused withing the same handle by default.
2042 * </td>
2043 * </tr>
2044 *
2045 *
2046 *
2047 * </p>
2048 * @return bool Returns true on success, false on failure.
2049 */
2050 function curl_share_setopt ($sh, $option, $value) {}
2051
2052 /**
2053 * Create a CURLFile object
2054 * @link http://www.php.net/manual/en/function.curl-file-create.php
2055 * @param filename
2056 * @param mimetype[optional]
2057 * @param postname[optional]
2058 */
2059 function curl_file_create ($filename, $mimetype, $postname) {}
2060
2061
2062 /**
2063 * Available since PHP 5.1.0
2064 * @link http://www.php.net/manual/en/curl.constants.php
2065 */
2066 define ('CURLOPT_AUTOREFERER', 58);
2067 define ('CURLOPT_BINARYTRANSFER', 19914);
2068 define ('CURLOPT_BUFFERSIZE', 98);
2069 define ('CURLOPT_CAINFO', 10065);
2070 define ('CURLOPT_CAPATH', 10097);
2071 define ('CURLOPT_CONNECTTIMEOUT', 78);
2072 define ('CURLOPT_COOKIE', 10022);
2073 define ('CURLOPT_COOKIEFILE', 10031);
2074 define ('CURLOPT_COOKIEJAR', 10082);
2075
2076 /**
2077 * Available since PHP 5.1.0
2078 * @link http://www.php.net/manual/en/curl.constants.php
2079 */
2080 define ('CURLOPT_COOKIESESSION', 96);
2081 define ('CURLOPT_CRLF', 27);
2082 define ('CURLOPT_CUSTOMREQUEST', 10036);
2083 define ('CURLOPT_DNS_CACHE_TIMEOUT', 92);
2084 define ('CURLOPT_DNS_USE_GLOBAL_CACHE', 91);
2085 define ('CURLOPT_EGDSOCKET', 10077);
2086 define ('CURLOPT_ENCODING', 10102);
2087 define ('CURLOPT_FAILONERROR', 45);
2088 define ('CURLOPT_FILE', 10001);
2089 define ('CURLOPT_FILETIME', 69);
2090
2091 /**
2092 * This constant is not available when open_basedir
2093 * or safe_mode are enabled.
2094 * @link http://www.php.net/manual/en/curl.constants.php
2095 */
2096 define ('CURLOPT_FOLLOWLOCATION', 52);
2097 define ('CURLOPT_FORBID_REUSE', 75);
2098 define ('CURLOPT_FRESH_CONNECT', 74);
2099 define ('CURLOPT_FTPAPPEND', 50);
2100 define ('CURLOPT_FTPLISTONLY', 48);
2101 define ('CURLOPT_FTPPORT', 10017);
2102 define ('CURLOPT_FTP_USE_EPRT', 106);
2103 define ('CURLOPT_FTP_USE_EPSV', 85);
2104 define ('CURLOPT_HEADER', 42);
2105 define ('CURLOPT_HEADERFUNCTION', 20079);
2106 define ('CURLOPT_HTTP200ALIASES', 10104);
2107 define ('CURLOPT_HTTPGET', 80);
2108 define ('CURLOPT_HTTPHEADER', 10023);
2109 define ('CURLOPT_HTTPPROXYTUNNEL', 61);
2110 define ('CURLOPT_HTTP_VERSION', 84);
2111 define ('CURLOPT_INFILE', 10009);
2112 define ('CURLOPT_INFILESIZE', 14);
2113 define ('CURLOPT_INTERFACE', 10062);
2114 define ('CURLOPT_KRB4LEVEL', 10063);
2115 define ('CURLOPT_LOW_SPEED_LIMIT', 19);
2116 define ('CURLOPT_LOW_SPEED_TIME', 20);
2117 define ('CURLOPT_MAXCONNECTS', 71);
2118 define ('CURLOPT_MAXREDIRS', 68);
2119 define ('CURLOPT_NETRC', 51);
2120 define ('CURLOPT_NOBODY', 44);
2121 define ('CURLOPT_NOPROGRESS', 43);
2122 define ('CURLOPT_NOSIGNAL', 99);
2123 define ('CURLOPT_PORT', 3);
2124 define ('CURLOPT_POST', 47);
2125 define ('CURLOPT_POSTFIELDS', 10015);
2126 define ('CURLOPT_POSTQUOTE', 10039);
2127 define ('CURLOPT_PREQUOTE', 10093);
2128
2129 /**
2130 * Available since PHP 5.2.4
2131 * @link http://www.php.net/manual/en/curl.constants.php
2132 */
2133 define ('CURLOPT_PRIVATE', 10103);
2134
2135 /**
2136 * Available since PHP 5.3.0
2137 * @link http://www.php.net/manual/en/curl.constants.php
2138 */
2139 define ('CURLOPT_PROGRESSFUNCTION', 20056);
2140 define ('CURLOPT_PROXY', 10004);
2141 define ('CURLOPT_PROXYPORT', 59);
2142 define ('CURLOPT_PROXYTYPE', 101);
2143 define ('CURLOPT_PROXYUSERPWD', 10006);
2144 define ('CURLOPT_PUT', 54);
2145 define ('CURLOPT_QUOTE', 10028);
2146 define ('CURLOPT_RANDOM_FILE', 10076);
2147 define ('CURLOPT_RANGE', 10007);
2148 define ('CURLOPT_READDATA', 10009);
2149 define ('CURLOPT_READFUNCTION', 20012);
2150 define ('CURLOPT_REFERER', 10016);
2151 define ('CURLOPT_RESUME_FROM', 21);
2152 define ('CURLOPT_RETURNTRANSFER', 19913);
2153 define ('CURLOPT_SHARE', 10100);
2154 define ('CURLOPT_SSLCERT', 10025);
2155 define ('CURLOPT_SSLCERTPASSWD', 10026);
2156 define ('CURLOPT_SSLCERTTYPE', 10086);
2157 define ('CURLOPT_SSLENGINE', 10089);
2158 define ('CURLOPT_SSLENGINE_DEFAULT', 90);
2159 define ('CURLOPT_SSLKEY', 10087);
2160 define ('CURLOPT_SSLKEYPASSWD', 10026);
2161 define ('CURLOPT_SSLKEYTYPE', 10088);
2162 define ('CURLOPT_SSLVERSION', 32);
2163 define ('CURLOPT_SSL_CIPHER_LIST', 10083);
2164 define ('CURLOPT_SSL_VERIFYHOST', 81);
2165 define ('CURLOPT_SSL_VERIFYPEER', 64);
2166 define ('CURLOPT_STDERR', 10037);
2167 define ('CURLOPT_TELNETOPTIONS', 10070);
2168 define ('CURLOPT_TIMECONDITION', 33);
2169 define ('CURLOPT_TIMEOUT', 13);
2170 define ('CURLOPT_TIMEVALUE', 34);
2171 define ('CURLOPT_TRANSFERTEXT', 53);
2172 define ('CURLOPT_UNRESTRICTED_AUTH', 105);
2173 define ('CURLOPT_UPLOAD', 46);
2174 define ('CURLOPT_URL', 10002);
2175 define ('CURLOPT_USERAGENT', 10018);
2176 define ('CURLOPT_USERPWD', 10005);
2177 define ('CURLOPT_VERBOSE', 41);
2178 define ('CURLOPT_WRITEFUNCTION', 20011);
2179 define ('CURLOPT_WRITEHEADER', 10029);
2180 define ('CURLE_ABORTED_BY_CALLBACK', 42);
2181 define ('CURLE_BAD_CALLING_ORDER', 44);
2182 define ('CURLE_BAD_CONTENT_ENCODING', 61);
2183 define ('CURLE_BAD_DOWNLOAD_RESUME', 36);
2184 define ('CURLE_BAD_FUNCTION_ARGUMENT', 43);
2185 define ('CURLE_BAD_PASSWORD_ENTERED', 46);
2186 define ('CURLE_COULDNT_CONNECT', 7);
2187 define ('CURLE_COULDNT_RESOLVE_HOST', 6);
2188 define ('CURLE_COULDNT_RESOLVE_PROXY', 5);
2189 define ('CURLE_FAILED_INIT', 2);
2190 define ('CURLE_FILE_COULDNT_READ_FILE', 37);
2191 define ('CURLE_FTP_ACCESS_DENIED', 9);
2192 define ('CURLE_FTP_BAD_DOWNLOAD_RESUME', 36);
2193 define ('CURLE_FTP_CANT_GET_HOST', 15);
2194 define ('CURLE_FTP_CANT_RECONNECT', 16);
2195 define ('CURLE_FTP_COULDNT_GET_SIZE', 32);
2196 define ('CURLE_FTP_COULDNT_RETR_FILE', 19);
2197 define ('CURLE_FTP_COULDNT_SET_ASCII', 29);
2198 define ('CURLE_FTP_COULDNT_SET_BINARY', 17);
2199 define ('CURLE_FTP_COULDNT_STOR_FILE', 25);
2200 define ('CURLE_FTP_COULDNT_USE_REST', 31);
2201 define ('CURLE_FTP_PARTIAL_FILE', 18);
2202 define ('CURLE_FTP_PORT_FAILED', 30);
2203 define ('CURLE_FTP_QUOTE_ERROR', 21);
2204 define ('CURLE_FTP_USER_PASSWORD_INCORRECT', 10);
2205 define ('CURLE_FTP_WEIRD_227_FORMAT', 14);
2206 define ('CURLE_FTP_WEIRD_PASS_REPLY', 11);
2207 define ('CURLE_FTP_WEIRD_PASV_REPLY', 13);
2208 define ('CURLE_FTP_WEIRD_SERVER_REPLY', 8);
2209 define ('CURLE_FTP_WEIRD_USER_REPLY', 12);
2210 define ('CURLE_FTP_WRITE_ERROR', 20);
2211 define ('CURLE_FUNCTION_NOT_FOUND', 41);
2212 define ('CURLE_GOT_NOTHING', 52);
2213 define ('CURLE_HTTP_NOT_FOUND', 22);
2214 define ('CURLE_HTTP_PORT_FAILED', 45);
2215 define ('CURLE_HTTP_POST_ERROR', 34);
2216 define ('CURLE_HTTP_RANGE_ERROR', 33);
2217 define ('CURLE_HTTP_RETURNED_ERROR', 22);
2218 define ('CURLE_LDAP_CANNOT_BIND', 38);
2219 define ('CURLE_LDAP_SEARCH_FAILED', 39);
2220 define ('CURLE_LIBRARY_NOT_FOUND', 40);
2221 define ('CURLE_MALFORMAT_USER', 24);
2222 define ('CURLE_OBSOLETE', 50);
2223 define ('CURLE_OK', 0);
2224 define ('CURLE_OPERATION_TIMEDOUT', 28);
2225 define ('CURLE_OPERATION_TIMEOUTED', 28);
2226 define ('CURLE_OUT_OF_MEMORY', 27);
2227 define ('CURLE_PARTIAL_FILE', 18);
2228 define ('CURLE_READ_ERROR', 26);
2229 define ('CURLE_RECV_ERROR', 56);
2230 define ('CURLE_SEND_ERROR', 55);
2231 define ('CURLE_SHARE_IN_USE', 57);
2232 define ('CURLE_SSL_CACERT', 60);
2233 define ('CURLE_SSL_CERTPROBLEM', 58);
2234 define ('CURLE_SSL_CIPHER', 59);
2235 define ('CURLE_SSL_CONNECT_ERROR', 35);
2236 define ('CURLE_SSL_ENGINE_NOTFOUND', 53);
2237 define ('CURLE_SSL_ENGINE_SETFAILED', 54);
2238 define ('CURLE_SSL_PEER_CERTIFICATE', 51);
2239 define ('CURLE_TELNET_OPTION_SYNTAX', 49);
2240 define ('CURLE_TOO_MANY_REDIRECTS', 47);
2241 define ('CURLE_UNKNOWN_TELNET_OPTION', 48);
2242 define ('CURLE_UNSUPPORTED_PROTOCOL', 1);
2243 define ('CURLE_URL_MALFORMAT', 3);
2244 define ('CURLE_URL_MALFORMAT_USER', 4);
2245 define ('CURLE_WRITE_ERROR', 23);
2246 define ('CURLINFO_CONNECT_TIME', 3145733);
2247 define ('CURLINFO_CONTENT_LENGTH_DOWNLOAD', 3145743);
2248 define ('CURLINFO_CONTENT_LENGTH_UPLOAD', 3145744);
2249 define ('CURLINFO_CONTENT_TYPE', 1048594);
2250 define ('CURLINFO_EFFECTIVE_URL', 1048577);
2251 define ('CURLINFO_FILETIME', 2097166);
2252
2253 /**
2254 * Available since PHP 5.1.3
2255 * @link http://www.php.net/manual/en/curl.constants.php
2256 */
2257 define ('CURLINFO_HEADER_OUT', 2);
2258 define ('CURLINFO_HEADER_SIZE', 2097163);
2259 define ('CURLINFO_HTTP_CODE', 2097154);
2260 define ('CURLINFO_LASTONE', 42);
2261 define ('CURLINFO_NAMELOOKUP_TIME', 3145732);
2262 define ('CURLINFO_PRETRANSFER_TIME', 3145734);
2263
2264 /**
2265 * Available since PHP 5.2.4
2266 * @link http://www.php.net/manual/en/curl.constants.php
2267 */
2268 define ('CURLINFO_PRIVATE', 1048597);
2269 define ('CURLINFO_REDIRECT_COUNT', 2097172);
2270 define ('CURLINFO_REDIRECT_TIME', 3145747);
2271 define ('CURLINFO_REQUEST_SIZE', 2097164);
2272 define ('CURLINFO_SIZE_DOWNLOAD', 3145736);
2273 define ('CURLINFO_SIZE_UPLOAD', 3145735);
2274 define ('CURLINFO_SPEED_DOWNLOAD', 3145737);
2275 define ('CURLINFO_SPEED_UPLOAD', 3145738);
2276 define ('CURLINFO_SSL_VERIFYRESULT', 2097165);
2277 define ('CURLINFO_STARTTRANSFER_TIME', 3145745);
2278 define ('CURLINFO_TOTAL_TIME', 3145731);
2279 define ('CURLMSG_DONE', 1);
2280 define ('CURLVERSION_NOW', 3);
2281 define ('CURLM_BAD_EASY_HANDLE', 2);
2282 define ('CURLM_BAD_HANDLE', 1);
2283 define ('CURLM_CALL_MULTI_PERFORM', -1);
2284 define ('CURLM_INTERNAL_ERROR', 4);
2285 define ('CURLM_OK', 0);
2286 define ('CURLM_OUT_OF_MEMORY', 3);
2287 define ('CURLPROXY_HTTP', 0);
2288 define ('CURLPROXY_SOCKS4', 4);
2289 define ('CURLPROXY_SOCKS5', 5);
2290 define ('CURLSHOPT_NONE', 0);
2291 define ('CURLSHOPT_SHARE', 1);
2292 define ('CURLSHOPT_UNSHARE', 2);
2293 define ('CURL_HTTP_VERSION_1_0', 1);
2294 define ('CURL_HTTP_VERSION_1_1', 2);
2295 define ('CURL_HTTP_VERSION_NONE', 0);
2296 define ('CURL_LOCK_DATA_COOKIE', 2);
2297 define ('CURL_LOCK_DATA_DNS', 3);
2298 define ('CURL_LOCK_DATA_SSL_SESSION', 4);
2299 define ('CURL_NETRC_IGNORED', 0);
2300 define ('CURL_NETRC_OPTIONAL', 1);
2301 define ('CURL_NETRC_REQUIRED', 2);
2302 define ('CURL_SSLVERSION_DEFAULT', 0);
2303 define ('CURL_SSLVERSION_SSLv2', 2);
2304 define ('CURL_SSLVERSION_SSLv3', 3);
2305 define ('CURL_SSLVERSION_TLSv1', 1);
2306 define ('CURL_TIMECOND_IFMODSINCE', 1);
2307 define ('CURL_TIMECOND_IFUNMODSINCE', 2);
2308 define ('CURL_TIMECOND_LASTMOD', 3);
2309 define ('CURL_TIMECOND_NONE', 0);
2310 define ('CURL_VERSION_IPV6', 1);
2311 define ('CURL_VERSION_KERBEROS4', 2);
2312 define ('CURL_VERSION_LIBZ', 8);
2313 define ('CURL_VERSION_SSL', 4);
2314 define ('CURLOPT_HTTPAUTH', 107);
2315 define ('CURLAUTH_ANY', -17);
2316 define ('CURLAUTH_ANYSAFE', -18);
2317 define ('CURLAUTH_BASIC', 1);
2318 define ('CURLAUTH_DIGEST', 2);
2319 define ('CURLAUTH_GSSNEGOTIATE', 4);
2320 define ('CURLAUTH_NONE', 0);
2321 define ('CURLAUTH_NTLM', 8);
2322 define ('CURLINFO_HTTP_CONNECTCODE', 2097174);
2323 define ('CURLOPT_FTP_CREATE_MISSING_DIRS', 110);
2324 define ('CURLOPT_PROXYAUTH', 111);
2325 define ('CURLE_FILESIZE_EXCEEDED', 63);
2326 define ('CURLE_LDAP_INVALID_URL', 62);
2327 define ('CURLINFO_HTTPAUTH_AVAIL', 2097175);
2328 define ('CURLINFO_RESPONSE_CODE', 2097154);
2329 define ('CURLINFO_PROXYAUTH_AVAIL', 2097176);
2330 define ('CURLOPT_FTP_RESPONSE_TIMEOUT', 112);
2331 define ('CURLOPT_IPRESOLVE', 113);
2332 define ('CURLOPT_MAXFILESIZE', 114);
2333 define ('CURL_IPRESOLVE_V4', 1);
2334 define ('CURL_IPRESOLVE_V6', 2);
2335 define ('CURL_IPRESOLVE_WHATEVER', 0);
2336 define ('CURLE_FTP_SSL_FAILED', 64);
2337
2338 /**
2339 * Available since PHP 5.2.0
2340 * @link http://www.php.net/manual/en/curl.constants.php
2341 */
2342 define ('CURLFTPSSL_ALL', 3);
2343
2344 /**
2345 * Available since PHP 5.2.0
2346 * @link http://www.php.net/manual/en/curl.constants.php
2347 */
2348 define ('CURLFTPSSL_CONTROL', 2);
2349
2350 /**
2351 * Available since PHP 5.2.0
2352 * @link http://www.php.net/manual/en/curl.constants.php
2353 */
2354 define ('CURLFTPSSL_NONE', 0);
2355
2356 /**
2357 * Available since PHP 5.2.0
2358 * @link http://www.php.net/manual/en/curl.constants.php
2359 */
2360 define ('CURLFTPSSL_TRY', 1);
2361
2362 /**
2363 * Available since PHP 5.2.0
2364 * @link http://www.php.net/manual/en/curl.constants.php
2365 */
2366 define ('CURLOPT_FTP_SSL', 119);
2367 define ('CURLOPT_NETRC_FILE', 10118);
2368
2369 /**
2370 * Available since PHP 5.1.0
2371 * @link http://www.php.net/manual/en/curl.constants.php
2372 */
2373 define ('CURLFTPAUTH_DEFAULT', 0);
2374
2375 /**
2376 * Available since PHP 5.1.0
2377 * @link http://www.php.net/manual/en/curl.constants.php
2378 */
2379 define ('CURLFTPAUTH_SSL', 1);
2380
2381 /**
2382 * Available since PHP 5.1.0
2383 * @link http://www.php.net/manual/en/curl.constants.php
2384 */
2385 define ('CURLFTPAUTH_TLS', 2);
2386
2387 /**
2388 * Available since PHP 5.1.0
2389 * @link http://www.php.net/manual/en/curl.constants.php
2390 */
2391 define ('CURLOPT_FTPSSLAUTH', 129);
2392 define ('CURLOPT_FTP_ACCOUNT', 10134);
2393
2394 /**
2395 * Available since PHP 5.2.1
2396 * @link http://www.php.net/manual/en/curl.constants.php
2397 */
2398 define ('CURLOPT_TCP_NODELAY', 121);
2399 define ('CURLINFO_OS_ERRNO', 2097177);
2400 define ('CURLINFO_NUM_CONNECTS', 2097178);
2401 define ('CURLINFO_SSL_ENGINES', 4194331);
2402 define ('CURLINFO_COOKIELIST', 4194332);
2403 define ('CURLOPT_COOKIELIST', 10135);
2404 define ('CURLOPT_IGNORE_CONTENT_LENGTH', 136);
2405 define ('CURLOPT_FTP_SKIP_PASV_IP', 137);
2406 define ('CURLOPT_FTP_FILEMETHOD', 138);
2407 define ('CURLOPT_CONNECT_ONLY', 141);
2408 define ('CURLOPT_LOCALPORT', 139);
2409 define ('CURLOPT_LOCALPORTRANGE', 140);
2410 define ('CURLFTPMETHOD_MULTICWD', 1);
2411 define ('CURLFTPMETHOD_NOCWD', 2);
2412 define ('CURLFTPMETHOD_SINGLECWD', 3);
2413 define ('CURLINFO_FTP_ENTRY_PATH', 1048606);
2414 define ('CURLOPT_FTP_ALTERNATIVE_TO_USER', 10147);
2415
2416 /**
2417 * Available since PHP 5.4.0 and cURL 7.15.5
2418 * @link http://www.php.net/manual/en/curl.constants.php
2419 */
2420 define ('CURLOPT_MAX_RECV_SPEED_LARGE', 30146);
2421
2422 /**
2423 * Available since PHP 5.4.0 and cURL 7.15.5
2424 * @link http://www.php.net/manual/en/curl.constants.php
2425 */
2426 define ('CURLOPT_MAX_SEND_SPEED_LARGE', 30145);
2427 define ('CURLOPT_SSL_SESSIONID_CACHE', 150);
2428
2429 /**
2430 * Available since PHP 5.5.0 and cURL 7.16.0.
2431 * @link http://www.php.net/manual/en/curl.constants.php
2432 */
2433 define ('CURLMOPT_PIPELINING', 3);
2434 define ('CURLE_SSH', 79);
2435 define ('CURLOPT_FTP_SSL_CCC', 154);
2436 define ('CURLOPT_SSH_AUTH_TYPES', 151);
2437 define ('CURLOPT_SSH_PRIVATE_KEYFILE', 10153);
2438 define ('CURLOPT_SSH_PUBLIC_KEYFILE', 10152);
2439 define ('CURLFTPSSL_CCC_ACTIVE', 2);
2440 define ('CURLFTPSSL_CCC_NONE', 0);
2441 define ('CURLFTPSSL_CCC_PASSIVE', 1);
2442 define ('CURLOPT_CONNECTTIMEOUT_MS', 156);
2443 define ('CURLOPT_HTTP_CONTENT_DECODING', 158);
2444 define ('CURLOPT_HTTP_TRANSFER_DECODING', 157);
2445 define ('CURLOPT_TIMEOUT_MS', 155);
2446
2447 /**
2448 * Available since PHP 5.5.0 and cURL 7.16.3.
2449 * @link http://www.php.net/manual/en/curl.constants.php
2450 */
2451 define ('CURLMOPT_MAXCONNECTS', 6);
2452 define ('CURLOPT_KRBLEVEL', 10063);
2453 define ('CURLOPT_NEW_DIRECTORY_PERMS', 160);
2454 define ('CURLOPT_NEW_FILE_PERMS', 159);
2455 define ('CURLOPT_APPEND', 50);
2456 define ('CURLOPT_DIRLISTONLY', 48);
2457 define ('CURLOPT_USE_SSL', 119);
2458 define ('CURLUSESSL_ALL', 3);
2459 define ('CURLUSESSL_CONTROL', 2);
2460 define ('CURLUSESSL_NONE', 0);
2461 define ('CURLUSESSL_TRY', 1);
2462 define ('CURLOPT_SSH_HOST_PUBLIC_KEY_MD5', 10162);
2463 define ('CURLOPT_PROXY_TRANSFER_MODE', 166);
2464
2465 /**
2466 * Available since PHP 5.5.0 and cURL 7.18.0.
2467 * @link http://www.php.net/manual/en/curl.constants.php
2468 */
2469 define ('CURLPAUSE_ALL', 5);
2470
2471 /**
2472 * Available since PHP 5.5.0 and cURL 7.18.0.
2473 * @link http://www.php.net/manual/en/curl.constants.php
2474 */
2475 define ('CURLPAUSE_CONT', 0);
2476
2477 /**
2478 * Available since PHP 5.5.0 and cURL 7.18.0.
2479 * @link http://www.php.net/manual/en/curl.constants.php
2480 */
2481 define ('CURLPAUSE_RECV', 1);
2482
2483 /**
2484 * Available since PHP 5.5.0 and cURL 7.18.0.
2485 * @link http://www.php.net/manual/en/curl.constants.php
2486 */
2487 define ('CURLPAUSE_RECV_CONT', 0);
2488
2489 /**
2490 * Available since PHP 5.5.0 and cURL 7.18.0.
2491 * @link http://www.php.net/manual/en/curl.constants.php
2492 */
2493 define ('CURLPAUSE_SEND', 4);
2494
2495 /**
2496 * Available since PHP 5.5.0 and cURL 7.18.0.
2497 * @link http://www.php.net/manual/en/curl.constants.php
2498 */
2499 define ('CURLPAUSE_SEND_CONT', 0);
2500 define ('CURL_READFUNC_PAUSE', 268435457);
2501 define ('CURL_WRITEFUNC_PAUSE', 268435457);
2502 define ('CURLINFO_REDIRECT_URL', 1048607);
2503 define ('CURLINFO_APPCONNECT_TIME', 3145761);
2504 define ('CURLINFO_PRIMARY_IP', 1048608);
2505 define ('CURLOPT_ADDRESS_SCOPE', 171);
2506 define ('CURLOPT_CRLFILE', 10169);
2507 define ('CURLOPT_ISSUERCERT', 10170);
2508 define ('CURLOPT_KEYPASSWD', 10026);
2509 define ('CURLSSH_AUTH_ANY', -1);
2510 define ('CURLSSH_AUTH_DEFAULT', -1);
2511 define ('CURLSSH_AUTH_HOST', 4);
2512 define ('CURLSSH_AUTH_KEYBOARD', 8);
2513 define ('CURLSSH_AUTH_NONE', 0);
2514 define ('CURLSSH_AUTH_PASSWORD', 2);
2515 define ('CURLSSH_AUTH_PUBLICKEY', 1);
2516 define ('CURLINFO_CERTINFO', 4194338);
2517 define ('CURLOPT_CERTINFO', 172);
2518 define ('CURLOPT_PASSWORD', 10174);
2519 define ('CURLOPT_POSTREDIR', 161);
2520 define ('CURLOPT_PROXYPASSWORD', 10176);
2521 define ('CURLOPT_PROXYUSERNAME', 10175);
2522 define ('CURLOPT_USERNAME', 10173);
2523 define ('CURLAUTH_DIGEST_IE', 16);
2524 define ('CURLINFO_CONDITION_UNMET', 2097187);
2525 define ('CURLOPT_NOPROXY', 10177);
2526 define ('CURLOPT_PROTOCOLS', 181);
2527 define ('CURLOPT_REDIR_PROTOCOLS', 182);
2528 define ('CURLOPT_SOCKS5_GSSAPI_NEC', 180);
2529 define ('CURLOPT_SOCKS5_GSSAPI_SERVICE', 10179);
2530 define ('CURLOPT_TFTP_BLKSIZE', 178);
2531 define ('CURLPROTO_ALL', -1);
2532 define ('CURLPROTO_DICT', 512);
2533 define ('CURLPROTO_FILE', 1024);
2534 define ('CURLPROTO_FTP', 4);
2535 define ('CURLPROTO_FTPS', 8);
2536 define ('CURLPROTO_HTTP', 1);
2537 define ('CURLPROTO_HTTPS', 2);
2538 define ('CURLPROTO_LDAP', 128);
2539 define ('CURLPROTO_LDAPS', 256);
2540 define ('CURLPROTO_SCP', 16);
2541 define ('CURLPROTO_SFTP', 32);
2542 define ('CURLPROTO_TELNET', 64);
2543 define ('CURLPROTO_TFTP', 2048);
2544 define ('CURLOPT_SSH_KNOWNHOSTS', 10183);
2545 define ('CURLINFO_RTSP_CLIENT_CSEQ', 2097189);
2546 define ('CURLINFO_RTSP_CSEQ_RECV', 2097191);
2547 define ('CURLINFO_RTSP_SERVER_CSEQ', 2097190);
2548 define ('CURLINFO_RTSP_SESSION_ID', 1048612);
2549 define ('CURLOPT_FTP_USE_PRET', 188);
2550 define ('CURLOPT_MAIL_FROM', 10186);
2551 define ('CURLOPT_MAIL_RCPT', 10187);
2552 define ('CURLOPT_RTSP_CLIENT_CSEQ', 193);
2553 define ('CURLOPT_RTSP_REQUEST', 189);
2554 define ('CURLOPT_RTSP_SERVER_CSEQ', 194);
2555 define ('CURLOPT_RTSP_SESSION_ID', 10190);
2556 define ('CURLOPT_RTSP_STREAM_URI', 10191);
2557 define ('CURLOPT_RTSP_TRANSPORT', 10192);
2558 define ('CURLPROTO_IMAP', 4096);
2559 define ('CURLPROTO_IMAPS', 8192);
2560 define ('CURLPROTO_POP3', 16384);
2561 define ('CURLPROTO_POP3S', 32768);
2562 define ('CURLPROTO_RTSP', 262144);
2563 define ('CURLPROTO_SMTP', 65536);
2564 define ('CURLPROTO_SMTPS', 131072);
2565 define ('CURL_RTSPREQ_ANNOUNCE', 3);
2566 define ('CURL_RTSPREQ_DESCRIBE', 2);
2567 define ('CURL_RTSPREQ_GET_PARAMETER', 8);
2568 define ('CURL_RTSPREQ_OPTIONS', 1);
2569 define ('CURL_RTSPREQ_PAUSE', 6);
2570 define ('CURL_RTSPREQ_PLAY', 5);
2571 define ('CURL_RTSPREQ_RECEIVE', 11);
2572 define ('CURL_RTSPREQ_RECORD', 10);
2573 define ('CURL_RTSPREQ_SETUP', 4);
2574 define ('CURL_RTSPREQ_SET_PARAMETER', 9);
2575 define ('CURL_RTSPREQ_TEARDOWN', 7);
2576 define ('CURLINFO_LOCAL_IP', 1048617);
2577 define ('CURLINFO_LOCAL_PORT', 2097194);
2578 define ('CURLINFO_PRIMARY_PORT', 2097192);
2579 define ('CURLOPT_FNMATCH_FUNCTION', 20200);
2580 define ('CURLOPT_WILDCARDMATCH', 197);
2581 define ('CURLPROTO_RTMP', 524288);
2582 define ('CURLPROTO_RTMPE', 2097152);
2583 define ('CURLPROTO_RTMPS', 8388608);
2584 define ('CURLPROTO_RTMPT', 1048576);
2585 define ('CURLPROTO_RTMPTE', 4194304);
2586 define ('CURLPROTO_RTMPTS', 16777216);
2587 define ('CURL_FNMATCHFUNC_FAIL', 2);
2588 define ('CURL_FNMATCHFUNC_MATCH', 0);
2589 define ('CURL_FNMATCHFUNC_NOMATCH', 1);
2590 define ('CURLOPT_SAFE_UPLOAD', -1);
2591
2592 // End of curl v.
2593 ?>