4 * Copyright (c) 2003-2008, Lars Nilsson, <lars@quantumchamaeleon.com>
13 | CURLE_UNSUPPORTED_PROTOCOL
16 | CURLE_URL_MALFORMAT_USER
17 | CURLE_COULDNT_RESOLVE_PROXY
18 | CURLE_COULDNT_RESOLVE_HOST
19 | CURLE_COULDNT_CONNECT
20 | CURLE_FTP_WEIRD_SERVER_REPLY
21 | CURLE_FTP_ACCESS_DENIED
22 | CURLE_FTP_USER_PASSWORD_INCORRECT
23 | CURLE_FTP_WEIRD_PASS_REPLY
24 | CURLE_FTP_WEIRD_USER_REPLY
25 | CURLE_FTP_WEIRD_PASV_REPLY
26 | CURLE_FTP_WEIRD_227_FORMAT
27 | CURLE_FTP_CANT_GET_HOST
28 | CURLE_FTP_CANT_RECONNECT
29 | CURLE_FTP_COULDNT_SET_BINARY
31 | CURLE_FTP_COULDNT_RETR_FILE
32 | CURLE_FTP_WRITE_ERROR
33 | CURLE_FTP_QUOTE_ERROR
34 | CURLE_HTTP_NOT_FOUND
36 | CURLE_MALFORMAT_USER
37 | CURLE_FTP_COULDNT_STOR_FILE
40 | CURLE_OPERATION_TIMEOUTED
41 | CURLE_FTP_COULDNT_SET_ASCII
42 | CURLE_FTP_PORT_FAILED
43 | CURLE_FTP_COULDNT_USE_REST
44 | CURLE_FTP_COULDNT_GET_SIZE
45 | CURLE_HTTP_RANGE_ERROR
46 | CURLE_HTTP_POST_ERROR
47 | CURLE_SSL_CONNECT_ERROR
48 | CURLE_FTP_BAD_DOWNLOAD_RESUME
49 | CURLE_FILE_COULDNT_READ_FILE
50 | CURLE_LDAP_CANNOT_BIND
51 | CURLE_LDAP_SEARCH_FAILED
52 | CURLE_LIBRARY_NOT_FOUND
53 | CURLE_FUNCTION_NOT_FOUND
54 | CURLE_ABORTED_BY_CALLBACK
55 | CURLE_BAD_FUNCTION_ARGUMENT
56 | CURLE_BAD_CALLING_ORDER
57 | CURLE_HTTP_PORT_FAILED
58 | CURLE_BAD_PASSWORD_ENTERED
59 | CURLE_TOO_MANY_REDIRECTS
60 | CURLE_UNKNOWN_TELNET_OPTION
61 | CURLE_TELNET_OPTION_SYNTAX
63 | CURLE_SSL_PEER_CERTIFICATE
65 | CURLE_SSL_ENGINE_NOTFOUND
66 | CURLE_SSL_ENGINE_SETFAILED
70 | CURLE_SSL_CERTPROBLEM
73 | CURLE_BAD_CONTENT_ENCODING
74 | CURLE_LDAP_INVALID_URL
75 | CURLE_FILESIZE_EXCEEDED
76 | CURLE_FTP_SSL_FAILED
77 | CURLE_USE_SSL_FAILED
78 | CURLE_SEND_FAIL_REWIND
79 | CURLE_SSL_ENGINE_INITFAILED
83 | CURLE_REMOTE_DISK_FULL
85 | CURLE_TFTP_UNKNOWNID
86 | CURLE_REMOTE_FILE_EXISTS
87 | CURLE_TFTP_NOSUCHUSER
90 | CURLE_SSL_CACERT_BADFILE
91 | CURLE_REMOTE_FILE_NOT_FOUND
93 | CURLE_SSL_SHUTDOWN_FAILED
96 exception CurlException
of (curlCode
* int * string)
98 type curlNETRCOption
=
101 | CURL_NETRC_REQUIRED
105 | CURL_ENCODING_DEFLATE
107 type curlContentType
=
109 | CONTENTTYPE
of string
112 | CURLFORM_CONTENT
of string * string * curlContentType
113 | CURLFORM_FILECONTENT
of string * string * curlContentType
114 | CURLFORM_FILE
of string * string * curlContentType
115 | CURLFORM_BUFFER
of string * string * string * curlContentType
119 | CURLFORM_COPYNAME of string
120 | CURLFORM_PTRNAME of string
121 | CURLFORM_NAMELENGTH of int
122 | CURLFORM_COPYCONTENTS of string
123 | CURLFORM_PTRCONTENTS of string
124 | CURLFORM_FILE of string
125 | CURLFORM_FILECONTENT of string
126 | CURLFORM_CONTENTSLENGTH of int
127 | CURLFORM_CONTENTTYPE of string
130 type curlTimeCondition
=
131 | TIMECOND_IFMODSINCE
132 | TIMECOND_IFUNMODSINCE
141 type curlClosePolicy
=
143 | CLOSEPOLICY_LEAST_RECENTLY_USED
145 type curlSSLVerifyHost
=
146 | SSLVERIFYHOST_EXISTENCE
147 | SSLVERIFYHOST_HOSTNAME
149 type curlHTTPVersion
=
156 | DEBUGTYPE_HEADER_IN
157 | DEBUGTYPE_HEADER_OUT
165 | CURLAUTH_GSSNEGOTIATE
181 type curlFTPSSLAuth
=
199 | FTPMETHOD_SINGLECWD
201 type curlSSHAuthTypes
=
219 | CURLOPT_WRITEFUNCTION
of (string -> int)
220 | CURLOPT_READFUNCTION
of (int -> string)
221 | CURLOPT_INFILESIZE
of int
222 | CURLOPT_URL
of string
223 | CURLOPT_PROXY
of string
224 | CURLOPT_PROXYPORT
of int
225 | CURLOPT_HTTPPROXYTUNNEL
of bool
226 | CURLOPT_VERBOSE
of bool
227 | CURLOPT_HEADER
of bool
228 | CURLOPT_NOPROGRESS
of bool
229 | CURLOPT_NOSIGNAL
of bool
230 | CURLOPT_NOBODY
of bool
231 | CURLOPT_FAILONERROR
of bool
232 | CURLOPT_UPLOAD
of bool
233 | CURLOPT_POST
of bool
234 | CURLOPT_FTPLISTONLY
of bool
235 | CURLOPT_FTPAPPEND
of bool
236 | CURLOPT_NETRC
of curlNETRCOption
237 | CURLOPT_ENCODING
of curlEncoding
238 | CURLOPT_FOLLOWLOCATION
of bool
239 | CURLOPT_TRANSFERTEXT
of bool
240 | CURLOPT_PUT
of bool
241 | CURLOPT_USERPWD
of string
242 | CURLOPT_PROXYUSERPWD
of string
243 | CURLOPT_RANGE
of string
244 | CURLOPT_ERRORBUFFER
of string ref
245 | CURLOPT_TIMEOUT
of int
246 | CURLOPT_POSTFIELDS
of string
247 | CURLOPT_POSTFIELDSIZE
of int
248 | CURLOPT_REFERER
of string
249 | CURLOPT_USERAGENT
of string
250 | CURLOPT_FTPPORT
of string
251 | CURLOPT_LOWSPEEDLIMIT
of int
252 | CURLOPT_LOWSPEEDTIME
of int
253 | CURLOPT_RESUMEFROM
of int
254 | CURLOPT_COOKIE
of string
255 | CURLOPT_HTTPHEADER
of string list
256 | CURLOPT_HTTPPOST
of curlHTTPPost list
257 | CURLOPT_SSLCERT
of string
258 | CURLOPT_SSLCERTTYPE
of string
259 | CURLOPT_SSLCERTPASSWD
of string
260 | CURLOPT_SSLKEY
of string
261 | CURLOPT_SSLKEYTYPE
of string
262 | CURLOPT_SSLKEYPASSWD
of string
263 | CURLOPT_SSLENGINE
of string
264 | CURLOPT_SSLENGINEDEFAULT
of bool
265 | CURLOPT_CRLF
of bool
266 | CURLOPT_QUOTE
of string list
267 | CURLOPT_POSTQUOTE
of string list
268 | CURLOPT_HEADERFUNCTION
of (string -> int)
269 | CURLOPT_COOKIEFILE
of string
270 | CURLOPT_SSLVERSION
of int
271 | CURLOPT_TIMECONDITION
of curlTimeCondition
272 | CURLOPT_TIMEVALUE
of int32
273 | CURLOPT_CUSTOMREQUEST
of string
274 | CURLOPT_STDERR
(* UNIMPLEMENTED *)
275 | CURLOPT_INTERFACE
of string
276 | CURLOPT_KRB4LEVEL
of curlKRB4Level
277 | CURLOPT_PROGRESSFUNCTION
of (float -> float -> float -> float -> bool)
278 | CURLOPT_SSLVERIFYPEER
of bool
279 | CURLOPT_CAINFO
of string
280 | CURLOPT_CAPATH
of string
281 | CURLOPT_FILETIME
of bool
282 | CURLOPT_MAXREDIRS
of int
283 | CURLOPT_MAXCONNECTS
of int
284 | CURLOPT_CLOSEPOLICY
of curlClosePolicy
285 | CURLOPT_FRESHCONNECT
of bool
286 | CURLOPT_FORBIDREUSE
of bool
287 | CURLOPT_RANDOMFILE
of string
288 | CURLOPT_EGDSOCKET
of string
289 | CURLOPT_CONNECTTIMEOUT
of int
290 | CURLOPT_HTTPGET
of bool
291 | CURLOPT_SSLVERIFYHOST
of curlSSLVerifyHost
292 | CURLOPT_COOKIEJAR
of string
293 | CURLOPT_SSLCIPHERLIST
of string
294 | CURLOPT_HTTPVERSION
of curlHTTPVersion
295 | CURLOPT_FTPUSEEPSV
of bool
296 | CURLOPT_DNSCACHETIMEOUT
of int
297 | CURLOPT_DNSUSEGLOBALCACHE
of bool
298 | CURLOPT_DEBUGFUNCTION
of (t
-> curlDebugType
-> string -> unit)
299 | CURLOPT_PRIVATE
of string
300 | CURLOPT_HTTP200ALIASES
of string list
301 | CURLOPT_UNRESTRICTEDAUTH
of bool
302 | CURLOPT_FTPUSEEPRT
of bool
303 | CURLOPT_HTTPAUTH
of curlAuth list
304 | CURLOPT_FTPCREATEMISSINGDIRS
of bool
305 | CURLOPT_PROXYAUTH
of curlAuth list
306 | CURLOPT_FTPRESPONSETIMEOUT
of int
307 | CURLOPT_IPRESOLVE
of curlIPResolve
308 | CURLOPT_MAXFILESIZE
of int32
309 | CURLOPT_INFILESIZELARGE
of int64
310 | CURLOPT_RESUMEFROMLARGE
of int64
311 | CURLOPT_MAXFILESIZELARGE
of int64
312 | CURLOPT_NETRCFILE
of string
313 | CURLOPT_FTPSSL
of curlFTPSSL
314 | CURLOPT_POSTFIELDSIZELARGE
of int64
315 | CURLOPT_TCPNODELAY
of bool
316 | CURLOPT_FTPSSLAUTH
of curlFTPSSLAuth
317 | CURLOPT_IOCTLFUNCTION
of (t
-> curlIOCmd
-> curlIOErr
)
318 | CURLOPT_FTPACCOUNT
of string
319 | CURLOPT_COOKIELIST
of string
320 | CURLOPT_IGNORECONTENTLENGTH
of bool
321 | CURLOPT_FTPSKIPPASVIP
of bool
322 | CURLOPT_FTPFILEMETHOD
of curlFTPMethod
323 | CURLOPT_LOCALPORT
of int
324 | CURLOPT_LOCALPORTRANGE
of int
325 | CURLOPT_CONNECTONLY
of bool
326 | CURLOPT_MAXSENDSPEEDLARGE
of int64
327 | CURLOPT_MAXRECVSPEEDLARGE
of int64
328 | CURLOPT_FTPALTERNATIVETOUSER
of string
329 | CURLOPT_SSLSESSIONIDCACHE
of bool
330 | CURLOPT_SSHAUTHTYPES
of curlSSHAuthTypes list
331 | CURLOPT_SSHPUBLICKEYFILE
of string
332 | CURLOPT_SSHPRIVATEKEYFILE
of string
333 | CURLOPT_FTPSSLCCC
of curlFTPSSLCCC
334 | CURLOPT_TIMEOUTMS
of int
335 | CURLOPT_CONNECTTIMEOUTMS
of int
336 | CURLOPT_HTTPTRANSFERDECODING
of bool
337 | CURLOPT_HTTPCONTENTDECODING
of bool
338 | CURLOPT_NEWFILEPERMS
of int
339 | CURLOPT_NEWDIRECTORYPERMS
of int
340 | CURLOPT_POST301
of bool
341 | CURLOPT_SSHHOSTPUBLICKEYMD5
of string
342 | CURLOPT_COPYPOSTFIELDS
of string
343 | CURLOPT_PROXYTRANSFERMODE
of bool
344 | CURLOPT_SEEKFUNCTION
of (int64
-> curlSeek
-> int)
349 | CURLINIT_GLOBALWIN32
350 | CURLINIT_GLOBALNOTHING
353 | CURLINFO_EFFECTIVE_URL
355 | CURLINFO_RESPONSE_CODE
356 | CURLINFO_TOTAL_TIME
357 | CURLINFO_NAMELOOKUP_TIME
358 | CURLINFO_CONNECT_TIME
359 | CURLINFO_PRETRANSFER_TIME
360 | CURLINFO_SIZE_UPLOAD
361 | CURLINFO_SIZE_DOWNLOAD
362 | CURLINFO_SPEED_DOWNLOAD
363 | CURLINFO_SPEED_UPLOAD
364 | CURLINFO_HEADER_SIZE
365 | CURLINFO_REQUEST_SIZE
366 | CURLINFO_SSL_VERIFYRESULT
368 | CURLINFO_CONTENT_LENGTH_DOWNLOAD
369 | CURLINFO_CONTENT_LENGTH_UPLOAD
370 | CURLINFO_STARTTRANSFER_TIME
371 | CURLINFO_CONTENT_TYPE
372 | CURLINFO_REDIRECT_TIME
373 | CURLINFO_REDIRECT_COUNT
375 | CURLINFO_HTTP_CONNECTCODE
376 | CURLINFO_HTTPAUTH_AVAIL
377 | CURLINFO_PROXYAUTH_AVAIL
379 | CURLINFO_NUM_CONNECTS
380 | CURLINFO_SSL_ENGINES
381 | CURLINFO_COOKIELIST
382 | CURLINFO_LASTSOCKET
383 | CURLINFO_FTP_ENTRY_PATH
385 type curlInfoResult
=
386 | CURLINFO_String
of string
387 | CURLINFO_Long
of int
388 | CURLINFO_Double
of float
389 | CURLINFO_StringList
of string list
391 val global_init
: initOption
-> unit
392 val global_cleanup
: unit -> unit
394 val reset
: t
-> unit
395 (** Reset [t] to the default state *)
396 val duphandle
: t
-> t
397 val setopt
: t
-> curlOption
-> unit
398 val perform
: t
-> unit
399 val cleanup
: t
-> unit
400 val getinfo
: t
-> curlInfo
-> curlInfoResult
401 val escape
: string -> string
402 val unescape
: string -> string
403 val getdate
: string -> float -> float
404 val version
: unit -> string
406 val set_writefunction
: t
-> (string -> int) -> unit
407 val set_readfunction
: t
-> (int -> string) -> unit
408 val set_infilesize
: t
-> int -> unit
409 val set_url
: t
-> string -> unit
410 val set_proxy
: t
-> string -> unit
411 val set_proxyport
: t
-> int -> unit
412 val set_httpproxytunnel
: t
-> bool -> unit
413 val set_verbose
: t
-> bool -> unit
414 val set_header
: t
-> bool -> unit
415 val set_noprogress
: t
-> bool -> unit
416 val set_nosignal
: t
-> bool -> unit
417 val set_nobody
: t
-> bool -> unit
418 val set_failonerror
: t
-> bool -> unit
419 val set_upload
: t
-> bool -> unit
420 val set_post
: t
-> bool -> unit
421 val set_ftplistonly
: t
-> bool -> unit
422 val set_ftpappend
: t
-> bool -> unit
423 val set_netrc
: t
-> curlNETRCOption
-> unit
424 val set_encoding
: t
-> curlEncoding
-> unit
425 val set_followlocation
: t
-> bool -> unit
426 val set_transfertext
: t
-> bool -> unit
427 val set_put
: t
-> bool -> unit
428 val set_userpwd
: t
-> string -> unit
429 val set_proxyuserpwd
: t
-> string -> unit
430 val set_range
: t
-> string -> unit
431 val set_errorbuffer
: t
-> string ref -> unit
432 val set_timeout
: t
-> int -> unit
433 val set_postfields
: t
-> string -> unit
434 val set_postfieldsize
: t
-> int -> unit
435 val set_referer
: t
-> string -> unit
436 val set_useragent
: t
-> string -> unit
437 val set_ftpport
: t
-> string -> unit
438 val set_lowspeedlimit
: t
-> int -> unit
439 val set_lowspeedtime
: t
-> int -> unit
440 val set_resumefrom
: t
-> int -> unit
441 val set_cookie
: t
-> string -> unit
442 val set_httpheader
: t
-> string list
-> unit
443 val set_httppost
: t
-> curlHTTPPost list
-> unit
444 val set_sslcert
: t
-> string -> unit
445 val set_sslcerttype
: t
-> string -> unit
446 val set_sslcertpasswd
: t
-> string -> unit
447 val set_sslkey
: t
-> string -> unit
448 val set_sslkeytype
: t
-> string -> unit
449 val set_sslkeypasswd
: t
-> string -> unit
450 val set_sslengine
: t
-> string -> unit
451 val set_sslenginedefault
: t
-> bool -> unit
452 val set_crlf
: t
-> bool -> unit
453 val set_quote
: t
-> string list
-> unit
454 val set_postquote
: t
-> string list
-> unit
455 val set_headerfunction
: t
-> (string -> int) -> unit
456 val set_cookiefile
: t
-> string -> unit
457 val set_sslversion
: t
-> int -> unit
458 val set_timecondition
: t
-> curlTimeCondition
-> unit
459 val set_timevalue
: t
-> int32
-> unit
460 val set_customrequest
: t
-> string -> unit
461 val set_interface
: t
-> string -> unit
462 val set_krb4level
: t
-> curlKRB4Level
-> unit
463 val set_progressfunction
: t
-> (float -> float -> float -> float -> bool) -> unit
464 val set_sslverifypeer
: t
-> bool -> unit
465 val set_cainfo
: t
-> string -> unit
466 val set_capath
: t
-> string -> unit
467 val set_filetime
: t
-> bool -> unit
468 val set_maxredirs
: t
-> int -> unit
469 val set_maxconnects
: t
-> int -> unit
470 val set_closepolicy
: t
-> curlClosePolicy
-> unit
471 val set_freshconnect
: t
-> bool -> unit
472 val set_forbidreuse
: t
-> bool -> unit
473 val set_randomfile
: t
-> string -> unit
474 val set_egdsocket
: t
-> string -> unit
475 val set_connecttimeout
: t
-> int -> unit
476 val set_httpget
: t
-> bool -> unit
477 val set_sslverifyhost
: t
-> curlSSLVerifyHost
-> unit
478 val set_cookiejar
: t
-> string -> unit
479 val set_sslcipherlist
: t
-> string -> unit
480 val set_httpversion
: t
-> curlHTTPVersion
-> unit
481 val set_ftpuseepsv
: t
-> bool -> unit
482 val set_dnscachetimeout
: t
-> int -> unit
483 val set_dnsuseglobalcache
: t
-> bool -> unit
484 val set_debugfunction
: t
-> (t
-> curlDebugType
-> string -> unit) -> unit
485 val set_private
: t
-> string -> unit
486 val set_http200aliases
: t
-> string list
-> unit
487 val set_unrestrictedauth
: t
-> bool -> unit
488 val set_ftpuseeprt
: t
-> bool -> unit
489 val set_httpauth
: t
-> curlAuth list
-> unit
490 val set_ftpcreatemissingdirs
: t
-> bool -> unit
491 val set_proxyauth
: t
-> curlAuth list
-> unit
492 val set_ftpresponsetimeout
: t
-> int -> unit
493 val set_ipresolve
: t
-> curlIPResolve
-> unit
494 val set_maxfilesize
: t
-> int32
-> unit
495 val set_infilesizelarge
: t
-> int64
-> unit
496 val set_resumefromlarge
: t
-> int64
-> unit
497 val set_maxfilesizelarge
: t
-> int64
-> unit
498 val set_netrcfile
: t
-> string -> unit
499 val set_ftpssl
: t
-> curlFTPSSL
-> unit
500 val set_postfieldsizelarge
: t
-> int64
-> unit
501 val set_tcpnodelay
: t
-> bool -> unit
502 val set_ftpsslauth
: t
-> curlFTPSSLAuth
-> unit
503 val set_ioctlfunction
: t
-> (t
-> curlIOCmd
-> curlIOErr
) -> unit
504 val set_ftpaccount
: t
-> string -> unit
505 val set_cookielist
: t
-> string -> unit
506 val set_ignorecontentlength
: t
-> bool -> unit
507 val set_ftpskippasvip
: t
-> bool -> unit
508 val set_ftpfilemethod
: t
-> curlFTPMethod
-> unit
509 val set_localport
: t
-> int -> unit
510 val set_localportrange
: t
-> int -> unit
511 val set_connectonly
: t
-> bool -> unit
512 val set_maxsendspeedlarge
: t
-> int64
-> unit
513 val set_maxrecvspeedlarge
: t
-> int64
-> unit
514 val set_ftpalternativetouser
: t
-> string -> unit
515 val set_sslsessionidcache
: t
-> bool -> unit
516 val set_sshauthtypes
: t
-> curlSSHAuthTypes list
-> unit
517 val set_sshpublickeyfile
: t
-> string -> unit
518 val set_ftpsslccc
: t
-> curlFTPSSLCCC
-> unit
519 val set_timeoutms
: t
-> int -> unit
520 val set_connecttimeoutms
: t
-> int -> unit
521 val set_httptransferdecoding
: t
-> bool -> unit
522 val set_httpcontentdecoding
: t
-> bool -> unit
523 val set_newfileperms
: t
-> int -> unit
524 val set_newdirectoryperms
: t
-> int -> unit
525 val set_post301
: t
-> bool -> unit
526 val set_sshhostpublickeymd5
: t
-> string -> unit
527 val set_copypostfields
: t
-> string -> unit
528 val set_proxytransfermode
: t
-> bool -> unit
529 val set_seekfunction
: t
-> (int64
-> curlSeek
-> int) -> unit
531 val get_effectiveurl
: t
-> string
532 val get_httpcode
: t
-> int
533 val get_responsecode
: t
-> int
534 val get_totaltime
: t
-> float
535 val get_namelookuptime
: t
-> float
536 val get_connecttime
: t
-> float
537 val get_pretransfertime
: t
-> float
538 val get_sizeupload
: t
-> float
539 val get_sizedownload
: t
-> float
540 val get_speeddownload
: t
-> float
541 val get_speedupload
: t
-> float
542 val get_headersize
: t
-> int
543 val get_requestsize
: t
-> int
544 val get_sslverifyresult
: t
-> int
545 val get_filetime
: t
-> float
546 val get_contentlengthdownload
: t
-> float
547 val get_contentlengthupload
: t
-> float
548 val get_starttransfertime
: t
-> float
549 val get_contenttype
: t
-> string
550 val get_redirecttime
: t
-> float
551 val get_redirectcount
: t
-> int
552 val get_private
: t
-> string
553 val get_httpconnectcode
: t
-> int
554 val get_httpauthavail
: t
-> curlAuth list
555 val get_proxyauthavail
: t
-> curlAuth list
556 val get_oserrno
: t
-> int
557 val get_numconnects
: t
-> int
558 val get_sslengines
: t
-> string list
559 val get_cookielist
: t
-> string list
560 val get_lastsocket
: t
-> int
561 val get_ftpentrypath
: t
-> string
566 method cleanup
: unit
567 method duphandle
: 'a
568 method perform
: unit
570 method set_writefunction
: (string -> int) -> unit
571 method set_readfunction
: (int -> string) -> unit
572 method set_infilesize
: int -> unit
573 method set_url
: string -> unit
574 method set_proxy
: string -> unit
575 method set_proxyport
: int -> unit
576 method set_httpproxytunnel
: bool -> unit
577 method set_verbose
: bool -> unit
578 method set_header
: bool -> unit
579 method set_noprogress
: bool -> unit
580 method set_nosignal
: bool -> unit
581 method set_nobody
: bool -> unit
582 method set_failonerror
: bool -> unit
583 method set_upload
: bool -> unit
584 method set_post
: bool -> unit
585 method set_ftplistonly
: bool -> unit
586 method set_ftpappend
: bool -> unit
587 method set_netrc
: curlNETRCOption
-> unit
588 method set_encoding
: curlEncoding
-> unit
589 method set_followlocation
: bool -> unit
590 method set_transfertext
: bool -> unit
591 method set_put
: bool -> unit
592 method set_userpwd
: string -> unit
593 method set_proxyuserpwd
: string -> unit
594 method set_range
: string -> unit
595 method set_errorbuffer
: string ref -> unit
596 method set_timeout
: int -> unit
597 method set_postfields
: string -> unit
598 method set_postfieldsize
: int -> unit
599 method set_referer
: string -> unit
600 method set_useragent
: string -> unit
601 method set_ftpport
: string -> unit
602 method set_lowspeedlimit
: int -> unit
603 method set_lowspeedtime
: int -> unit
604 method set_resumefrom
: int -> unit
605 method set_cookie
: string -> unit
606 method set_httpheader
: string list
-> unit
607 method set_httppost
: curlHTTPPost list
-> unit
608 method set_sslcert
: string -> unit
609 method set_sslcerttype
: string -> unit
610 method set_sslcertpasswd
: string -> unit
611 method set_sslkey
: string -> unit
612 method set_sslkeytype
: string -> unit
613 method set_sslkeypasswd
: string -> unit
614 method set_sslengine
: string -> unit
615 method set_sslenginedefault
: bool -> unit
616 method set_crlf
: bool -> unit
617 method set_quote
: string list
-> unit
618 method set_postquote
: string list
-> unit
619 method set_headerfunction
: (string -> int) -> unit
620 method set_cookiefile
: string -> unit
621 method set_sslversion
: int -> unit
622 method set_timecondition
: curlTimeCondition
-> unit
623 method set_timevalue
: int32
-> unit
624 method set_customrequest
: string -> unit
625 method set_interface
: string -> unit
626 method set_krb4level
: curlKRB4Level
-> unit
627 method set_progressfunction
:
628 (float -> float -> float -> float -> bool) -> unit
629 method set_sslverifypeer
: bool -> unit
630 method set_cainfo
: string -> unit
631 method set_capath
: string -> unit
632 method set_filetime
: bool -> unit
633 method set_maxredirs
: int -> unit
634 method set_maxconnects
: int -> unit
635 method set_closepolicy
: curlClosePolicy
-> unit
636 method set_freshconnect
: bool -> unit
637 method set_forbidreuse
: bool -> unit
638 method set_randomfile
: string -> unit
639 method set_egdsocket
: string -> unit
640 method set_connecttimeout
: int -> unit
641 method set_httpget
: bool -> unit
642 method set_sslverifyhost
: curlSSLVerifyHost
-> unit
643 method set_cookiejar
: string -> unit
644 method set_sslcipherlist
: string -> unit
645 method set_httpversion
: curlHTTPVersion
-> unit
646 method set_ftpuseepsv
: bool -> unit
647 method set_dnscachetimeout
: int -> unit
648 method set_dnsuseglobalcache
: bool -> unit
649 method set_debugfunction
: (t
-> curlDebugType
-> string -> unit) -> unit
650 method set_private
: string -> unit
651 method set_http200aliases
: string list
-> unit
652 method set_unrestrictedauth
: bool -> unit
653 method set_ftpuseeprt
: bool -> unit
654 method set_httpauth
: curlAuth list
-> unit
655 method set_ftpcreatemissingdirs
: bool -> unit
656 method set_proxyauth
: curlAuth list
-> unit
657 method set_ftpresponsetimeout
: int -> unit
658 method set_ipresolve
: curlIPResolve
-> unit
659 method set_maxfilesize
: int32
-> unit
660 method set_infilesizelarge
: int64
-> unit
661 method set_resumefromlarge
: int64
-> unit
662 method set_maxfilesizelarge
: int64
-> unit
663 method set_netrcfile
: string -> unit
664 method set_ftpssl
: curlFTPSSL
-> unit
665 method set_postfieldsizelarge
: int64
-> unit
666 method set_tcpnodelay
: bool -> unit
667 method set_ftpsslauth
: curlFTPSSLAuth
-> unit
668 method set_ioctlfunction
: (t
-> curlIOCmd
-> curlIOErr
) -> unit
669 method set_ftpaccount
: string -> unit
670 method set_cookielist
: string -> unit
671 method set_ignorecontentlength
: bool -> unit
672 method set_ftpskippasvip
: bool -> unit
673 method set_ftpfilemethod
: curlFTPMethod
-> unit
674 method set_localport
: int -> unit
675 method set_localportrange
: int -> unit
676 method set_connectonly
: bool -> unit
677 method set_maxsendspeedlarge
: int64
-> unit
678 method set_maxrecvspeedlarge
: int64
-> unit
679 method set_ftpalternativetouser
: string -> unit
680 method set_sslsessionidcache
: bool -> unit
681 method set_sshauthtypes
: curlSSHAuthTypes list
-> unit
682 method set_sshpublickeyfile
: string -> unit
683 method set_sshprivatekeyfile
: string -> unit
684 method set_ftpsslccc
: curlFTPSSLCCC
-> unit
685 method set_timeoutms
: int -> unit
686 method set_connecttimeoutms
: int -> unit
687 method set_httptransferdecoding
: bool -> unit
688 method set_httpcontentdecoding
: bool -> unit
689 method set_newfileperms
: int -> unit
690 method set_newdirectoryperms
: int -> unit
691 method set_post301
: bool -> unit
692 method set_sshhostpublickeymd5
: string -> unit
693 method set_copypostfields
: string -> unit
694 method set_proxytransfermode
: bool -> unit
695 method set_seekfunction
: (int64
-> curlSeek
-> int) -> unit
697 method get_effectiveurl
: string
698 method get_httpcode
: int
699 method get_responsecode
: int
700 method get_totaltime
: float
701 method get_namelookuptime
: float
702 method get_connecttime
: float
703 method get_pretransfertime
: float
704 method get_sizeupload
: float
705 method get_sizedownload
: float
706 method get_speeddownload
: float
707 method get_speedupload
: float
708 method get_headersize
: int
709 method get_requestsize
: int
710 method get_sslverifyresult
: int
711 method get_filetime
: float
712 method get_contentlengthdownload
: float
713 method get_contentlengthupload
: float
714 method get_starttransfertime
: float
715 method get_contenttype
: string
716 method get_redirecttime
: float
717 method get_redirectcount
: int
718 method get_private
: string
719 method get_httpconnectcode
: int
720 method get_httpauthavail
: curlAuth list
721 method get_proxyauthavail
: curlAuth list
722 method get_oserrno
: int
723 method get_numconnects
: int
724 method get_sslengines
: string list
725 method get_cookielist
: string list
726 method get_lastsocket
: int
727 method get_ftpentrypath
: string
730 (** Curl multi stack. Functions may raise [Failure] on critical errors *)
733 (** type of Curl multi stack *)
736 (** create new multi stack *)
737 val create
: unit -> mt
739 (** add handle to multi stack *)
740 val add
: mt
-> t
-> unit
742 (** perform pending data transfers (if any) on all handles currently in multi stack
743 @return the number of handles that still transfer data *)
744 val perform
: mt
-> int
746 (** wait till there are some active data transfers on multi stack
747 @return whether [perform] should be called *)
748 val wait
: mt
-> bool
750 (** remove finished handle from the multi stack if any. The returned handle can be reused *)
751 val remove_finished
: mt
-> t
option
753 (** destroy multi handle (all transfers are stopped, but individual {!type: Curl.t} handles can be reused) *)
754 val cleanup
: mt
-> unit
756 (** events that should be reported for the socket *)
758 | POLL_NONE
(** none *)
759 | POLL_IN
(** available for reading *)
760 | POLL_OUT
(** available for writing *)
761 | POLL_INOUT
(** both *)
762 | POLL_REMOVE
(** socket not needed anymore *)
766 | EV_AUTO
(** determine socket status automatically (with extra system call) *)
767 | EV_IN
(** socket has incoming data *)
768 | EV_OUT
(** socket is available for writing *)
769 | EV_INOUT
(** both *)
771 (** set the function to receive notifications on what socket events
772 are currently interesting for libcurl on the specified socket handle *)
773 val set_socket_f
: mt
-> (mt
-> Unix.file_descr
-> poll
-> unit) -> unit
775 (** perform pending data transfers (if any) on all handles currently in multi stack
776 @return the number of handles that still transfer data *)
777 val action_all
: mt
-> int
779 (** [action mt fd status] performs pending data transfers on the specified socket only.
780 [status] specifies socket status *)
781 val action
: mt
-> Unix.file_descr
-> fd_status
-> int