curb 0.7.15 → 0.7.16
Sign up to get free protection for your applications and to get access to all the features.
- data/README +4 -0
- data/Rakefile +7 -3
- data/ext/curb.c +591 -0
- data/ext/curb.h +3 -3
- data/ext/curb_easy.c +261 -379
- data/ext/curb_easy.h +1 -0
- data/ext/curb_errors.c +8 -0
- data/ext/curb_macros.h +4 -0
- data/ext/curb_multi.c +26 -11
- data/ext/extconf.rb +212 -3
- data/lib/curb.rb +2 -307
- data/lib/curl/easy.rb +385 -0
- data/lib/curl/multi.rb +244 -0
- data/tests/bug_crash_on_debug.rb +33 -0
- data/tests/tc_curl_easy.rb +56 -8
- data/tests/tc_curl_easy_setopt.rb +31 -0
- metadata +31 -41
data/README
CHANGED
@@ -40,6 +40,10 @@ Curb is tested only on GNU/Linux x86 and Mac OSX - YMMV on other platforms.
|
|
40
40
|
If you do use another platform and experience problems, or if you can
|
41
41
|
expand on the above instructions, please report the issue at http://github.com/taf2/curb/issues
|
42
42
|
|
43
|
+
On Ubuntu, the dependencies can be satisfied by installing the following packages:
|
44
|
+
|
45
|
+
$ sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
|
46
|
+
|
43
47
|
Curb has fairly extensive RDoc comments in the source. You can build the
|
44
48
|
documentation with:
|
45
49
|
|
data/Rakefile
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
#
|
3
3
|
require 'rake/clean'
|
4
4
|
require 'rake/testtask'
|
5
|
-
|
5
|
+
begin
|
6
|
+
require 'rdoc/task'
|
7
|
+
rescue LoadError
|
8
|
+
require 'rake/rdoctask'
|
9
|
+
end
|
6
10
|
|
7
11
|
CLEAN.include '**/*.o'
|
8
|
-
CLEAN.include "**/*.#{Config::MAKEFILE_CONFIG['DLEXT']}"
|
12
|
+
CLEAN.include "**/*.#{(defined?(RbConfig) ? RbConfig : Config)::MAKEFILE_CONFIG['DLEXT']}"
|
9
13
|
CLOBBER.include 'doc'
|
10
14
|
CLOBBER.include '**/*.log'
|
11
15
|
CLOBBER.include '**/Makefile'
|
@@ -40,7 +44,7 @@ make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
|
|
40
44
|
MAKECMD = ENV['MAKE_CMD'] || make_program
|
41
45
|
MAKEOPTS = ENV['MAKE_OPTS'] || ''
|
42
46
|
|
43
|
-
CURB_SO = "ext/curb_core.#{Config::MAKEFILE_CONFIG['DLEXT']}"
|
47
|
+
CURB_SO = "ext/curb_core.#{(defined?(RbConfig) ? RbConfig : Config)::MAKEFILE_CONFIG['DLEXT']}"
|
44
48
|
|
45
49
|
file 'ext/Makefile' => 'ext/extconf.rb' do
|
46
50
|
Dir.chdir('ext') do
|
data/ext/curb.c
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
#include "curb.h"
|
9
|
+
#include "curb_upload.h"
|
9
10
|
|
10
11
|
VALUE mCurl;
|
11
12
|
|
@@ -352,6 +353,595 @@ void Init_curb_core() {
|
|
352
353
|
rb_define_const(mCurl, "CURLAUTH_ANY", INT2FIX(0));
|
353
354
|
#endif
|
354
355
|
|
356
|
+
CURB_DEFINE(CURLOPT_VERBOSE);
|
357
|
+
CURB_DEFINE(CURLOPT_HEADER);
|
358
|
+
CURB_DEFINE(CURLOPT_NOPROGRESS);
|
359
|
+
CURB_DEFINE(CURLOPT_NOSIGNAL);
|
360
|
+
CURB_DEFINE(CURLOPT_WRITEFUNCTION);
|
361
|
+
CURB_DEFINE(CURLOPT_WRITEDATA);
|
362
|
+
CURB_DEFINE(CURLOPT_READFUNCTION);
|
363
|
+
CURB_DEFINE(CURLOPT_READDATA);
|
364
|
+
CURB_DEFINE(CURLOPT_IOCTLFUNCTION);
|
365
|
+
CURB_DEFINE(CURLOPT_IOCTLDATA);
|
366
|
+
CURB_DEFINE(CURLOPT_SEEKFUNCTION);
|
367
|
+
CURB_DEFINE(CURLOPT_SEEKDATA);
|
368
|
+
CURB_DEFINE(CURLOPT_SOCKOPTFUNCTION);
|
369
|
+
CURB_DEFINE(CURLOPT_SOCKOPTDATA);
|
370
|
+
CURB_DEFINE(CURLOPT_OPENSOCKETFUNCTION);
|
371
|
+
CURB_DEFINE(CURLOPT_OPENSOCKETDATA);
|
372
|
+
CURB_DEFINE(CURLOPT_PROGRESSFUNCTION);
|
373
|
+
CURB_DEFINE(CURLOPT_PROGRESSDATA);
|
374
|
+
CURB_DEFINE(CURLOPT_HEADERFUNCTION);
|
375
|
+
CURB_DEFINE(CURLOPT_WRITEHEADER);
|
376
|
+
CURB_DEFINE(CURLOPT_DEBUGFUNCTION);
|
377
|
+
CURB_DEFINE(CURLOPT_DEBUGDATA);
|
378
|
+
CURB_DEFINE(CURLOPT_SSL_CTX_FUNCTION);
|
379
|
+
CURB_DEFINE(CURLOPT_SSL_CTX_DATA);
|
380
|
+
CURB_DEFINE(CURLOPT_CONV_TO_NETWORK_FUNCTION);
|
381
|
+
CURB_DEFINE(CURLOPT_CONV_FROM_NETWORK_FUNCTION);
|
382
|
+
CURB_DEFINE(CURLOPT_CONV_FROM_UTF8_FUNCTION);
|
383
|
+
|
384
|
+
#if HAVE_CURLOPT_INTERLEAVEFUNCTION
|
385
|
+
CURB_DEFINE(CURLOPT_INTERLEAVEFUNCTION);
|
386
|
+
#endif
|
387
|
+
#if HAVE_CURLOPT_INTERLEAVEDATA
|
388
|
+
CURB_DEFINE(CURLOPT_INTERLEAVEDATA);
|
389
|
+
#endif
|
390
|
+
#if HAVE_CURLOPT_CHUNK_BGN_FUNCTION
|
391
|
+
CURB_DEFINE(CURLOPT_CHUNK_BGN_FUNCTION);
|
392
|
+
#endif
|
393
|
+
#if HAVE_CURLOPT_CHUNK_END_FUNCTION
|
394
|
+
CURB_DEFINE(CURLOPT_CHUNK_END_FUNCTION);
|
395
|
+
#endif
|
396
|
+
#if HAVE_CURLOPT_CHUNK_DATA
|
397
|
+
CURB_DEFINE(CURLOPT_CHUNK_DATA);
|
398
|
+
#endif
|
399
|
+
#if HAVE_CURLOPT_FNMATCH_FUNCTION
|
400
|
+
CURB_DEFINE(CURLOPT_FNMATCH_FUNCTION);
|
401
|
+
#endif
|
402
|
+
#if HAVE_CURLOPT_FNMATCH_DATA
|
403
|
+
CURB_DEFINE(CURLOPT_FNMATCH_DATA);
|
404
|
+
#endif
|
405
|
+
#if HAVE_CURLOPT_ERRORBUFFER
|
406
|
+
CURB_DEFINE(CURLOPT_ERRORBUFFER);
|
407
|
+
#endif
|
408
|
+
#if HAVE_CURLOPT_STDERR
|
409
|
+
CURB_DEFINE(CURLOPT_STDERR);
|
410
|
+
#endif
|
411
|
+
#if HAVE_CURLOPT_FAILONERROR
|
412
|
+
CURB_DEFINE(CURLOPT_FAILONERROR);
|
413
|
+
#endif
|
414
|
+
CURB_DEFINE(CURLOPT_URL);
|
415
|
+
CURB_DEFINE(CURLOPT_PROTOCOLS);
|
416
|
+
CURB_DEFINE(CURLOPT_REDIR_PROTOCOLS);
|
417
|
+
CURB_DEFINE(CURLOPT_PROXY);
|
418
|
+
CURB_DEFINE(CURLOPT_PROXYPORT);
|
419
|
+
#if HAVE_CURLOPT_PROXYTYPE
|
420
|
+
CURB_DEFINE(CURLOPT_PROXYTYPE);
|
421
|
+
#endif
|
422
|
+
#if HAVE_CURLOPT_NOPROXY
|
423
|
+
CURB_DEFINE(CURLOPT_NOPROXY);
|
424
|
+
#endif
|
425
|
+
CURB_DEFINE(CURLOPT_HTTPPROXYTUNNEL);
|
426
|
+
#if HAVE_CURLOPT_SOCKS5_GSSAPI_SERVICE
|
427
|
+
CURB_DEFINE(CURLOPT_SOCKS5_GSSAPI_SERVICE);
|
428
|
+
#endif
|
429
|
+
#if HAVE_CURLOPT_SOCKS5_GSSAPI_NEC
|
430
|
+
CURB_DEFINE(CURLOPT_SOCKS5_GSSAPI_NEC);
|
431
|
+
#endif
|
432
|
+
CURB_DEFINE(CURLOPT_INTERFACE);
|
433
|
+
#if HAVE_CURLOPT_LOCALPORT
|
434
|
+
CURB_DEFINE(CURLOPT_LOCALPORT);
|
435
|
+
#endif
|
436
|
+
CURB_DEFINE(CURLOPT_DNS_CACHE_TIMEOUT);
|
437
|
+
CURB_DEFINE(CURLOPT_DNS_USE_GLOBAL_CACHE);
|
438
|
+
CURB_DEFINE(CURLOPT_BUFFERSIZE);
|
439
|
+
CURB_DEFINE(CURLOPT_PORT);
|
440
|
+
CURB_DEFINE(CURLOPT_TCP_NODELAY);
|
441
|
+
#if HAVE_CURLOPT_ADDRESS_SCOPE
|
442
|
+
CURB_DEFINE(CURLOPT_ADDRESS_SCOPE);
|
443
|
+
#endif
|
444
|
+
CURB_DEFINE(CURLOPT_NETRC);
|
445
|
+
CURB_DEFINE(CURL_NETRC_OPTIONAL);
|
446
|
+
CURB_DEFINE(CURL_NETRC_IGNORED);
|
447
|
+
CURB_DEFINE(CURL_NETRC_REQUIRED);
|
448
|
+
#if HAVE_CURLOPT_NETRC_FILE
|
449
|
+
CURB_DEFINE(CURLOPT_NETRC_FILE);
|
450
|
+
#endif
|
451
|
+
CURB_DEFINE(CURLOPT_USERPWD);
|
452
|
+
CURB_DEFINE(CURLOPT_PROXYUSERPWD);
|
453
|
+
#if HAVE_CURLOPT_USERNAME
|
454
|
+
CURB_DEFINE(CURLOPT_USERNAME);
|
455
|
+
#endif
|
456
|
+
#if HAVE_CURLOPT_PASSWORD
|
457
|
+
CURB_DEFINE(CURLOPT_PASSWORD);
|
458
|
+
#endif
|
459
|
+
#if HAVE_CURLOPT_PROXYUSERNAME
|
460
|
+
CURB_DEFINE(CURLOPT_PASSWORD);
|
461
|
+
#endif
|
462
|
+
#if HAVE_CURLOPT_PROXYPASSWORD
|
463
|
+
CURB_DEFINE(CURLOPT_PASSWORD);
|
464
|
+
#endif
|
465
|
+
|
466
|
+
#if HAVE_CURLOPT_HTTPAUTH
|
467
|
+
CURB_DEFINE(CURLOPT_HTTPAUTH);
|
468
|
+
#endif
|
469
|
+
#if HAVE_CURLAUTH_DIGEST_IE
|
470
|
+
CURB_DEFINE(CURLAUTH_DIGEST_IE);
|
471
|
+
#endif
|
472
|
+
#if HAVE_CURLAUTH_ONLY
|
473
|
+
CURB_DEFINE(CURLAUTH_ONLY);
|
474
|
+
#endif
|
475
|
+
#if HAVE_CURLOPT_TLSAUTH_TYPE
|
476
|
+
CURB_DEFINE(CURLOPT_TLSAUTH_TYPE);
|
477
|
+
#endif
|
478
|
+
#if HAVE_CURLOPT_TLSAUTH_SRP
|
479
|
+
CURB_DEFINE(CURLOPT_TLSAUTH_SRP);
|
480
|
+
#endif
|
481
|
+
#if HAVE_CURLOPT_TLSAUTH_USERNAME
|
482
|
+
CURB_DEFINE(CURLOPT_TLSAUTH_USERNAME);
|
483
|
+
#endif
|
484
|
+
#if HAVE_CURLOPT_TLSAUTH_PASSWORD
|
485
|
+
CURB_DEFINE(CURLOPT_TLSAUTH_PASSWORD);
|
486
|
+
#endif
|
487
|
+
#if HAVE_CURLOPT_PROXYAUTH
|
488
|
+
CURB_DEFINE(CURLOPT_PROXYAUTH);
|
489
|
+
#endif
|
490
|
+
#if HAVE_CURLOPT_AUTOREFERER
|
491
|
+
CURB_DEFINE(CURLOPT_AUTOREFERER);
|
492
|
+
#endif
|
493
|
+
#if HAVE_CURLOPT_ENCODING
|
494
|
+
CURB_DEFINE(CURLOPT_ENCODING);
|
495
|
+
#endif
|
496
|
+
#if HAVE_CURLOPT_FOLLOWLOCATION
|
497
|
+
CURB_DEFINE(CURLOPT_FOLLOWLOCATION);
|
498
|
+
#endif
|
499
|
+
#if HAVE_CURLOPT_UNRESTRICTED_AUTH
|
500
|
+
CURB_DEFINE(CURLOPT_UNRESTRICTED_AUTH);
|
501
|
+
#endif
|
502
|
+
#if HAVE_CURLOPT_MAXREDIRS
|
503
|
+
CURB_DEFINE(CURLOPT_MAXREDIRS);
|
504
|
+
#endif
|
505
|
+
#if HAVE_CURLOPT_POSTREDIR
|
506
|
+
CURB_DEFINE(CURLOPT_POSTREDIR);
|
507
|
+
#endif
|
508
|
+
#if HAVE_CURLOPT_PUT
|
509
|
+
CURB_DEFINE(CURLOPT_PUT);
|
510
|
+
#endif
|
511
|
+
#if HAVE_CURLOPT_POST
|
512
|
+
CURB_DEFINE(CURLOPT_POST);
|
513
|
+
#endif
|
514
|
+
CURB_DEFINE(CURLOPT_POSTFIELDS);
|
515
|
+
CURB_DEFINE(CURLOPT_POSTFIELDSIZE);
|
516
|
+
#if HAVE_CURLOPT_POSTFIELDSIZE_LARGE
|
517
|
+
CURB_DEFINE(CURLOPT_POSTFIELDSIZE_LARGE);
|
518
|
+
#endif
|
519
|
+
#if HAVE_CURLOPT_COPYPOSTFIELDS
|
520
|
+
CURB_DEFINE(CURLOPT_COPYPOSTFIELDS);
|
521
|
+
#endif
|
522
|
+
#if HAVE_CURLOPT_HTTPPOST
|
523
|
+
CURB_DEFINE(CURLOPT_HTTPPOST);
|
524
|
+
#endif
|
525
|
+
CURB_DEFINE(CURLOPT_REFERER);
|
526
|
+
CURB_DEFINE(CURLOPT_USERAGENT);
|
527
|
+
CURB_DEFINE(CURLOPT_HTTPHEADER);
|
528
|
+
#if HAVE_CURLOPT_HTTP200ALIASES
|
529
|
+
CURB_DEFINE(CURLOPT_HTTP200ALIASES);
|
530
|
+
#endif
|
531
|
+
|
532
|
+
CURB_DEFINE(CURLOPT_COOKIE);
|
533
|
+
CURB_DEFINE(CURLOPT_COOKIEFILE);
|
534
|
+
CURB_DEFINE(CURLOPT_COOKIEJAR);
|
535
|
+
|
536
|
+
#if HAVE_CURLOPT_COOKIESESSION
|
537
|
+
CURB_DEFINE(CURLOPT_COOKIESESSION);
|
538
|
+
#endif
|
539
|
+
#if HAVE_CURLOPT_COOKIELIST
|
540
|
+
CURB_DEFINE(CURLOPT_COOKIELIST);
|
541
|
+
#endif
|
542
|
+
#if HAVE_CURLOPT_HTTPGET
|
543
|
+
CURB_DEFINE(CURLOPT_HTTPGET);
|
544
|
+
#endif
|
545
|
+
CURB_DEFINE(CURLOPT_HTTP_VERSION);
|
546
|
+
CURB_DEFINE(CURL_HTTP_VERSION_NONE);
|
547
|
+
CURB_DEFINE(CURL_HTTP_VERSION_1_0);
|
548
|
+
CURB_DEFINE(CURL_HTTP_VERSION_1_1);
|
549
|
+
#if HAVE_CURLOPT_IGNORE_CONTENT_LENGTH
|
550
|
+
CURB_DEFINE(CURLOPT_IGNORE_CONTENT_LENGTH);
|
551
|
+
#endif
|
552
|
+
#if HAVE_CURLOPT_HTTP_CONTENT_DECODING
|
553
|
+
CURB_DEFINE(CURLOPT_HTTP_CONTENT_DECODING);
|
554
|
+
#endif
|
555
|
+
#if HAVE_CURLOPT_HTTP_TRANSFER_DECODING
|
556
|
+
CURB_DEFINE(CURLOPT_HTTP_TRANSFER_DECODING);
|
557
|
+
#endif
|
558
|
+
#if HAVE_CURLOPT_MAIL_FROM
|
559
|
+
CURB_DEFINE(CURLOPT_MAIL_FROM);
|
560
|
+
#endif
|
561
|
+
#if HAVE_CURLOPT_MAIL_RCPT
|
562
|
+
CURB_DEFINE(CURLOPT_MAIL_RCPT);
|
563
|
+
#endif
|
564
|
+
#if HAVE_CURLOPT_TFTP_BLKSIZE
|
565
|
+
CURB_DEFINE(CURLOPT_TFTP_BLKSIZE);
|
566
|
+
#endif
|
567
|
+
#if HAVE_CURLOPT_FTPPORT
|
568
|
+
CURB_DEFINE(CURLOPT_FTPPORT);
|
569
|
+
#endif
|
570
|
+
#if HAVE_CURLOPT_QUOTE
|
571
|
+
CURB_DEFINE(CURLOPT_QUOTE);
|
572
|
+
#endif
|
573
|
+
#if HAVE_CURLOPT_POSTQUOTE
|
574
|
+
CURB_DEFINE(CURLOPT_POSTQUOTE);
|
575
|
+
#endif
|
576
|
+
#if HAVE_CURLOPT_PREQUOTE
|
577
|
+
CURB_DEFINE(CURLOPT_PREQUOTE);
|
578
|
+
#endif
|
579
|
+
#if HAVE_CURLOPT_DIRLISTONLY
|
580
|
+
CURB_DEFINE(CURLOPT_DIRLISTONLY);
|
581
|
+
#endif
|
582
|
+
#if HAVE_CURLOPT_APPEND
|
583
|
+
CURB_DEFINE(CURLOPT_APPEND);
|
584
|
+
#endif
|
585
|
+
#if HAVE_CURLOPT_FTP_USE_EPRT
|
586
|
+
CURB_DEFINE(CURLOPT_FTP_USE_EPRT);
|
587
|
+
#endif
|
588
|
+
#if HAVE_CURLOPT_FTP_USE_EPSV
|
589
|
+
CURB_DEFINE(CURLOPT_FTP_USE_EPSV);
|
590
|
+
#endif
|
591
|
+
#if HAVE_CURLOPT_FTP_USE_PRET
|
592
|
+
CURB_DEFINE(CURLOPT_FTP_USE_PRET);
|
593
|
+
#endif
|
594
|
+
#if HAVE_CURLOPT_FTP_CREATE_MISSING_DIRS
|
595
|
+
CURB_DEFINE(CURLOPT_FTP_CREATE_MISSING_DIRS);
|
596
|
+
#endif
|
597
|
+
#if HAVE_CURLOPT_FTP_RESPONSE_TIMEOUT
|
598
|
+
CURB_DEFINE(CURLOPT_FTP_RESPONSE_TIMEOUT);
|
599
|
+
#endif
|
600
|
+
#if HAVE_CURLOPT_FTP_ALTERNATIVE_TO_USER
|
601
|
+
CURB_DEFINE(CURLOPT_FTP_ALTERNATIVE_TO_USER);
|
602
|
+
#endif
|
603
|
+
#if HAVE_CURLOPT_FTP_SKIP_PASV_IP
|
604
|
+
CURB_DEFINE(CURLOPT_FTP_SKIP_PASV_IP);
|
605
|
+
#endif
|
606
|
+
#if HAVE_CURLOPT_FTPSSLAUTH
|
607
|
+
CURB_DEFINE(CURLOPT_FTPSSLAUTH);
|
608
|
+
#endif
|
609
|
+
#if HAVE_CURLFTPAUTH_DEFAULT
|
610
|
+
CURB_DEFINE(CURLFTPAUTH_DEFAULT);
|
611
|
+
#endif
|
612
|
+
#if HAVE_CURLFTPAUTH_SSL
|
613
|
+
CURB_DEFINE(CURLFTPAUTH_SSL);
|
614
|
+
#endif
|
615
|
+
#if HAVE_CURLFTPAUTH_TLS
|
616
|
+
CURB_DEFINE(CURLFTPAUTH_TLS);
|
617
|
+
#endif
|
618
|
+
#if HAVE_CURLOPT_FTP_SSL_CCC
|
619
|
+
CURB_DEFINE(CURLOPT_FTP_SSL_CCC);
|
620
|
+
#endif
|
621
|
+
#if HAVE_CURLFTPSSL_CCC_NONE
|
622
|
+
CURB_DEFINE(CURLFTPSSL_CCC_NONE);
|
623
|
+
#endif
|
624
|
+
#if HAVE_CURLFTPSSL_CCC_PASSIVE
|
625
|
+
CURB_DEFINE(CURLFTPSSL_CCC_PASSIVE);
|
626
|
+
#endif
|
627
|
+
#if HAVE_CURLFTPSSL_CCC_ACTIVE
|
628
|
+
CURB_DEFINE(CURLFTPSSL_CCC_ACTIVE);
|
629
|
+
#endif
|
630
|
+
#if HAVE_CURLOPT_FTP_ACCOUNT
|
631
|
+
CURB_DEFINE(CURLOPT_FTP_ACCOUNT);
|
632
|
+
#endif
|
633
|
+
#if HAVE_CURLOPT_FTP_FILEMETHOD
|
634
|
+
CURB_DEFINE(CURLOPT_FTP_FILEMETHOD);
|
635
|
+
#endif
|
636
|
+
#if HAVE_CURLFTPMETHOD_MULTICWD
|
637
|
+
CURB_DEFINE(CURLFTPMETHOD_MULTICWD);
|
638
|
+
#endif
|
639
|
+
#if HAVE_CURLFTPMETHOD_NOCWD
|
640
|
+
CURB_DEFINE(CURLFTPMETHOD_NOCWD);
|
641
|
+
#endif
|
642
|
+
#if HAVE_CURLFTPMETHOD_SINGLECWD
|
643
|
+
CURB_DEFINE(CURLFTPMETHOD_SINGLECWD);
|
644
|
+
#endif
|
645
|
+
#if HAVE_CURLOPT_RTSP_REQUEST
|
646
|
+
CURB_DEFINE(CURLOPT_RTSP_REQUEST);
|
647
|
+
#endif
|
648
|
+
#if HAVE_CURL_RTSPREQ_OPTIONS
|
649
|
+
CURB_DEFINE(CURL_RTSPREQ_OPTIONS);
|
650
|
+
#endif
|
651
|
+
#if HAVE_CURL_RTSPREQ_DESCRIBE
|
652
|
+
CURB_DEFINE(CURL_RTSPREQ_DESCRIBE);
|
653
|
+
#endif
|
654
|
+
#if HAVE_CURL_RTSPREQ_ANNOUNCE
|
655
|
+
CURB_DEFINE(CURL_RTSPREQ_ANNOUNCE);
|
656
|
+
#endif
|
657
|
+
#if HAVE_CURL_RTSPREQ_SETUP
|
658
|
+
CURB_DEFINE(CURL_RTSPREQ_SETUP);
|
659
|
+
#endif
|
660
|
+
#if HAVE_CURL_RTSPREQ_PLAY
|
661
|
+
CURB_DEFINE(CURL_RTSPREQ_PLAY);
|
662
|
+
#endif
|
663
|
+
#if HAVE_CURL_RTSPREQ_PAUSE
|
664
|
+
CURB_DEFINE(CURL_RTSPREQ_PAUSE);
|
665
|
+
#endif
|
666
|
+
#if HAVE_CURL_RTSPREQ_TEARDOWN
|
667
|
+
CURB_DEFINE(CURL_RTSPREQ_TEARDOWN);
|
668
|
+
#endif
|
669
|
+
#if HAVE_CURL_RTSPREQ_GET_PARAMETER
|
670
|
+
CURB_DEFINE(CURL_RTSPREQ_GET_PARAMETER);
|
671
|
+
#endif
|
672
|
+
#if HAVE_CURL_RTSPREQ_SET_PARAMETER
|
673
|
+
CURB_DEFINE(CURL_RTSPREQ_SET_PARAMETER);
|
674
|
+
#endif
|
675
|
+
#if HAVE_CURL_RTSPREQ_RECORD
|
676
|
+
CURB_DEFINE(CURL_RTSPREQ_RECORD);
|
677
|
+
#endif
|
678
|
+
#if HAVE_CURL_RTSPREQ_RECEIVE
|
679
|
+
CURB_DEFINE(CURL_RTSPREQ_RECEIVE);
|
680
|
+
#endif
|
681
|
+
#if HAVE_CURLOPT_RTSP_SESSION_ID
|
682
|
+
CURB_DEFINE(CURLOPT_RTSP_SESSION_ID);
|
683
|
+
#endif
|
684
|
+
#if HAVE_CURLOPT_RTSP_STREAM_URI
|
685
|
+
CURB_DEFINE(CURLOPT_RTSP_STREAM_URI);
|
686
|
+
#endif
|
687
|
+
#if HAVE_CURLOPT_RTSP_TRANSPORT
|
688
|
+
CURB_DEFINE(CURLOPT_RTSP_TRANSPORT);
|
689
|
+
#endif
|
690
|
+
#if HAVE_CURLOPT_RTSP_HEADER
|
691
|
+
CURB_DEFINE(CURLOPT_RTSP_HEADER);
|
692
|
+
#endif
|
693
|
+
#if HAVE_CURLOPT_RTSP_CLIENT_CSEQ
|
694
|
+
CURB_DEFINE(CURLOPT_RTSP_CLIENT_CSEQ);
|
695
|
+
#endif
|
696
|
+
#if HAVE_CURLOPT_RTSP_SERVER_CSEQ
|
697
|
+
CURB_DEFINE(CURLOPT_RTSP_SERVER_CSEQ);
|
698
|
+
#endif
|
699
|
+
|
700
|
+
CURB_DEFINE(CURLOPT_TRANSFERTEXT);
|
701
|
+
#if HAVE_CURLOPT_PROXY_TRANSFER_MODE
|
702
|
+
CURB_DEFINE(CURLOPT_PROXY_TRANSFER_MODE);
|
703
|
+
#endif
|
704
|
+
#if HAVE_CURLOPT_CRLF
|
705
|
+
CURB_DEFINE(CURLOPT_CRLF);
|
706
|
+
#endif
|
707
|
+
#if HAVE_CURLOPT_RANGE
|
708
|
+
CURB_DEFINE(CURLOPT_RANGE);
|
709
|
+
#endif
|
710
|
+
#if HAVE_CURLOPT_RESUME_FROM
|
711
|
+
CURB_DEFINE(CURLOPT_RESUME_FROM);
|
712
|
+
#endif
|
713
|
+
#if HAVE_CURLOPT_RESUME_FROM_LARGE
|
714
|
+
CURB_DEFINE(CURLOPT_RESUME_FROM_LARGE);
|
715
|
+
#endif
|
716
|
+
#if HAVE_CURLOPT_CUSTOMREQUEST
|
717
|
+
CURB_DEFINE(CURLOPT_CUSTOMREQUEST);
|
718
|
+
#endif
|
719
|
+
#if HAVE_CURLOPT_FILETIME
|
720
|
+
CURB_DEFINE(CURLOPT_FILETIME);
|
721
|
+
#endif
|
722
|
+
#if HAVE_CURLOPT_NOBODY
|
723
|
+
CURB_DEFINE(CURLOPT_NOBODY);
|
724
|
+
#endif
|
725
|
+
#if HAVE_CURLOPT_INFILESIZE
|
726
|
+
CURB_DEFINE(CURLOPT_INFILESIZE);
|
727
|
+
#endif
|
728
|
+
#if HAVE_CURLOPT_INFILESIZE_LARGE
|
729
|
+
CURB_DEFINE(CURLOPT_INFILESIZE_LARGE);
|
730
|
+
#endif
|
731
|
+
#if HAVE_CURLOPT_UPLOAD
|
732
|
+
CURB_DEFINE(CURLOPT_UPLOAD);
|
733
|
+
#endif
|
734
|
+
#if HAVE_CURLOPT_MAXFILESIZE
|
735
|
+
CURB_DEFINE(CURLOPT_MAXFILESIZE);
|
736
|
+
#endif
|
737
|
+
#if HAVE_CURLOPT_MAXFILESIZE_LARGE
|
738
|
+
CURB_DEFINE(CURLOPT_MAXFILESIZE_LARGE);
|
739
|
+
#endif
|
740
|
+
#if HAVE_CURLOPT_TIMECONDITION
|
741
|
+
CURB_DEFINE(CURLOPT_TIMECONDITION);
|
742
|
+
#endif
|
743
|
+
#if HAVE_CURLOPT_TIMEVALUE
|
744
|
+
CURB_DEFINE(CURLOPT_TIMEVALUE);
|
745
|
+
#endif
|
746
|
+
|
747
|
+
#if HAVE_CURLOPT_TIMEOUT
|
748
|
+
CURB_DEFINE(CURLOPT_TIMEOUT);
|
749
|
+
#endif
|
750
|
+
#if HAVE_CURLOPT_TIMEOUT_MS
|
751
|
+
CURB_DEFINE(CURLOPT_TIMEOUT_MS);
|
752
|
+
#endif
|
753
|
+
#if HAVE_CURLOPT_LOW_SPEED_LIMIT
|
754
|
+
CURB_DEFINE(CURLOPT_LOW_SPEED_LIMIT);
|
755
|
+
#endif
|
756
|
+
#if HAVE_CURLOPT_LOW_SPEED_TIME
|
757
|
+
CURB_DEFINE(CURLOPT_LOW_SPEED_TIME);
|
758
|
+
#endif
|
759
|
+
#if HAVE_CURLOPT_MAX_SEND_SPEED_LARGE
|
760
|
+
CURB_DEFINE(CURLOPT_MAX_SEND_SPEED_LARGE);
|
761
|
+
#endif
|
762
|
+
#if HAVE_CURLOPT_MAX_RECV_SPEED_LARGE
|
763
|
+
CURB_DEFINE(CURLOPT_MAX_RECV_SPEED_LARGE);
|
764
|
+
#endif
|
765
|
+
#if HAVE_CURLOPT_MAXCONNECTS
|
766
|
+
CURB_DEFINE(CURLOPT_MAXCONNECTS);
|
767
|
+
#endif
|
768
|
+
#if HAVE_CURLOPT_CLOSEPOLICY
|
769
|
+
CURB_DEFINE(CURLOPT_CLOSEPOLICY);
|
770
|
+
#endif
|
771
|
+
#if HAVE_CURLOPT_FRESH_CONNECT
|
772
|
+
CURB_DEFINE(CURLOPT_FRESH_CONNECT);
|
773
|
+
#endif
|
774
|
+
#if HAVE_CURLOPT_FORBID_REUSE
|
775
|
+
CURB_DEFINE(CURLOPT_FORBID_REUSE);
|
776
|
+
#endif
|
777
|
+
#if HAVE_CURLOPT_CONNECTTIMEOUT
|
778
|
+
CURB_DEFINE(CURLOPT_CONNECTTIMEOUT);
|
779
|
+
#endif
|
780
|
+
#if HAVE_CURLOPT_CONNECTTIMEOUT_MS
|
781
|
+
CURB_DEFINE(CURLOPT_CONNECTTIMEOUT_MS);
|
782
|
+
#endif
|
783
|
+
#if HAVE_CURLOPT_IPRESOLVE
|
784
|
+
CURB_DEFINE(CURLOPT_IPRESOLVE);
|
785
|
+
#endif
|
786
|
+
#if HAVE_CURL_IPRESOLVE_WHATEVER
|
787
|
+
CURB_DEFINE(CURL_IPRESOLVE_WHATEVER);
|
788
|
+
#endif
|
789
|
+
#if HAVE_CURL_IPRESOLVE_V4
|
790
|
+
CURB_DEFINE(CURL_IPRESOLVE_V4);
|
791
|
+
#endif
|
792
|
+
#if HAVE_CURL_IPRESOLVE_V6
|
793
|
+
CURB_DEFINE(CURL_IPRESOLVE_V6);
|
794
|
+
#endif
|
795
|
+
#if HAVE_CURLOPT_CONNECT_ONLY
|
796
|
+
CURB_DEFINE(CURLOPT_CONNECT_ONLY);
|
797
|
+
#endif
|
798
|
+
#if HAVE_CURLOPT_USE_SSL
|
799
|
+
CURB_DEFINE(CURLOPT_USE_SSL);
|
800
|
+
#endif
|
801
|
+
#if HAVE_CURLUSESSL_NONE
|
802
|
+
CURB_DEFINE(CURLUSESSL_NONE);
|
803
|
+
#endif
|
804
|
+
#if HAVE_CURLUSESSL_TRY
|
805
|
+
CURB_DEFINE(CURLUSESSL_TRY);
|
806
|
+
#endif
|
807
|
+
#if HAVE_CURLUSESSL_CONTROL
|
808
|
+
CURB_DEFINE(CURLUSESSL_CONTROL);
|
809
|
+
#endif
|
810
|
+
#if HAVE_CURLUSESSL_ALL
|
811
|
+
CURB_DEFINE(CURLUSESSL_ALL);
|
812
|
+
#endif
|
813
|
+
#if HAVE_CURLOPT_RESOLVE
|
814
|
+
CURB_DEFINE(CURLOPT_RESOLVE);
|
815
|
+
#endif
|
816
|
+
|
817
|
+
#if HAVE_CURLOPT_SSLCERT
|
818
|
+
CURB_DEFINE(CURLOPT_SSLCERT);
|
819
|
+
#endif
|
820
|
+
#if HAVE_CURLOPT_SSLCERTTYPE
|
821
|
+
CURB_DEFINE(CURLOPT_SSLCERTTYPE);
|
822
|
+
#endif
|
823
|
+
#if HAVE_CURLOPT_SSLKEY
|
824
|
+
CURB_DEFINE(CURLOPT_SSLKEY);
|
825
|
+
#endif
|
826
|
+
#if HAVE_CURLOPT_SSLKEYTYPE
|
827
|
+
CURB_DEFINE(CURLOPT_SSLKEYTYPE);
|
828
|
+
#endif
|
829
|
+
#if HAVE_CURLOPT_KEYPASSWD
|
830
|
+
CURB_DEFINE(CURLOPT_KEYPASSWD);
|
831
|
+
#endif
|
832
|
+
#if HAVE_CURLOPT_SSLENGINE
|
833
|
+
CURB_DEFINE(CURLOPT_SSLENGINE);
|
834
|
+
#endif
|
835
|
+
#if HAVE_CURLOPT_SSLENGINE_DEFAULT
|
836
|
+
CURB_DEFINE(CURLOPT_SSLENGINE_DEFAULT);
|
837
|
+
#endif
|
838
|
+
#if HAVE_CURLOPT_SSLVERSION
|
839
|
+
CURB_DEFINE(CURLOPT_SSLVERSION);
|
840
|
+
#endif
|
841
|
+
#if HAVE_CURL_SSLVERSION_DEFAULT
|
842
|
+
CURB_DEFINE(CURL_SSLVERSION_DEFAULT);
|
843
|
+
#endif
|
844
|
+
#if HAVE_CURL_SSLVERSION_TLSv1
|
845
|
+
CURB_DEFINE(CURL_SSLVERSION_TLSv1);
|
846
|
+
#endif
|
847
|
+
#if HAVE_CURL_SSLVERSION_SSLv2
|
848
|
+
CURB_DEFINE(CURL_SSLVERSION_SSLv2);
|
849
|
+
#endif
|
850
|
+
#if HAVE_CURL_SSLVERSION_SSLv3
|
851
|
+
CURB_DEFINE(CURL_SSLVERSION_SSLv3);
|
852
|
+
#endif
|
853
|
+
#if HAVE_CURLOPT_SSL_VERIFYPEER
|
854
|
+
CURB_DEFINE(CURLOPT_SSL_VERIFYPEER);
|
855
|
+
#endif
|
856
|
+
#if HAVE_CURLOPT_CAINFO
|
857
|
+
CURB_DEFINE(CURLOPT_CAINFO);
|
858
|
+
#endif
|
859
|
+
#if HAVE_CURLOPT_ISSUERCERT
|
860
|
+
CURB_DEFINE(CURLOPT_ISSUERCERT);
|
861
|
+
#endif
|
862
|
+
#if HAVE_CURLOPT_CAPATH
|
863
|
+
CURB_DEFINE(CURLOPT_CAPATH);
|
864
|
+
#endif
|
865
|
+
#if HAVE_CURLOPT_CRLFILE
|
866
|
+
CURB_DEFINE(CURLOPT_CRLFILE);
|
867
|
+
#endif
|
868
|
+
#if HAVE_CURLOPT_SSL_VERIFYHOST
|
869
|
+
CURB_DEFINE(CURLOPT_SSL_VERIFYHOST);
|
870
|
+
#endif
|
871
|
+
#if HAVE_CURLOPT_CERTINFO
|
872
|
+
CURB_DEFINE(CURLOPT_CERTINFO);
|
873
|
+
#endif
|
874
|
+
#if HAVE_CURLOPT_RANDOM_FILE
|
875
|
+
CURB_DEFINE(CURLOPT_RANDOM_FILE);
|
876
|
+
#endif
|
877
|
+
#if HAVE_CURLOPT_EGDSOCKET
|
878
|
+
CURB_DEFINE(CURLOPT_EGDSOCKET);
|
879
|
+
#endif
|
880
|
+
#if HAVE_CURLOPT_SSL_CIPHER_LIST
|
881
|
+
CURB_DEFINE(CURLOPT_SSL_CIPHER_LIST);
|
882
|
+
#endif
|
883
|
+
#if HAVE_CURLOPT_SSL_SESSIONID_CACHE
|
884
|
+
CURB_DEFINE(CURLOPT_SSL_SESSIONID_CACHE);
|
885
|
+
#endif
|
886
|
+
#if HAVE_CURLOPT_KRBLEVEL
|
887
|
+
CURB_DEFINE(CURLOPT_KRBLEVEL);
|
888
|
+
#endif
|
889
|
+
|
890
|
+
#if HAVE_CURLOPT_SSH_AUTH_TYPES
|
891
|
+
CURB_DEFINE(CURLOPT_SSH_AUTH_TYPES);
|
892
|
+
#endif
|
893
|
+
#if HAVE_CURLOPT_SSH_HOST_PUBLIC_KEY_MD5
|
894
|
+
CURB_DEFINE(CURLOPT_SSH_HOST_PUBLIC_KEY_MD5);
|
895
|
+
#endif
|
896
|
+
#if HAVE_CURLOPT_SSH_PUBLIC_KEYFILE
|
897
|
+
CURB_DEFINE(CURLOPT_SSH_PUBLIC_KEYFILE);
|
898
|
+
#endif
|
899
|
+
#if HAVE_CURLOPT_SSH_PRIVATE_KEYFILE
|
900
|
+
CURB_DEFINE(CURLOPT_SSH_PRIVATE_KEYFILE);
|
901
|
+
#endif
|
902
|
+
#if HAVE_CURLOPT_SSH_KNOWNHOSTS
|
903
|
+
CURB_DEFINE(CURLOPT_SSH_KNOWNHOSTS);
|
904
|
+
#endif
|
905
|
+
#if HAVE_CURLOPT_SSH_KEYFUNCTION
|
906
|
+
CURB_DEFINE(CURLOPT_SSH_KEYFUNCTION);
|
907
|
+
#endif
|
908
|
+
#if HAVE_CURLKHSTAT_FINE_ADD_TO_FILE
|
909
|
+
CURB_DEFINE(CURLKHSTAT_FINE_ADD_TO_FILE);
|
910
|
+
#endif
|
911
|
+
#if HAVE_CURLKHSTAT_FINE
|
912
|
+
CURB_DEFINE(CURLKHSTAT_FINE);
|
913
|
+
#endif
|
914
|
+
#if HAVE_CURLKHSTAT_REJECT
|
915
|
+
CURB_DEFINE(CURLKHSTAT_REJECT);
|
916
|
+
#endif
|
917
|
+
#if HAVE_CURLKHSTAT_DEFER
|
918
|
+
CURB_DEFINE(CURLKHSTAT_DEFER);
|
919
|
+
#endif
|
920
|
+
#if HAVE_CURLOPT_SSH_KEYDATA
|
921
|
+
CURB_DEFINE(CURLOPT_SSH_KEYDATA);
|
922
|
+
#endif
|
923
|
+
|
924
|
+
#if HAVE_CURLOPT_PRIVATE
|
925
|
+
CURB_DEFINE(CURLOPT_PRIVATE);
|
926
|
+
#endif
|
927
|
+
#if HAVE_CURLOPT_SHARE
|
928
|
+
CURB_DEFINE(CURLOPT_SHARE);
|
929
|
+
#endif
|
930
|
+
#if HAVE_CURLOPT_NEW_FILE_PERMS
|
931
|
+
CURB_DEFINE(CURLOPT_NEW_FILE_PERMS);
|
932
|
+
#endif
|
933
|
+
#if HAVE_CURLOPT_NEW_DIRECTORY_PERMS
|
934
|
+
CURB_DEFINE(CURLOPT_NEW_DIRECTORY_PERMS);
|
935
|
+
#endif
|
936
|
+
|
937
|
+
#if HAVE_CURLOPT_TELNETOPTIONS
|
938
|
+
CURB_DEFINE(CURLOPT_TELNETOPTIONS);
|
939
|
+
#endif
|
940
|
+
|
941
|
+
rb_define_const(mCurl, "HTTP_1_1", LONG2NUM(CURL_HTTP_VERSION_1_1));
|
942
|
+
rb_define_const(mCurl, "HTTP_1_0", LONG2NUM(CURL_HTTP_VERSION_1_0));
|
943
|
+
rb_define_const(mCurl, "HTTP_NONE", LONG2NUM(CURL_HTTP_VERSION_NONE));
|
944
|
+
|
355
945
|
rb_define_singleton_method(mCurl, "ipv6?", ruby_curl_ipv6_q, 0);
|
356
946
|
rb_define_singleton_method(mCurl, "kerberos4?", ruby_curl_kerberos4_q, 0);
|
357
947
|
rb_define_singleton_method(mCurl, "ssl?", ruby_curl_ssl_q, 0);
|
@@ -370,4 +960,5 @@ void Init_curb_core() {
|
|
370
960
|
init_curb_easy();
|
371
961
|
init_curb_postfield();
|
372
962
|
init_curb_multi();
|
963
|
+
init_curb_upload();
|
373
964
|
}
|