Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 10, 2017 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/1bf947bae880e8d7897b08741dc7d78c to your computer and use it in GitHub Desktop.
Save Whateverable/1bf947bae880e8d7897b08741dc7d78c to your computer and use it in GitHub Desktop.
greppable6

Atrox/haikunatorperl:14: "shrill", "rapid", "sweet", "curly", "calm", "jolly", "fancy", "plain", "shinny"
CurtTilmes/perl6-libcurl:7: remote = https://github.com/CurtTilmes/perl6-libcurl.git
CurtTilmes/perl6-libcurl:13: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libcurl4-openssl-dev; fi
CurtTilmes/perl6-libcurl:2: "name" : "LibCurl",
CurtTilmes/perl6-libcurl:6: "source-url" : "https://github.com/CurtTilmes/perl6-libcurl.git",
CurtTilmes/perl6-libcurl:10: "tags" : [ "LibCurl", "Curl", "HTTP", "FTP" ],
CurtTilmes/perl6-libcurl:13: "LibCurl::EasyHandle" : "lib/LibCurl/EasyHandle.pm6",
CurtTilmes/perl6-libcurl:14: "LibCurl::MultiHandle" : "lib/LibCurl/MultiHandle.pm6",
CurtTilmes/perl6-libcurl:15: "LibCurl::Easy" : "lib/LibCurl/Easy.pm6",
CurtTilmes/perl6-libcurl:16: "LibCurl::Multi" : "lib/LibCurl/Multi.pm6",
CurtTilmes/perl6-libcurl:17: "LibCurl::HTTP" : "lib/LibCurl/HTTP.pm6"
CurtTilmes/perl6-libcurl:22: "description" : "Perl6 bindings for LibCurl",
CurtTilmes/perl6-libcurl:31: "source" : "https://github.com/CurtTilmes/perl6-libcurl.git",
CurtTilmes/perl6-libcurl:32: "bugtracker" : "https://github.com/CurtTilmes/perl6-libcurl.git"
CurtTilmes/perl6-libcurl:1: # Perl6 LibCurl
CurtTilmes/perl6-libcurl:3: Build Status
CurtTilmes/perl6-libcurl:18: libcurl.
CurtTilmes/perl6-libcurl:20: libcurl is a free and easy-to-use client-side URL transfer
CurtTilmes/perl6-libcurl:23: SMTP, SMTPS, Telnet and TFTP. libcurl supports SSL certificates,
CurtTilmes/perl6-libcurl:29: libcurl is highly portable, it builds and works identically on
CurtTilmes/perl6-libcurl:35: libcurl is free, thread-safe, IPv6 compatible, feature rich, well
CurtTilmes/perl6-libcurl:41: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:44: print LibCurl::Easy.new(URL => 'http://example.com').perform.content;
CurtTilmes/perl6-libcurl:47: LibCurl::Easy.new(URL => 'http://example.com/somefile',
CurtTilmes/perl6-libcurl:51: say LibCurl::Easy.new(:nobody, URL => 'http://example.com')
CurtTilmes/perl6-libcurl:55: LibCurl::Easy.new(URL => 'http://example.com/somefile',
CurtTilmes/perl6-libcurl:59: LibCurl::Easy.new(URL => 'http://example.com/somefile',
CurtTilmes/perl6-libcurl:63: LibCurl::Easy.new(URL => 'http://example.com/file-to-delete',
CurtTilmes/perl6-libcurl:67: LibCurl::Easy.new(URL => 'http://example.com/form.html',
CurtTilmes/perl6-libcurl:70: ## LibCurl::HTTP
CurtTilmes/perl6-libcurl:73: **LibCurl::HTTP** that adds aliases for the common HTTP methods:
CurtTilmes/perl6-libcurl:75: use LibCurl::HTTP;
CurtTilmes/perl6-libcurl:77: my $http = LibCurl::HTTP.new;
CurtTilmes/perl6-libcurl:91: LibCurl::HTTP methods also enable `failonerror` by default, so any
CurtTilmes/perl6-libcurl:96: use LibCurl::HTTP :subs;
CurtTilmes/perl6-libcurl:116: my $curl = LibCurl::Easy.new(:verbose, :followlocation);
CurtTilmes/perl6-libcurl:117: $curl.setopt(URL => 'http://example.com', download => './myfile.html');
CurtTilmes/perl6-libcurl:118: $curl.perform;
CurtTilmes/perl6-libcurl:119: say $curl.Content-Type;
CurtTilmes/perl6-libcurl:120: say $curl.Content-Length;
CurtTilmes/perl6-libcurl:121: say $curl.Date;
CurtTilmes/perl6-libcurl:122: say $curl.response-code;
CurtTilmes/perl6-libcurl:123: say $curl.statusline;
CurtTilmes/perl6-libcurl:125: Of course the full power of libcurl is
CurtTilmes/perl6-libcurl:131: Many of the libcurl
CurtTilmes/perl6-libcurl:132: options are
CurtTilmes/perl6-libcurl:133: available, mostly just skip the ```CURLOPT_```, lowercase, and use '-'
CurtTilmes/perl6-libcurl:135: ```CURLOPT_ACCEPT_ENCODING```, use ```accept-encoding```. When the
CurtTilmes/perl6-libcurl:140: Just like libcurl, the primary option is
CurtTilmes/perl6-libcurl:141: URL, and can take
CurtTilmes/perl6-libcurl:149: my $curl = LibCurl::Easy.new(:verbose, :followlocation,
CurtTilmes/perl6-libcurl:152: $curl.setopt(:verbose, followlocation => 1);
CurtTilmes/perl6-libcurl:153: $curl.setopt(URL => 'http://example.com');
CurtTilmes/perl6-libcurl:155: $curl.verbose(1);
CurtTilmes/perl6-libcurl:156: $curl.followlocation(1);
CurtTilmes/perl6-libcurl:157: $curl.URL('http://example.com');
CurtTilmes/perl6-libcurl:160: CURLOPT_COPYPOSTFIELDS so it will always copy the fields.
CurtTilmes/perl6-libcurl:162: Some of the normal options have **_LARGE** versions. LibCurl always
CurtTilmes/perl6-libcurl:169: CAinfo
CurtTilmes/perl6-libcurl:170: CApath
CurtTilmes/perl6-libcurl:171: URL
CurtTilmes/perl6-libcurl:172: accepttimeout-ms
CurtTilmes/perl6-libcurl:173: accept-encoding
CurtTilmes/perl6-libcurl:174: address-scope
CurtTilmes/perl6-libcurl:175: append
CurtTilmes/perl6-libcurl:176: autoreferer
CurtTilmes/perl6-libcurl:177: buffersize
CurtTilmes/perl6-libcurl:178: certinfo
CurtTilmes/perl6-libcurl:179: cookie
CurtTilmes/perl6-libcurl:180: cookiefile
CurtTilmes/perl6-libcurl:181: cookiejar
CurtTilmes/perl6-libcurl:182: cookielist
CurtTilmes/perl6-libcurl:183: customrequest
CurtTilmes/perl6-libcurl:184: dirlistonly
CurtTilmes/perl6-libcurl:185: failonerror
CurtTilmes/perl6-libcurl:186: followlocation
CurtTilmes/perl6-libcurl:187: forbid-reuse
CurtTilmes/perl6-libcurl:188: fresh-connect
CurtTilmes/perl6-libcurl:189: ftp-skip-pasv-ip
CurtTilmes/perl6-libcurl:190: ftp-use-eprt
CurtTilmes/perl6-libcurl:191: ftp-use-epsv
CurtTilmes/perl6-libcurl:192: ftpport
CurtTilmes/perl6-libcurl:193: header
CurtTilmes/perl6-libcurl:194: http-version
CurtTilmes/perl6-libcurl:195: httpauth
CurtTilmes/perl6-libcurl:196: httpget
CurtTilmes/perl6-libcurl:197: httpproxytunnel
CurtTilmes/perl6-libcurl:198: infilesize
CurtTilmes/perl6-libcurl:199: low-speed-limit
CurtTilmes/perl6-libcurl:200: low-speed-time
CurtTilmes/perl6-libcurl:201: maxconnects
CurtTilmes/perl6-libcurl:202: maxfilesize
CurtTilmes/perl6-libcurl:203: maxredirs
CurtTilmes/perl6-libcurl:204: max-send-speed
CurtTilmes/perl6-libcurl:205: max-recv-speed
CurtTilmes/perl6-libcurl:206: netrc
CurtTilmes/perl6-libcurl:207: nobody
CurtTilmes/perl6-libcurl:208: noprogress
CurtTilmes/perl6-libcurl:209: nosignal
CurtTilmes/perl6-libcurl:210: password
CurtTilmes/perl6-libcurl:211: post
CurtTilmes/perl6-libcurl:212: postfields
CurtTilmes/perl6-libcurl:213: postfieldsize
CurtTilmes/perl6-libcurl:214: protocols
CurtTilmes/perl6-libcurl:215: proxy
CurtTilmes/perl6-libcurl:216: proxyauth
CurtTilmes/perl6-libcurl:217: proxyport
CurtTilmes/perl6-libcurl:218: proxytype
CurtTilmes/perl6-libcurl:219: proxyuserpwd
CurtTilmes/perl6-libcurl:220: range
CurtTilmes/perl6-libcurl:221: redir-protocols
CurtTilmes/perl6-libcurl:222: referer
CurtTilmes/perl6-libcurl:223: resume-from
CurtTilmes/perl6-libcurl:224: ssl-verifyhost
CurtTilmes/perl6-libcurl:225: ssl-verifypeer
CurtTilmes/perl6-libcurl:226: timecondition
CurtTilmes/perl6-libcurl:227: timeout
CurtTilmes/perl6-libcurl:228: timeout-ms
CurtTilmes/perl6-libcurl:229: timevalue
CurtTilmes/perl6-libcurl:230: unrestricted-auth
CurtTilmes/perl6-libcurl:231: use-ssl
CurtTilmes/perl6-libcurl:232: useragent
CurtTilmes/perl6-libcurl:233: username
CurtTilmes/perl6-libcurl:234: userpwd
CurtTilmes/perl6-libcurl:235: verbose
CurtTilmes/perl6-libcurl:236: wildcardmatch
CurtTilmes/perl6-libcurl:240: In addition to the normal libcurl special options that set headers
CurtTilmes/perl6-libcurl:241: (useragent,
CurtTilmes/perl6-libcurl:242: referer,
CurtTilmes/perl6-libcurl:243: cookie), there
CurtTilmes/perl6-libcurl:249: $curl.Host('somewhere.com'); # or $curl.setopt(Host => 'somewhere.com')
CurtTilmes/perl6-libcurl:250: $curl.Content-MD5('...'); # or $curl.setopt(Content-MD5 => '...')
CurtTilmes/perl6-libcurl:254: $curl.set-header(X-My-Header => 'something', X-something => 'foo');
CurtTilmes/perl6-libcurl:259: $curl.set-header(Accept => ''); # Don't send normal Accept header
CurtTilmes/perl6-libcurl:260: $curl.set-header(Something => ';'); # Send empty header
CurtTilmes/perl6-libcurl:264: $curl.clear-header();
CurtTilmes/perl6-libcurl:270: In addition to the normal libcurl options, Perl6 LibCurl uses options
CurtTilmes/perl6-libcurl:273: ```debugfunction``` replaces the libcurl
CurtTilmes/perl6-libcurl:274: CURLOPT_DEBUGFUNCTION
CurtTilmes/perl6-libcurl:277: sub debug(LibCurl::Easy $easy, CURL-INFO-TYPE $type, Buf $buf)
CurtTilmes/perl6-libcurl:280: $curl.setopt(debugfunction => &debug);
CurtTilmes/perl6-libcurl:282: ```xferinfo``` replaces the libcurl
CurtTilmes/perl6-libcurl:283: CURLOPT_XFERINFOFUNCTION
CurtTilmes/perl6-libcurl:285: CURLOPT_PROGRESSFUNCTION)
CurtTilmes/perl6-libcurl:288: sub xferinfo(LibCurl::Easy $easy, $dltotal, $dlnow, $ultotal, $ulnow)
CurtTilmes/perl6-libcurl:291: $curl.setopt(xferinfofunction => &xferinfo);
CurtTilmes/perl6-libcurl:300: CURLOPT_PRIVATE, and you can safely store any Perl object in it.
CurtTilmes/perl6-libcurl:304: In most circumstances, errors from libcurl functions will result in a
CurtTilmes/perl6-libcurl:305: thrown X::LibCurl exception. You can catch these with CATCH. You can
CurtTilmes/perl6-libcurl:306: see the string error, or cast to Int to see the [libcurl error
CurtTilmes/perl6-libcurl:307: code](https://curl.haxx.se/libcurl/c/libcurl-errors.html).
CurtTilmes/perl6-libcurl:310: failonerror
CurtTilmes/perl6-libcurl:315: messages](https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html)
CurtTilmes/perl6-libcurl:318: $curl.perform;
CurtTilmes/perl6-libcurl:322: when X::LibCurl {
CurtTilmes/perl6-libcurl:324: say $curl.response-code;
CurtTilmes/perl6-libcurl:325: say $curl.error;
CurtTilmes/perl6-libcurl:331: After a transfer, you can retrieve internal information about the curl
CurtTilmes/perl6-libcurl:333: .getinfo
CurtTilmes/perl6-libcurl:340: say $curl.getinfo('effective-url');
CurtTilmes/perl6-libcurl:341: say $curl.getinfo('response-code');
CurtTilmes/perl6-libcurl:343: say $curl.getinfo(<effective-url response-code>); # Hash with those keys
CurtTilmes/perl6-libcurl:345: say $curl.getinfo; # Hash of all info fields
CurtTilmes/perl6-libcurl:347: say $curl.effective-url;
CurtTilmes/perl6-libcurl:348: say $curl.response-code;
CurtTilmes/perl6-libcurl:352: appconnect_time
CurtTilmes/perl6-libcurl:353: certinfo
CurtTilmes/perl6-libcurl:354: condition-unmet
CurtTilmes/perl6-libcurl:355: connect-time
CurtTilmes/perl6-libcurl:356: content-type
CurtTilmes/perl6-libcurl:357: cookielist
CurtTilmes/perl6-libcurl:358: effective-url
CurtTilmes/perl6-libcurl:359: ftp-entry-path
CurtTilmes/perl6-libcurl:360: header-size
CurtTilmes/perl6-libcurl:361: http-connectcode
CurtTilmes/perl6-libcurl:362: httpauth-avail
CurtTilmes/perl6-libcurl:363: lastsocket
CurtTilmes/perl6-libcurl:364: local-ip
CurtTilmes/perl6-libcurl:365: local-port
CurtTilmes/perl6-libcurl:366: namelookup-time
CurtTilmes/perl6-libcurl:367: num-connects
CurtTilmes/perl6-libcurl:368: os-errno
CurtTilmes/perl6-libcurl:369: pretransfer-time
CurtTilmes/perl6-libcurl:370: primary-ip
CurtTilmes/perl6-libcurl:371: primary-port
CurtTilmes/perl6-libcurl:372: proxyauth-avail
CurtTilmes/perl6-libcurl:373: redirect-url
CurtTilmes/perl6-libcurl:374: request-size
CurtTilmes/perl6-libcurl:375: response-code
CurtTilmes/perl6-libcurl:376: rtsp-client-cseq
CurtTilmes/perl6-libcurl:377: rtsp-cseq-recv
CurtTilmes/perl6-libcurl:378: rtsp-server-cseq
CurtTilmes/perl6-libcurl:379: rtsp-session-id
CurtTilmes/perl6-libcurl:380: size-download
CurtTilmes/perl6-libcurl:381: size-upload
CurtTilmes/perl6-libcurl:382: speed-download
CurtTilmes/perl6-libcurl:383: speed-upload
CurtTilmes/perl6-libcurl:384: ssl-engines
CurtTilmes/perl6-libcurl:385: total-time
CurtTilmes/perl6-libcurl:391: say $curl.receiveheaders<Content-Length>; # Hash of all headers
CurtTilmes/perl6-libcurl:393: say $curl.get-header('Content-Length');
CurtTilmes/perl6-libcurl:395: say $curl.Content-Length;
CurtTilmes/perl6-libcurl:408: say "Got content", $curl.content;
CurtTilmes/perl6-libcurl:414: my $curl = LibCurl::Easy.new(URL => 'http://...');
CurtTilmes/perl6-libcurl:417: $curl.formadd(name => 'fieldname', contents => 'something');
CurtTilmes/perl6-libcurl:420: $curl.formadd(name => 'fieldname', file => 'afile.txt',
CurtTilmes/perl6-libcurl:425: $curl.formadd(name => 'fieldname', buffer => 'some.file.name.txt',
CurtTilmes/perl6-libcurl:428: $curl.perform;
CurtTilmes/perl6-libcurl:430: This will automatically cause LibCurl to POST the data.
CurtTilmes/perl6-libcurl:432: The options are described in more detail here.
CurtTilmes/perl6-libcurl:436: name
CurtTilmes/perl6-libcurl:437: contents
CurtTilmes/perl6-libcurl:438: filecontent
CurtTilmes/perl6-libcurl:439: file
CurtTilmes/perl6-libcurl:440: contenttype
CurtTilmes/perl6-libcurl:441: filename
CurtTilmes/perl6-libcurl:442: buffer
CurtTilmes/perl6-libcurl:443: bufferptr
CurtTilmes/perl6-libcurl:447: libcurl has great proxy support, and
CurtTilmes/perl6-libcurl:448: you should be able to specify anything needed as options to LibCurl to
CurtTilmes/perl6-libcurl:450: proxy option.
CurtTilmes/perl6-libcurl:452: By default, libcurl will also respect the environment variables
CurtTilmes/perl6-libcurl:463: Perl6 LibCurl also supports the libcurl
CurtTilmes/perl6-libcurl:464: multi interface.
CurtTilmes/perl6-libcurl:465: You still have to construct `LibCurl::Easy` (or `LibCurl::HTTP`)
CurtTilmes/perl6-libcurl:467: the handle to a `LibCurl::Multi`.
CurtTilmes/perl6-libcurl:469: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:470: use LibCurl::Multi;
CurtTilmes/perl6-libcurl:472: my $curl1 = LibCurl::Easy.new(:verbose, :followlocation,
CurtTilmes/perl6-libcurl:476: my $curl2 = LibCurl::Easy.new(:verbose, :followlocation,
CurtTilmes/perl6-libcurl:480: my $multi = LibCurl:Multi.new;
CurtTilmes/perl6-libcurl:482: $multi.add-handle($curl1);
CurtTilmes/perl6-libcurl:483: $multi.add-handle($curl2);
CurtTilmes/perl6-libcurl:487: say $curl1.statusline;
CurtTilmes/perl6-libcurl:488: say $curl2.statusline;
CurtTilmes/perl6-libcurl:494: additional handles to the `LibCurl::Multi` at any time, even re-using
CurtTilmes/perl6-libcurl:495: completed LibCurl::Easy handles (after setting `URL`, etc. as needed).
CurtTilmes/perl6-libcurl:497: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:498: use LibCurl::Multi;
CurtTilmes/perl6-libcurl:500: my $curl1 = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:504: my $curl2 = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:508: sub callback(LibCurl::Easy $easy, Exception $e)
CurtTilmes/perl6-libcurl:515: my $multi = LibCurl::Multi.new(callback => &callback);
CurtTilmes/perl6-libcurl:517: $multi.add-handle($curl1, $curl2);
CurtTilmes/perl6-libcurl:523: `LibCurl` depends on libcurl, so
CurtTilmes/perl6-libcurl:528: There is another Perl 6 interface to libcurl
CurtTilmes/perl6-libcurl:529: Net::Curl developed by
CurtTilmes/perl6-libcurl:532: encourage you to also take a look at this module. LibCurl provides a
CurtTilmes/perl6-libcurl:533: more 'perlish' OO interface to libcurl than Net::Curl, and wraps
CurtTilmes/perl6-libcurl:5: LibCurl::Easy
CurtTilmes/perl6-libcurl:9: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:11: my $curl = LibCurl::Easy.new(URL => 'http://example.com');
CurtTilmes/perl6-libcurl:13: $curl.setopt(:verbose, :followlocation);
CurtTilmes/perl6-libcurl:15: $curl.perform;
CurtTilmes/perl6-libcurl:17: say $curl.response-code;
CurtTilmes/perl6-libcurl:22: L<libcurl|https://curl.haxx.se/libcurl>, a free and easy-to-use
CurtTilmes/perl6-libcurl:25: It wraps the low-level interface provided in L<LibCurl::EasyHandle> in
CurtTilmes/perl6-libcurl:27: libcurl from Perl.
CurtTilmes/perl6-libcurl:29: =head2 class B<LibCurl::Easy>
CurtTilmes/perl6-libcurl:31: The main class for C<LibCurl::Easy>.
CurtTilmes/perl6-libcurl:33: =item method B<new>(*%options) returns LibCurl::Easy
CurtTilmes/perl6-libcurl:35: Creates a new C<LibCurl::Easy> object and sets up a bunch of default
CurtTilmes/perl6-libcurl:43: Returns human readable version of the curl library. Can be called on
CurtTilmes/perl6-libcurl:44: a C<LibCurl::Easy> object:
CurtTilmes/perl6-libcurl:46: say $curl.version;
CurtTilmes/perl6-libcurl:48: or on the LibCurl::Easy type directly as a class method:
CurtTilmes/perl6-libcurl:50: say LibCurl::Easy.version;
CurtTilmes/perl6-libcurl:52: =item method B<set-header>(*%headers) returns LibCurl::Easy
CurtTilmes/perl6-libcurl:56: =item method B<clear-header>() returns LibCurl::Easy
CurtTilmes/perl6-libcurl:60: =item method B<setopt>(*%options) returns LibCurl::Easy
CurtTilmes/perl6-libcurl:65: =item method B<perform>() returns LibCurl::Easy
CurtTilmes/perl6-libcurl:68: C<LibCurl::Easy> handle can be added to a C<LibCurl::Multi> object in
CurtTilmes/perl6-libcurl:82: L<"extra"|https://curl.haxx.se/libcurl/c/CURLOPT_ERRORBUFFER.html>
CurtTilmes/perl6-libcurl:119: my $curl will leave { .cleanup } = LibCurl::Easy.new;
CurtTilmes/perl6-libcurl:123: method on the LibCurl::Easy object. This happens even if an exception
CurtTilmes/perl6-libcurl:131: Is the method an OPTION? If so, call C<$curl.setopt()>.
CurtTilmes/perl6-libcurl:135: Is the method an INFO field? If so call C<$curl.getinfo()>.
CurtTilmes/perl6-libcurl:139: $curl.URL("http://example.com");
CurtTilmes/perl6-libcurl:140: $curl.download('myfile');
CurtTilmes/perl6-libcurl:142: say $curl.Content-Type;
CurtTilmes/perl6-libcurl:143: say $curl.ETag;
CurtTilmes/perl6-libcurl:144: say $curl.Date;
CurtTilmes/perl6-libcurl:145: say $curl.speed-download;
CurtTilmes/perl6-libcurl:5: LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:9: use LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:11: curl_global_init(CURL_GLOBAL_DEFAULT);
CurtTilmes/perl6-libcurl:13: say curl_version;
CurtTilmes/perl6-libcurl:15: my $handle = LibCurl::EasyHandle.new;
CurtTilmes/perl6-libcurl:17: $handle.setopt(CURLOPT_URL, "http://example.com");
CurtTilmes/perl6-libcurl:21: say $handle.getinfo(CURL_GETINFO_RESPONSE_CODE);
CurtTilmes/perl6-libcurl:25: curl_global_cleanup;
CurtTilmes/perl6-libcurl:29: B<LibCurl::EasyHandle> is the low level NativeCall interface to
CurtTilmes/perl6-libcurl:30: libcurl's L<easy
CurtTilmes/perl6-libcurl:31: interface|https://curl.haxx.se/libcurl/c/libcurl-easy.html>. In
CurtTilmes/perl6-libcurl:32: general you should be using the B<LibCurl::Easy> interface instead.
CurtTilmes/perl6-libcurl:36: =item sub B<curl_global_init>(long $flags) returns uint32
CurtTilmes/perl6-libcurl:39: L<B<curl_global_init>|https://curl.haxx.se/libcurl/c/curl_global_init.html>. It
CurtTilmes/perl6-libcurl:40: can take the following I<$flags>: CURL_GLOBAL_SSL, CURL_GLOBAL_WIN32,
CurtTilmes/perl6-libcurl:41: CURL_GLOBAL_ALL, CURL_GLOBAL_NOTHING, CURL_GLOBAL_DEFAULT,
CurtTilmes/perl6-libcurl:42: CURL_GLOBAL_ACK_EINTR.
CurtTilmes/perl6-libcurl:44: =item sub B<curl_global_cleanup>()
CurtTilmes/perl6-libcurl:47: L<B<curl_global_cleanup>|https://curl.haxx.se/libcurl/c/curl_global_cleanup.html>.
CurtTilmes/perl6-libcurl:49: =item sub B<curl_version>() returns Str
CurtTilmes/perl6-libcurl:52: L<B<curl_version>|https://curl.haxx.se/libcurl/c/curl_version.html>.
CurtTilmes/perl6-libcurl:56: =head3 class B<X::LibCurl> is Exception
CurtTilmes/perl6-libcurl:58: Wraps libcurl error code.
CurtTilmes/perl6-libcurl:62: Returns the CURLcode for the error.
CurtTilmes/perl6-libcurl:67: L<B<curl_easy_strerror>|https://curl.haxx.se/libcurl/c/curl_easy_strerror.html>.
CurtTilmes/perl6-libcurl:69: =head3 class B<LibCurl::slist-struct> is repr('CStruct')
CurtTilmes/perl6-libcurl:71: Wrapper for B<struct curl_slist>.
CurtTilmes/perl6-libcurl:76: =head3 class B<LibCurl::slist> is repr('CPointer')
CurtTilmes/perl6-libcurl:78: Wrapper for a pointer to a B<struct curl_slist>.
CurtTilmes/perl6-libcurl:80: =item method B<append>(*@str-list) returns LibCurl::slist
CurtTilmes/perl6-libcurl:83: L<B<curl_slist_append>|https://curl.haxx.se/libcurl/c/curl_slist_append.html>,
CurtTilmes/perl6-libcurl:93: L<B<curl_slist_free_all>|https://curl.haxx.se/libcurl/c/curl_slist_free_all.html>.
CurtTilmes/perl6-libcurl:95: =head3 B<LibCurl::certinfo> is repr('CStruct')
CurtTilmes/perl6-libcurl:97: =head3 B<LibCurl::EasyHandle> is repr('CStruct')
CurtTilmes/perl6-libcurl:99: Wrapper for B<struct CURL>.
CurtTilmes/perl6-libcurl:101: =item method B<new>() returns LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:104: L<B<curl_easy_init>|https://curl.haxx.se/libcurl/c/curl_easy_init.html>
CurtTilmes/perl6-libcurl:105: to create a new CURL easy handle.
CurtTilmes/perl6-libcurl:110: B<LibCurl::EasyHandle>.
CurtTilmes/perl6-libcurl:115: L<B<curl_easy_cleanup>|https://curl.haxx.se/libcurl/c/curl_easy_cleanup.html>.
CurtTilmes/perl6-libcurl:120: L<B<curl_easy_reset>|https://curl.haxx.se/libcurl/c/curl_easy_reset.html>.
CurtTilmes/perl6-libcurl:122: =item method B<duphandle>() returns LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:125: L<B<curl_easy_duphandle>|https://curl.haxx.se/libcurl/c/curl_easy_duphandle.html>.
CurtTilmes/perl6-libcurl:130: L<B<curl_easy_escape>|https://curl.haxx.se/libcurl/c/curl_easy_escape.html>.
CurtTilmes/perl6-libcurl:135: L<B<curl_easy_unescape>|https://curl.haxx.se/libcurl/c/curl_easy_unescape.html>.
CurtTilmes/perl6-libcurl:140: L<B<curl_easy_perform>|https://curl.haxx.se/libcurl/c/curl_easy_perform.html>.
CurtTilmes/perl6-libcurl:145: =item multi method B<setopt>($option, LibCurl::slist $slist)
CurtTilmes/perl6-libcurl:147: =item multi method B<setopt>($option, LibCurl::EasyHandle $ptr)
CurtTilmes/perl6-libcurl:150: L<B<curl_easy_setopt>|https://curl.haxx.se/libcurl/c/curl_easy_setopt.html>.
CurtTilmes/perl6-libcurl:152: These will throw an X::LibCurl on any error.
CurtTilmes/perl6-libcurl:161: L<B<curl_easy_getinfo>|https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html>.
CurtTilmes/perl6-libcurl:163: These will throw an X::LibCurl on any error.
CurtTilmes/perl6-libcurl:5: LibCurl::HTTP
CurtTilmes/perl6-libcurl:9: use LibCurl::HTTP;
CurtTilmes/perl6-libcurl:11: my $http = LibCurl::HTTP.new;
CurtTilmes/perl6-libcurl:32: A thin subclass of C<LibCurl::Easy> that adds extra methods for the
CurtTilmes/perl6-libcurl:5: LibCurl::Multi
CurtTilmes/perl6-libcurl:9: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: use LibCurl::Multi;
CurtTilmes/perl6-libcurl:12: my $curl = LibCurl::Easy.new(URL => 'http://example.com');
CurtTilmes/perl6-libcurl:14: sub callback(LibCurl::Easy $easy, Exception $e)
CurtTilmes/perl6-libcurl:20: my $multi = LibCurl::Multi.new(callback => &callback);
CurtTilmes/perl6-libcurl:22: $multi.add-handle($curl);
CurtTilmes/perl6-libcurl:28: This is a high-level interface to the libcurl L<multi
CurtTilmes/perl6-libcurl:29: interface|https://curl.haxx.se/libcurl/c/libcurl-multi.html>.
CurtTilmes/perl6-libcurl:31: It wraps the low-level interface provided in L<LibCurl::MultiHandle>
CurtTilmes/perl6-libcurl:35: =head2 class B<LibCurl::Multi>
CurtTilmes/perl6-libcurl:37: =item method B<new>(*%options) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:39: Creates a new C<LibCurl::Multi> object. You can optionally pass in
CurtTilmes/perl6-libcurl:43: =item method B<setopt>(*%options) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:49: function that will get called when any C<LibCurl::Easy> completes its
CurtTilmes/perl6-libcurl:52: =item method B<add-handle>(*@handles) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:54: Add C<LibCurl::Easy> objects to the C<LibCurl::Multi>.
CurtTilmes/perl6-libcurl:56: =item method B<remove-handle>(*@handles) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:58: Remove C<LibCurl::Easy> objects from the C<LibCurl::Multi>.
CurtTilmes/perl6-libcurl:64: =item method B<perform>($timeout-ms = 1000) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:5: LibCurl::MultiHandle
CurtTilmes/perl6-libcurl:9: use LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:10: use LibCurl::MultiHandle;
CurtTilmes/perl6-libcurl:12: curl_global_init(CURL_GLOBAL_DEFAULT);
CurtTilmes/perl6-libcurl:14: my $easy = LibCurl::EasyHandle.new;
CurtTilmes/perl6-libcurl:15: $easy.setopt(CURLOPT_URL, "http://example.com");
CurtTilmes/perl6-libcurl:17: my $multi = LibCurl::MultiHandle.new;
CurtTilmes/perl6-libcurl:19: $multi.setopt(CURLMOPT_MAXCONNECT, 1);
CurtTilmes/perl6-libcurl:34: next unless $msg.msg == CURLMSG_DONE;
CurtTilmes/perl6-libcurl:43: curl_global_cleanup;
CurtTilmes/perl6-libcurl:47: C<LibCurl::MultiHandle> is the low level NativeCall interface to
CurtTilmes/perl6-libcurl:48: libcurl's L<multi
CurtTilmes/perl6-libcurl:49: interface|https://curl.haxx.se/libcurl/c/libcurl-multi.html>. In
CurtTilmes/perl6-libcurl:50: general you should be using the C<LibCurl::Multi> interface instead.
CurtTilmes/perl6-libcurl:54: =head2 class B<LibCurl::CURLMsg> is repr('CStruct')
CurtTilmes/perl6-libcurl:56: Wrapper for B<struct CURLMsg>
CurtTilmes/perl6-libcurl:60: =item has LibCurl::EasyHandle $.handle
CurtTilmes/perl6-libcurl:64: =head2 class B<X::LibCurl::Multi> is X::LibCurl
CurtTilmes/perl6-libcurl:66: Exception, just like L<X::LibCurl>, but for B<CURLMcode>.
CurtTilmes/perl6-libcurl:71: L<B<curl_multi_strerror>|https://curl.haxx.se/libcurl/c/curl_multi_strerror.html>.
CurtTilmes/perl6-libcurl:73: =head3 class B<LibCurl::MultiHandle> is repr('CPointer')
CurtTilmes/perl6-libcurl:75: Wrapper for pointer to a B<struct CURLM>.
CurtTilmes/perl6-libcurl:77: =item method B<new>() returns LibCurl::MultiHandle
CurtTilmes/perl6-libcurl:80: L<B<curl_multi_init>|https://curl.haxx.se/libcurl/c/curl_multi_init.html>.
CurtTilmes/perl6-libcurl:85: L<B<curl_multi_cleanup>|https://curl.haxx.se/libcurl/c/curl_multi_cleanup.html>.
CurtTilmes/perl6-libcurl:87: =item method B<add-handle>(LibCurl::EasyHandle $handle)
CurtTilmes/perl6-libcurl:90: L<B<curl_multi_add_handle>|https://curl.haxx.se/libcurl/c/curl_multi_add_handle.html>.
CurtTilmes/perl6-libcurl:92: =item method B<remove-handle>(LibCurl::EasyHandle $handle)
CurtTilmes/perl6-libcurl:95: L<B<curl_multi_remove_handle>|https://curl.haxx.se/libcurl/c/curl_multi_remove_handle.html>.
CurtTilmes/perl6-libcurl:100: L<B<curl_multi_setopt>|https://curl.haxx.se/libcurl/c/curl_multi_setopt.html>.
CurtTilmes/perl6-libcurl:105: L<B<curl_multi_perform>|https://curl.haxx.se/libcurl/c/curl_multi_perform.html>.
CurtTilmes/perl6-libcurl:107: If B<CURLM_CALL_MULTI_PERFORM> is returned, perform is immediately
CurtTilmes/perl6-libcurl:113: L<B<curl_multi_wait>|https://curl.haxx.se/libcurl/c/curl_multi_wait.html>.
CurtTilmes/perl6-libcurl:115: =item method B<info>(int32 $msgs-in-queue is rw) returns LibCurl::CURLMsg
CurtTilmes/perl6-libcurl:118: L<B<curl_multi_info_read>|https://curl.haxx.se/libcurl/c/curl_multi_info_read.html>.
CurtTilmes/perl6-libcurl:4: LibCurl::Easy
CurtTilmes/perl6-libcurl:9: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:11: my $curl = LibCurl::Easy.new(URL => 'http://example.com');
CurtTilmes/perl6-libcurl:13: $curl.setopt(:verbose, :followlocation);
CurtTilmes/perl6-libcurl:15: $curl.perform;
CurtTilmes/perl6-libcurl:17: say $curl.response-code;
CurtTilmes/perl6-libcurl:22: This is a high-level interface to libcurl, a free and easy-to-use client-side URL transfer library.
CurtTilmes/perl6-libcurl:24: It wraps the low-level interface provided in LibCurl::EasyHandle in some high level constructs that make it a little easier to work with libcurl from Perl.
CurtTilmes/perl6-libcurl:26: class **LibCurl::Easy**
CurtTilmes/perl6-libcurl:29: The main class for `LibCurl::Easy`.
CurtTilmes/perl6-libcurl:31: * method **new**(*%options) returns LibCurl::Easy
CurtTilmes/perl6-libcurl:33: Creates a new `LibCurl::Easy` object and sets up a bunch of default stuff.
CurtTilmes/perl6-libcurl:39: Returns human readable version of the curl library. Can be called on a `LibCurl::Easy` object:
CurtTilmes/perl6-libcurl:41: say $curl.version;
CurtTilmes/perl6-libcurl:43: or on the LibCurl::Easy type directly as a class method:
CurtTilmes/perl6-libcurl:45: say LibCurl::Easy.version;
CurtTilmes/perl6-libcurl:47: * method **set-header**(*%headers) returns LibCurl::Easy
CurtTilmes/perl6-libcurl:51: * method **clear-header**() returns LibCurl::Easy
CurtTilmes/perl6-libcurl:55: * method **setopt**(*%options) returns LibCurl::Easy
CurtTilmes/perl6-libcurl:59: * method **perform**() returns LibCurl::Easy
CurtTilmes/perl6-libcurl:61: Perform the transaction for this handle. As an alternative, the `LibCurl::Easy` handle can be added to a `LibCurl::Multi` object in which case you don't call perform directly.
CurtTilmes/perl6-libcurl:73: Human readable "extra" error information that may or may not be available after an error condition.
CurtTilmes/perl6-libcurl:104: my $curl will leave { .cleanup } = LibCurl::Easy.new;
CurtTilmes/perl6-libcurl:107: As soon as the scope ends, the LEAVE phaser will call the cleanup method on the LibCurl::Easy object. This happens even if an exception causes premature exit from the scope.
CurtTilmes/perl6-libcurl:113: Is the method an OPTION? If so, call `$curl.setopt()`.
CurtTilmes/perl6-libcurl:117: Is the method an INFO field? If so call `$curl.getinfo()`.
CurtTilmes/perl6-libcurl:121: $curl.URL("http://example.com");
CurtTilmes/perl6-libcurl:122: $curl.download('myfile');
CurtTilmes/perl6-libcurl:124: say $curl.Content-Type;
CurtTilmes/perl6-libcurl:125: say $curl.ETag;
CurtTilmes/perl6-libcurl:126: say $curl.Date;
CurtTilmes/perl6-libcurl:127: say $curl.speed-download;
CurtTilmes/perl6-libcurl:4: LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:9: use LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:11: curl_global_init(CURL_GLOBAL_DEFAULT);
CurtTilmes/perl6-libcurl:13: say curl_version;
CurtTilmes/perl6-libcurl:15: my $handle = LibCurl::EasyHandle.new;
CurtTilmes/perl6-libcurl:17: $handle.setopt(CURLOPT_URL, "http://example.com");
CurtTilmes/perl6-libcurl:21: say $handle.getinfo(CURL_GETINFO_RESPONSE_CODE);
CurtTilmes/perl6-libcurl:25: curl_global_cleanup;
CurtTilmes/perl6-libcurl:30: **LibCurl::EasyHandle** is the low level NativeCall interface to libcurl's easy interface. In general you should be using the **LibCurl::Easy** interface instead.
CurtTilmes/perl6-libcurl:35: * sub **curl_global_init**(long $flags) returns uint32
CurtTilmes/perl6-libcurl:37: Nativecall version of **curl_global_init**. It can ta…
CurtTilmes/perl6-libcurl:39: * sub **curl_global_cleanup**()
CurtTilmes/perl6-libcurl:41: Nativecall version of **curl_global_cleanup**.
CurtTilmes/perl6-libcurl:43: * sub **curl_version**() returns Str
CurtTilmes/perl6-libcurl:45: Nativecall version of **curl_version**.
CurtTilmes/perl6-libcurl:50: ### class **X::LibCurl** is Exception
CurtTilmes/perl6-libcurl:52: Wraps libcurl error code.
CurtTilmes/perl6-libcurl:56: Returns the CURLcode for the error.
CurtTilmes/perl6-libcurl:60: Returns the Str version of the error from **curl_easy_strerror**.
CurtTilmes/perl6-libcurl:62: ### class **LibCurl::slist-struct** is repr('CStruct')
CurtTilmes/perl6-libcurl:64: Wrapper for **struct curl_slist**.
CurtTilmes/perl6-libcurl:70: ### class **LibCurl::slist** is repr('CPointer')
CurtTilmes/perl6-libcurl:72: Wrapper for a pointer to a **struct curl_slist**.
CurtTilmes/perl6-libcurl:74: * method **append**(*@str-list) returns LibCurl::slist
CurtTilmes/perl6-libcurl:76: Wrapper for **curl_slist_append**, but can take a list of strings and they all get appended.
CurtTilmes/perl6-libcurl:84: Wrapper for **curl_slist_free_all**.
CurtTilmes/perl6-libcurl:86: ### **LibCurl::certinfo** is repr('CStruct')
CurtTilmes/perl6-libcurl:88: ### **LibCurl::EasyHandle** is repr('CStruct')
CurtTilmes/perl6-libcurl:90: Wrapper for **struct CURL**.
CurtTilmes/perl6-libcurl:92: * method **new**() returns LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:94: Wrapper for **curl_easy_init** to create a new CURL easy handle.
CurtTilmes/perl6-libcurl:98: Returns an opaque string that will be unique for every **LibCurl::EasyHandle**.
CurtTilmes/perl6-libcurl:102: Wrapper for **curl_easy_cleanup**.
CurtTilmes/perl6-libcurl:106: Wrapper for **curl_easy_reset**.
CurtTilmes/perl6-libcurl:108: * method **duphandle**() returns LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:110: Wrapper for **curl_easy_duphandle**.
CurtTilmes/perl6-libcurl:114: Wrapper for **curl_easy_escape**.
CurtTilmes/perl6-libcurl:118: Wrapper for **curl_easy_unescape**.
CurtTilmes/perl6-libcurl:122: Wrapper for **curl_easy_perform**.
CurtTilmes/perl6-libcurl:130: * multi method **setopt**($option, LibCurl::slist $slist)
CurtTilmes/perl6-libcurl:134: * multi method **setopt**($option, LibCurl::EasyHandle $ptr)
CurtTilmes/perl6-libcurl:136: Wrappers for various flavors of **curl_easy_setopt**.
CurtTilmes/perl6-libcurl:138: These will throw an X::LibCurl on any error.
CurtTilmes/perl6-libcurl:150: Wrappers for various flavors of **curl_easy_getinfo**.
CurtTilmes/perl6-libcurl:152: These will throw an X::LibCurl on any error.
CurtTilmes/perl6-libcurl:4: LibCurl::HTTP
CurtTilmes/perl6-libcurl:9: use LibCurl::HTTP;
CurtTilmes/perl6-libcurl:11: my $http = LibCurl::HTTP.new;
CurtTilmes/perl6-libcurl:28: A thin subclass of `LibCurl::Easy` that adds extra methods for the main HTTP methods.
CurtTilmes/perl6-libcurl:4: LibCurl::Multi
CurtTilmes/perl6-libcurl:9: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: use LibCurl::Multi;
CurtTilmes/perl6-libcurl:12: my $curl = LibCurl::Easy.new(URL => 'http://example.com');
CurtTilmes/perl6-libcurl:14: sub callback(LibCurl::Easy $easy, Exception $e)
CurtTilmes/perl6-libcurl:20: my $multi = LibCurl::Multi.new(callback => &callback);
CurtTilmes/perl6-libcurl:22: $multi.add-handle($curl);
CurtTilmes/perl6-libcurl:29: This is a high-level interface to the libcurl multi interface.
CurtTilmes/perl6-libcurl:31: It wraps the low-level interface provided in LibCurl::MultiHandle in some high level constructs that make it a little easier to work with.
CurtTilmes/perl6-libcurl:33: class **LibCurl::Multi**
CurtTilmes/perl6-libcurl:36: * method **new**(*%options) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:38: Creates a new `LibCurl::Multi` object. You can optionally pass in options and they will get passed directly to `.setopt` after object creation.
CurtTilmes/perl6-libcurl:40: * method **setopt**(*%options) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:44: A special extra option `callback` allows you to specify a callback function that will get called when any `LibCurl::Easy` completes its work.
CurtTilmes/perl6-libcurl:46: * method **add-handle**(*@handles) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:48: Add `LibCurl::Easy` objects to the `LibCurl::Multi`.
CurtTilmes/perl6-libcurl:50: * method **remove-handle**(*@handles) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:52: Remove `LibCurl::Easy` objects from the `LibCurl::Multi`.
CurtTilmes/perl6-libcurl:56: * method **perform**($timeout-ms = 1000) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:4: LibCurl::MultiHandle
CurtTilmes/perl6-libcurl:9: use LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:10: use LibCurl::MultiHandle;
CurtTilmes/perl6-libcurl:12: curl_global_init(CURL_GLOBAL_DEFAULT);
CurtTilmes/perl6-libcurl:14: my $easy = LibCurl::EasyHandle.new;
CurtTilmes/perl6-libcurl:15: $easy.setopt(CURLOPT_URL, "http://example.com");
CurtTilmes/perl6-libcurl:17: my $multi = LibCurl::MultiHandle.new;
CurtTilmes/perl6-libcurl:19: $multi.setopt(CURLMOPT_MAXCONNECT, 1);
CurtTilmes/perl6-libcurl:34: next unless $msg.msg == CURLMSG_DONE;
CurtTilmes/perl6-libcurl:46: curl_global_cleanup;
CurtTilmes/perl6-libcurl:51: `LibCurl::MultiHandle` is the low level NativeCall interface to libcurl's multi interface. In general you should be using the `LibCurl::Multi` interface instead.
CurtTilmes/perl6-libcurl:56: class **LibCurl::CURLMsg** is repr('CStruct')
CurtTilmes/perl6-libcurl:59: Wrapper for **struct CURLMsg**
CurtTilmes/perl6-libcurl:63: * has LibCurl::EasyHandle $.handle
CurtTilmes/perl6-libcurl:67: class **X::LibCurl::Multi** is X::LibCurl
CurtTilmes/perl6-libcurl:70: Exception, just like X::LibCurl, but for **CURLMcode**.
CurtTilmes/perl6-libcurl:74: Returns the Str version of the errror with **curl_multi_strerror**.
CurtTilmes/perl6-libcurl:76: ### class **LibCurl::MultiHandle** is repr('CPointer')
CurtTilmes/perl6-libcurl:78: Wrapper for pointer to a **struct CURLM**.
CurtTilmes/perl6-libcurl:80: * method **new**() returns LibCurl::MultiHandle
CurtTilmes/perl6-libcurl:82: Wrapper for **curl_multi_init**.
CurtTilmes/perl6-libcurl:86: Wrapper for **curl_multi_cleanup**.
CurtTilmes/perl6-libcurl:88: * method **add-handle**(LibCurl::EasyHandle $handle)
CurtTilmes/perl6-libcurl:90: Wrapper for **curl_multi_add_handle**.
CurtTilmes/perl6-libcurl:92: * method **remove-handle**(LibCurl::EasyHandle $handle)
CurtTilmes/perl6-libcurl:94: Wrapper for **curl_multi_remove_handle**.
CurtTilmes/perl6-libcurl:98: Wrapper for **curl_multi_setopt**.
CurtTilmes/perl6-libcurl:102: Wrapper for **curl_multi_perform**.
CurtTilmes/perl6-libcurl:104: If **CURLM_CALL_MULTI_PERFORM** is returned, perform is immediately called again.
CurtTilmes/perl6-libcurl:108: Wrapper for **curl_multi_wait**.
CurtTilmes/perl6-libcurl:110: * method **info**(int32 $msgs-in-queue is rw) returns LibCurl::CURLMsg
CurtTilmes/perl6-libcurl:112: Wrapper for **curl_multi_info_read**.
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: my $curl = LibCurl::Easy.new(:followlocation, :!noprogress);
CurtTilmes/perl6-libcurl:7: $curl.URL("https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/6/MOD02HKM/2017/011/MOD02HKM.A2017011.0130.006.2017011134502.hdf");
CurtTilmes/perl6-libcurl:9: $curl.download("MOD02HKM.A2017011.0130.006.2017011134502.hdf");
CurtTilmes/perl6-libcurl:11: $curl.perform;
CurtTilmes/perl6-libcurl:13: say $curl.statusline;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:8: my $curl = LibCurl::Easy.new(URL => 'https://www.example.com',
CurtTilmes/perl6-libcurl:12: say $curl.response-code;
CurtTilmes/perl6-libcurl:14: say $curl.certinfo;
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: sub dump(LibCurl::Easy $easy, CURL-INFO-TYPE $type, Buf $buf)
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => 'http://example.com/',
CurtTilmes/perl6-libcurl:17: say $curl.statusline;
CurtTilmes/perl6-libcurl:3: use LibCurl::HTTP :subs;
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: my $curl = LibCurl::Easy.new(:verbose, URL => 'http://example.com');
CurtTilmes/perl6-libcurl:7: # Remove a header curl would otherwise add by itself
CurtTilmes/perl6-libcurl:8: $curl.set-header(Accept => '');
CurtTilmes/perl6-libcurl:11: $curl.set-header(Another => 'yes');
CurtTilmes/perl6-libcurl:13: # Modify a header curl otherwise adds differently
CurtTilmes/perl6-libcurl:14: $curl.set-header(Host => 'www.example.com');
CurtTilmes/perl6-libcurl:17: $curl.set-header(X-silly-header => ';');
CurtTilmes/perl6-libcurl:19: say $curl.perform.content;
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: say LibCurl::Easy.new(URL => 'https://example.com/')
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:4: use LibCurl::Multi;
CurtTilmes/perl6-libcurl:6: my $curl1 = LibCurl::Easy.new(:followlocation, URL => 'http://example.com');
CurtTilmes/perl6-libcurl:7: my $curl2 = LibCurl::Easy.new(:followlocation, URL => 'http://example.com');
CurtTilmes/perl6-libcurl:9: sub callback(LibCurl::Easy $easy, Exception $e)
CurtTilmes/perl6-libcurl:15: my $multi = LibCurl::Multi.new(callback => &callback);
CurtTilmes/perl6-libcurl:17: $multi.add-handle($curl1, $curl2);
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: my $curl = LibCurl::Easy.new(URL => 'http://example.com/examplepost.cgi');
CurtTilmes/perl6-libcurl:8: $curl.formadd(name => 'sendfile', file => 'postit2.pl6');
CurtTilmes/perl6-libcurl:11: $curl.formadd(name => 'filename', contents => 'postit2.pl6');
CurtTilmes/perl6-libcurl:14: $curl.formadd(name => 'submit', contents => 'send');
CurtTilmes/perl6-libcurl:16: $curl.perform;
CurtTilmes/perl6-libcurl:18: say $curl.response-code;
CurtTilmes/perl6-libcurl:20: say $curl.content;
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: sub xferinfo(LibCurl::Easy $easy, $dltotal, $dlnow, $ultotal, $ulnow)
CurtTilmes/perl6-libcurl:11: my $curl = LibCurl::Easy.new(URL => 'http://example.com/',
CurtTilmes/perl6-libcurl:14: say $curl.statusline;
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: say LibCurl::Easy.new(:followlocation, URL => 'http://example.com')
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:7: say LibCurl::Easy.new(postfields => $postthis, URL => 'http://example.com')
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:5: my $v = LibCurl::Easy.version-info;
CurtTilmes/perl6-libcurl:4: use LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:13: CURLE_OK
CurtTilmes/perl6-libcurl:14: CURLE_UNSUPPORTED_PROTOCOL
CurtTilmes/perl6-libcurl:15: CURLE_FAILED_INIT
CurtTilmes/perl6-libcurl:16: CURLE_URL_MALFORMAT
CurtTilmes/perl6-libcurl:17: CURLE_NOT_BUILT_IN
CurtTilmes/perl6-libcurl:18: CURLE_COULDNT_RESOLVE_PROXY
CurtTilmes/perl6-libcurl:19: CURLE_COULDNT_RESOLVE_HOST
CurtTilmes/perl6-libcurl:20: CURLE_COULDNT_CONNECT
CurtTilmes/perl6-libcurl:21: CURLE_FTP_WEIRD_SERVER_REPLY
CurtTilmes/perl6-libcurl:22: CURLE_REMOTE_ACCESS_DENIED
CurtTilmes/perl6-libcurl:23: CURLE_FTP_ACCEPT_FAILED
CurtTilmes/perl6-libcurl:24: CURLE_FTP_WEIRD_PASS_REPLY
CurtTilmes/perl6-libcurl:25: CURLE_FTP_ACCEPT_TIMEOUT
CurtTilmes/perl6-libcurl:26: CURLE_FTP_WEIRD_PASV_REPLY
CurtTilmes/perl6-libcurl:27: CURLE_FTP_WEIRD_227_FORMAT
CurtTilmes/perl6-libcurl:28: CURLE_FTP_CANT_GET_HOST
CurtTilmes/perl6-libcurl:29: CURLE_OBSOLETE16
CurtTilmes/perl6-libcurl:30: CURLE_FTP_COULDNT_SET_TYPE
CurtTilmes/perl6-libcurl:31: CURLE_PARTIAL_FILE
CurtTilmes/perl6-libcurl:32: CURLE_FTP_COULDNT_RETR_FILE
CurtTilmes/perl6-libcurl:33: CURLE_OBSOLETE20
CurtTilmes/perl6-libcurl:34: CURLE_QUOTE_ERROR
CurtTilmes/perl6-libcurl:35: CURLE_HTTP_RETURNED_ERROR
CurtTilmes/perl6-libcurl:36: CURLE_WRITE_ERROR
CurtTilmes/perl6-libcurl:37: CURLE_OBSOLETE24
CurtTilmes/perl6-libcurl:38: CURLE_UPLOAD_FAILED
CurtTilmes/perl6-libcurl:39: CURLE_READ_ERROR
CurtTilmes/perl6-libcurl:40: CURLE_OUT_OF_MEMORY
CurtTilmes/perl6-libcurl:41: CURLE_OPERATION_TIMEDOUT
CurtTilmes/perl6-libcurl:42: CURLE_OBSOLETE29
CurtTilmes/perl6-libcurl:43: CURLE_FTP_PORT_FAILED
CurtTilmes/perl6-libcurl:44: CURLE_FTP_COULDNT_USE_REST
CurtTilmes/perl6-libcurl:45: CURLE_OBSOLETE32
CurtTilmes/perl6-libcurl:46: CURLE_RANGE_ERROR
CurtTilmes/perl6-libcurl:47: CURLE_HTTP_POST_ERROR
CurtTilmes/perl6-libcurl:48: CURLE_SSL_CONNECT_ERROR
CurtTilmes/perl6-libcurl:49: CURLE_BAD_DOWNLOAD_RESUME
CurtTilmes/perl6-libcurl:50: CURLE_FILE_COULDNT_READ_FILE
CurtTilmes/perl6-libcurl:51: CURLE_LDAP_CANNOT_BIND
CurtTilmes/perl6-libcurl:52: CURLE_LDAP_SEARCH_FAILED
CurtTilmes/perl6-libcurl:53: CURLE_OBSOLETE40
CurtTilmes/perl6-libcurl:54: CURLE_FUNCTION_NOT_FOUND
CurtTilmes/perl6-libcurl:55: CURLE_ABORTED_BY_CALLBACK
CurtTilmes/perl6-libcurl:56: CURLE_BAD_FUNCTION_ARGUMENT
CurtTilmes/perl6-libcurl:57: CURLE_OBSOLETE44
CurtTilmes/perl6-libcurl:58: CURLE_INTERFACE_FAILED
CurtTilmes/perl6-libcurl:59: CURLE_OBSOLETE46
CurtTilmes/perl6-libcurl:60: CURLE_TOO_MANY_REDIRECTS
CurtTilmes/perl6-libcurl:61: CURLE_UNKNOWN_OPTION
CurtTilmes/perl6-libcurl:62: CURLE_TELNET_OPTION_SYNTAX
CurtTilmes/perl6-libcurl:63: CURLE_OBSOLETE50
CurtTilmes/perl6-libcurl:64: CURLE_PEER_FAILED_VERIFICATION
CurtTilmes/perl6-libcurl:65: CURLE_GOT_NOTHING
CurtTilmes/perl6-libcurl:66: CURLE_SSL_ENGINE_NOTFOUND
CurtTilmes/perl6-libcurl:67: CURLE_SSL_ENGINE_SETFAILED
CurtTilmes/perl6-libcurl:68: CURLE_SEND_ERROR
CurtTilmes/perl6-libcurl:69: CURLE_RECV_ERROR
CurtTilmes/perl6-libcurl:70: CURLE_OBSOLETE57
CurtTilmes/perl6-libcurl:71: CURLE_SSL_CERTPROBLEM
CurtTilmes/perl6-libcurl:72: CURLE_SSL_CIPHER
CurtTilmes/perl6-libcurl:73: CURLE_SSL_CACERT
CurtTilmes/perl6-libcurl:74: CURLE_BAD_CONTENT_ENCODING
CurtTilmes/perl6-libcurl:75: CURLE_LDAP_INVALID_URL
CurtTilmes/perl6-libcurl:76: CURLE_FILESIZE_EXCEEDED
CurtTilmes/perl6-libcurl:77: CURLE_USE_SSL_FAILED
CurtTilmes/perl6-libcurl:78: CURLE_SEND_FAIL_REWIND
CurtTilmes/perl6-libcurl:79: CURLE_SSL_ENGINE_INITFAILED
CurtTilmes/perl6-libcurl:80: CURLE_LOGIN_DENIED
CurtTilmes/perl6-libcurl:81: CURLE_TFTP_NOTFOUND
CurtTilmes/perl6-libcurl:82: CURLE_TFTP_PERM
CurtTilmes/perl6-libcurl:83: CURLE_REMOTE_DISK_FULL
CurtTilmes/perl6-libcurl:84: CURLE_TFTP_ILLEGAL
CurtTilmes/perl6-libcurl:85: CURLE_TFTP_UNKNOWNID
CurtTilmes/perl6-libcurl:86: CURLE_REMOTE_FILE_EXISTS
CurtTilmes/perl6-libcurl:87: CURLE_TFTP_NOSUCHUSER
CurtTilmes/perl6-libcurl:88: CURLE_CONV_FAILED
CurtTilmes/perl6-libcurl:89: CURLE_CONV_REQD
CurtTilmes/perl6-libcurl:90: CURLE_SSL_CACERT_BADFILE
CurtTilmes/perl6-libcurl:91: CURLE_REMOTE_FILE_NOT_FOUND
CurtTilmes/perl6-libcurl:92: CURLE_SSH
CurtTilmes/perl6-libcurl:93: CURLE_SSL_SHUTDOWN_FAILED
CurtTilmes/perl6-libcurl:94: CURLE_AGAIN
CurtTilmes/perl6-libcurl:95: CURLE_SSL_CRL_BADFILE
CurtTilmes/perl6-libcurl:96: CURLE_SSL_ISSUER_ERROR
CurtTilmes/perl6-libcurl:97: CURLE_FTP_PRET_FAILED
CurtTilmes/perl6-libcurl:98: CURLE_RTSP_CSEQ_ERROR
CurtTilmes/perl6-libcurl:99: CURLE_RTSP_SESSION_ERROR
CurtTilmes/perl6-libcurl:100: CURLE_FTP_BAD_FILE_LIST
CurtTilmes/perl6-libcurl:101: CURLE_CHUNK_FAILED
CurtTilmes/perl6-libcurl:102: CURLE_NO_CONNECTION_AVAILABLE
CurtTilmes/perl6-libcurl:104: CURL_HTTP_VERSION_NONE
CurtTilmes/perl6-libcurl:105: CURL_HTTP_VERSION_1_0
CurtTilmes/perl6-libcurl:106: CURL_HTTP_VERSION_1_1
CurtTilmes/perl6-libcurl:107: CURL_HTTP_VERSION_2_0
CurtTilmes/perl6-libcurl:109: CURLINFO_TEXT
CurtTilmes/perl6-libcurl:110: CURLINFO_HEADER_IN
CurtTilmes/perl6-libcurl:111: CURLINFO_HEADER_OUT
CurtTilmes/perl6-libcurl:112: CURLINFO_DATA_IN
CurtTilmes/perl6-libcurl:113: CURLINFO_DATA_OUT
CurtTilmes/perl6-libcurl:114: CURLINFO_SSL_DATA_IN
CurtTilmes/perl6-libcurl:115: CURLINFO_SSL_DATA_OUT
CurtTilmes/perl6-libcurl:117: CURLAUTH_NONE
CurtTilmes/perl6-libcurl:118: CURLAUTH_BASIC
CurtTilmes/perl6-libcurl:119: CURLAUTH_DIGEST
CurtTilmes/perl6-libcurl:120: CURLAUTH_GSSNEGOTIATE
CurtTilmes/perl6-libcurl:121: CURLAUTH_NTLM
CurtTilmes/perl6-libcurl:122: CURLAUTH_DIGEST_IE
CurtTilmes/perl6-libcurl:123: CURLAUTH_NTLM_WB
CurtTilmes/perl6-libcurl:124: CURLAUTH_ONLY
CurtTilmes/perl6-libcurl:125: CURLAUTH_ANY
CurtTilmes/perl6-libcurl:126: CURLAUTH_ANYSAFE
CurtTilmes/perl6-libcurl:128: CURL_NETRC_IGNORED
CurtTilmes/perl6-libcurl:129: CURL_NETRC_OPTIONAL
CurtTilmes/perl6-libcurl:130: CURL_NETRC_REQUIRED
CurtTilmes/perl6-libcurl:132: CURL_TIMECOND_NONE
CurtTilmes/perl6-libcurl:133: CURL_TIMECOND_IFMODSINCE
CurtTilmes/perl6-libcurl:134: CURL_TIMECOND_IFUNMODSINCE
CurtTilmes/perl6-libcurl:135: CURL_TIMECOND_LASTMOD
CurtTilmes/perl6-libcurl:137: CURLPROXY_HTTP
CurtTilmes/perl6-libcurl:138: CURLPROXY_HTTP_1_0
CurtTilmes/perl6-libcurl:139: CURLPROXY_SOCKS4
CurtTilmes/perl6-libcurl:140: CURLPROXY_SOCKS5
CurtTilmes/perl6-libcurl:141: CURLPROXY_SOCKS4A
CurtTilmes/perl6-libcurl:142: CURLPROXY_SOCKS5_HOSTNAME
CurtTilmes/perl6-libcurl:144: CURLUSESSL_NONE
CurtTilmes/perl6-libcurl:145: CURLUSESSL_TRY
CurtTilmes/perl6-libcurl:146: CURLUSESSL_CONTROL
CurtTilmes/perl6-libcurl:147: CURLUSESSL_ALL
CurtTilmes/perl6-libcurl:151: enum CURLOPT_TYPE <CURLOPT_BOOL CURLOPT_STR CURLOPT_LONG CURLOPT_OFF_T
CurtTilmes/perl6-libcurl:152: LIBCURL_HEADER LIBCURL_DOWNLOAD LIBCURL_UPLOAD LIBCURL_SEND
CurtTilmes/perl6-libcurl:153: LIBCURL_DEBUG LIBCURL_XFER LIBCURL_PRIVATE>;
CurtTilmes/perl6-libcurl:156: CAinfo => (CURLOPT_CAINFO, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:157: CApath => (CURLOPT_CAPATH, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:158: URL => (CURLOPT_URL, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:159: accepttimeout-ms => (CURLOPT_ACCEPTTIMEOUT_MS, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:160: accept-encoding => (CURLOPT_ACCEPT_ENCODING, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:161: address-scope => (CURLOPT_ADDRESS_SCOPE, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:162: append => (CURLOPT_APPEND, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:163: autoreferer => (CURLOPT_AUTOREFERER, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:164: buffersize => (CURLOPT_BUFFERSIZE, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:165: certinfo => (CURLOPT_CERTINFO, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:166: cookie => (CURLOPT_COOKIE, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:167: cookiefile => (CURLOPT_COOKIEFILE, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:168: cookiejar => (CURLOPT_COOKIEJAR, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:169: cookielist => (CURLOPT_COOKIELIST, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:170: customrequest => (CURLOPT_CUSTOMREQUEST, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:171: dirlistonly => (CURLOPT_DIRLISTONLY, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:172: failonerror => (CURLOPT_FAILONERROR, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:173: followlocation => (CURLOPT_FOLLOWLOCATION, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:174: forbid-reuse => (CURLOPT_FORBID_REUSE, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:175: fresh-connect => (CURLOPT_FRESH_CONNECT, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:176: ftp-skip-pasv-ip => (CURLOPT_FTP_SKIP_PASV_IP, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:177: ftp-use-eprt => (CURLOPT_FTP_USE_EPRT, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:178: ftp-use-epsv => (CURLOPT_FTP_USE_EPSV, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:179: ftpport => (CURLOPT_FTPPORT, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:180: header => (CURLOPT_HEADER, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:181: http-version => (CURLOPT_HTTP_VERSION, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:182: httpauth => (CURLOPT_HTTPAUTH, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:183: httpget => (CURLOPT_HTTPGET, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:184: httpproxytunnel => (CURLOPT_HTTPPROXYTUNNEL, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:185: infilesize => (CURLOPT_INFILESIZE_LARGE, CURLOPT_OFF_T ),
CurtTilmes/perl6-libcurl:186: low-speed-limit => (CURLOPT_LOW_SPEED_LIMIT, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:187: low-speed-time => (CURLOPT_LOW_SPEED_TIME, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:188: maxconnects => (CURLOPT_MAXCONNECTS, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:189: maxfilesize => (CURLOPT_MAXFILESIZE_LARGE, CURLOPT_OFF_T ),
CurtTilmes/perl6-libcurl:190: maxredirs => (CURLOPT_MAXREDIRS, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:191: max-send-speed => (CURLOPT_MAX_SEND_SPEED_LARGE, CURLOPT_OFF_T ),
CurtTilmes/perl6-libcurl:192: max-recv-speed => (CURLOPT_MAX_RECV_SPEED_LARGE, CURLOPT_OFF_T ),
CurtTilmes/perl6-libcurl:193: netrc => (CURLOPT_NETRC, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:194: nobody => (CURLOPT_NOBODY, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:195: noprogress => (CURLOPT_NOPROGRESS, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:196: nosignal => (CURLOPT_NOSIGNAL, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:197: password => (CURLOPT_PASSWORD, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:198: post => (CURLOPT_POST, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:199: postfields => (CURLOPT_COPYPOSTFIELDS, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:200: postfieldsize => (CURLOPT_POSTFIELDSIZE_LARGE, CURLOPT_OFF_T ),
CurtTilmes/perl6-libcurl:201: protocols => (CURLOPT_PROTOCOLS, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:202: proxy => (CURLOPT_PROXY, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:203: proxyauth => (CURLOPT_PROXYAUTH, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:204: proxyport => (CURLOPT_PROXYPORT, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:205: proxytype => (CURLOPT_PROXYTYPE, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:206: proxyuserpwd => (CURLOPT_PROXYUSERPWD, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:207: range => (CURLOPT_RANGE, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:208: redir-protocols => (CURLOPT_REDIR_PROTOCOLS, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:209: referer => (CURLOPT_REFERER, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:210: resume-from => (CURLOPT_RESUME_FROM_LARGE, CURLOPT_OFF_T ),
CurtTilmes/perl6-libcurl:211: ssl-verifyhost => (CURLOPT_SSL_VERIFYHOST, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:212: ssl-verifypeer => (CURLOPT_SSL_VERIFYPEER, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:213: timecondition => (CURLOPT_TIMECONDITION, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:214: timeout => (CURLOPT_TIMEOUT, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:215: timeout-ms => (CURLOPT_TIMEOUT_MS, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:216: timevalue => (CURLOPT_TIMEVALUE, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:217: unrestricted-auth => (CURLOPT_UNRESTRICTED_AUTH, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:218: use-ssl => (CURLOPT_USE_SSL, CURLOPT_LONG ),
CurtTilmes/perl6-libcurl:219: useragent => (CURLOPT_USERAGENT, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:220: username => (CURLOPT_USERNAME, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:221: userpwd => (CURLOPT_USERPWD, CURLOPT_STR ),
CurtTilmes/perl6-libcurl:222: verbose => (CURLOPT_VERBOSE, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:223: wildcardmatch => (CURLOPT_WILDCARDMATCH, CURLOPT_BOOL ),
CurtTilmes/perl6-libcurl:224: Transfer-Encoding => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:225: Content-MD5 => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:226: Content-Type => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:227: Content-Length => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:228: Host => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:229: Accept => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:230: Expect => (0, LIBCURL_HEADER ),
CurtTilmes/perl6-libcurl:231: download => (0, LIBCURL_DOWNLOAD ),
CurtTilmes/perl6-libcurl:232: upload => (0, LIBCURL_UPLOAD ),
CurtTilmes/perl6-libcurl:233: send => (0, LIBCURL_SEND ),
CurtTilmes/perl6-libcurl:234: debugfunction => (0, LIBCURL_DEBUG ),
CurtTilmes/perl6-libcurl:235: xferinfofunction => (0, LIBCURL_XFER ),
CurtTilmes/perl6-libcurl:236: private => (0, LIBCURL_PRIVATE ),
CurtTilmes/perl6-libcurl:240: appconnect_time => (CURLINFO_APPCONNECT_TIME, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:241: certinfo => (CURLINFO_CERTINFO, CURLINFO_SLIST ),
CurtTilmes/perl6-libcurl:242: condition-unmet => (CURLINFO_CONDITION_UNMET, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:243: connect-time => (CURLINFO_CONNECT_TIME, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:244: content-type => (CURLINFO_CONTENT_TYPE, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:245: cookielist => (CURLINFO_COOKIELIST, CURLINFO_SLIST ),
CurtTilmes/perl6-libcurl:246: effective-url => (CURLINFO_EFFECTIVE_URL, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:247: ftp-entry-path => (CURLINFO_FTP_ENTRY_PATH, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:248: header-size => (CURLINFO_HEADER_SIZE, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:249: http-connectcode => (CURLINFO_HTTP_CONNECTCODE, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:250: httpauth-avail => (CURLINFO_HTTPAUTH_AVAIL, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:251: lastsocket => (CURLINFO_LASTSOCKET, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:252: local-ip => (CURLINFO_LOCAL_IP, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:253: local-port => (CURLINFO_LOCAL_PORT, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:254: namelookup-time => (CURLINFO_NAMELOOKUP_TIME, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:255: num-connects => (CURLINFO_NUM_CONNECTS, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:256: os-errno => (CURLINFO_OS_ERRNO, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:257: pretransfer-time => (CURLINFO_PRETRANSFER_TIME, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:258: primary-ip => (CURLINFO_PRIMARY_IP, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:259: primary-port => (CURLINFO_PRIMARY_PORT, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:260: proxyauth-avail => (CURLINFO_PROXYAUTH_AVAIL, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:261: redirect-url => (CURLINFO_REDIRECT_URL, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:262: request-size => (CURLINFO_REQUEST_SIZE, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:263: response-code => (CURLINFO_RESPONSE_CODE, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:264: rtsp-client-cseq => (CURLINFO_RTSP_CLIENT_CSEQ, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:265: rtsp-cseq-recv => (CURLINFO_RTSP_CSEQ_RECV, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:266: rtsp-server-cseq => (CURLINFO_RTSP_SERVER_CSEQ, CURLINFO_LONG ),
CurtTilmes/perl6-libcurl:267: rtsp-session-id => (CURLINFO_RTSP_SESSION_ID, CURLINFO_STRING ),
CurtTilmes/perl6-libcurl:268: size-download => (CURLINFO_SIZE_DOWNLOAD, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:269: size-upload => (CURLINFO_SIZE_UPLOAD, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:270: speed-download => (CURLINFO_SPEED_DOWNLOAD, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:271: speed-upload => (CURLINFO_SPEED_UPLOAD, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:272: ssl-engines => (CURLINFO_SSL_ENGINES, CURLINFO_SLIST ),
CurtTilmes/perl6-libcurl:273: total-time => (CURLINFO_TOTAL_TIME, CURLINFO_DOUBLE ),
CurtTilmes/perl6-libcurl:277: name => (CURLFORM_COPYNAME, CURLFORM_NAMELENGTH),
CurtTilmes/perl6-libcurl:278: contents => (CURLFORM_COPYCONTENTS, CURLFORM_CONTENTSLENGTH),
CurtTilmes/perl6-libcurl:279: filecontent => (CURLFORM_FILECONTENT, 0),
CurtTilmes/perl6-libcurl:280: file => (CURLFORM_FILE, 0),
CurtTilmes/perl6-libcurl:281: contenttype => (CURLFORM_CONTENTTYPE, 0),
CurtTilmes/perl6-libcurl:282: filename => (CURLFORM_FILENAME, 0),
CurtTilmes/perl6-libcurl:283: buffer => (CURLFORM_BUFFER, 0),
CurtTilmes/perl6-libcurl:284: bufferptr => (CURLFORM_BUFFERPTR, CURLFORM_BUFFERLENGTH),
CurtTilmes/perl6-libcurl:287: INIT { curl_global_init(CURL_GLOBAL_DEFAULT) }
CurtTilmes/perl6-libcurl:289: END { curl_global_cleanup() }
CurtTilmes/perl6-libcurl:293: %allhandles{nativecast(LibCurl::EasyHandle, $handleptr).id}
CurtTilmes/perl6-libcurl:352: $easy.debugfunction.($easy, CURL-INFO-TYPE($type),
CurtTilmes/perl6-libcurl:365: class LibCurl::Easy
CurtTilmes/perl6-libcurl:367: has LibCurl::EasyHandle $.handle handles <escape unescape>;
CurtTilmes/perl6-libcurl:368: has LibCurl::slist $.header-slist;
CurtTilmes/perl6-libcurl:369: has LibCurl::Form $.form;
CurtTilmes/perl6-libcurl:390: my $handle = LibCurl::EasyHandle.new;
CurtTilmes/perl6-libcurl:393: $errorbuffer[CURL_ERROR_SIZE] = 0;
CurtTilmes/perl6-libcurl:396: $handle.setopt(CURLOPT_HEADERDATA, $handle);
CurtTilmes/perl6-libcurl:397: $handle.setopt(CURLOPT_HEADERFUNCTION, &headerfunction);
CurtTilmes/perl6-libcurl:398: $handle.setopt(CURLOPT_ERRORBUFFER, $errorbuffer);
CurtTilmes/perl6-libcurl:403: method version returns Str { state $v = curl_version }
CurtTilmes/perl6-libcurl:405: method version-info returns LibCurl::version-info
CurtTilmes/perl6-libcurl:407: state $v = LibCurl::version.new.info
CurtTilmes/perl6-libcurl:426: when CURLOPT_BOOL {
CurtTilmes/perl6-libcurl:430: when CURLOPT_LONG | CURLOPT_STR | CURLOPT_OFF_T {
CurtTilmes/perl6-libcurl:433: if $code == CURLOPT_RESUME_FROM_LARGE && $!upload-fh
CurtTilmes/perl6-libcurl:439: when LIBCURL_HEADER {
CurtTilmes/perl6-libcurl:443: when LIBCURL_DOWNLOAD {
CurtTilmes/perl6-libcurl:445: $!handle.setopt(CURLOPT_WRITEDATA, $!download-fh);
CurtTilmes/perl6-libcurl:448: when LIBCURL_UPLOAD {
CurtTilmes/perl6-libcurl:450: $!handle.setopt(CURLOPT_UPLOAD, 1);
CurtTilmes/perl6-libcurl:451: $!handle.setopt(CURLOPT_INFILESIZE_LARGE,
CurtTilmes/perl6-libcurl:453: $!handle.setopt(CURLOPT_READDATA, $!upload-fh);
CurtTilmes/perl6-libcurl:456: when LIBCURL_SEND {
CurtTilmes/perl6-libcurl:463: $!handle.setopt(CURLOPT_UPLOAD, 1);
CurtTilmes/perl6-libcurl:464: $!handle.setopt(CURLOPT_INFILESIZE_LARGE, $!sendbuf.elems);
CurtTilmes/perl6-libcurl:465: $!handle.setopt(CURLOPT_READDATA, $!handle);
CurtTilmes/perl6-libcurl:466: $!handle.setopt(CURLOPT_READFUNCTION, &readfunction);
CurtTilmes/perl6-libcurl:469: when LIBCURL_DEBUG {
CurtTilmes/perl6-libcurl:471: $!handle.setopt(CURLOPT_DEBUGFUNCTION, &debugfunction);
CurtTilmes/perl6-libcurl:472: $!handle.setopt(CURLOPT_VERBOSE, 1);
CurtTilmes/perl6-libcurl:475: when LIBCURL_XFER {
CurtTilmes/perl6-libcurl:477: $!handle.setopt(CURLOPT_XFERINFODATA, $!handle);
CurtTilmes/perl6-libcurl:478: $!handle.setopt(CURLOPT_XFERINFOFUNCTION,
CurtTilmes/perl6-libcurl:480: $!handle.setopt(CURLOPT_NOPROGRESS, 0);
CurtTilmes/perl6-libcurl:483: when LIBCURL_PRIVATE {
CurtTilmes/perl6-libcurl:498: $!header-slist = LibCurl::slist;
CurtTilmes/perl6-libcurl:516: $!form //= LibCurl::Form.new;
CurtTilmes/perl6-libcurl:544: $!form = LibCurl::Form;
CurtTilmes/perl6-libcurl:549: $!handle.setopt(CURLOPT_HTTPHEADER, $!header-slist);
CurtTilmes/perl6-libcurl:554: $!handle.setopt(CURLOPT_WRITEDATA, $!handle);
CurtTilmes/perl6-libcurl:555: $!handle.setopt(CURLOPT_WRITEFUNCTION, &writefunction);
CurtTilmes/perl6-libcurl:558: $!handle.setopt(CURLOPT_HTTPPOST, $!form.firstitem) if $!form;
CurtTilmes/perl6-libcurl:575: method perform() returns LibCurl::Easy
CurtTilmes/perl6-libcurl:583: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:594: when CURLINFO_STRING {
CurtTilmes/perl6-libcurl:597: when CURLINFO_LONG {
CurtTilmes/perl6-libcurl:600: when CURLINFO_DOUBLE {
CurtTilmes/perl6-libcurl:603: when CURLINFO_SLIST {
CurtTilmes/perl6-libcurl:605: when CURLINFO_CERTINFO {
CurtTilmes/perl6-libcurl:609: when CURLINFO_COOKIELIST | CURLINFO_SSL_ENGINES {
CurtTilmes/perl6-libcurl:649: $!header-slist = LibCurl::slist;
CurtTilmes/perl6-libcurl:655: $!handle = LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:7: constant LIBCURL = "curl";
CurtTilmes/perl6-libcurl:9: enum CURL_HTTP_VERSION_ENUM <
CurtTilmes/perl6-libcurl:10: CURL_HTTP_VERSION_NONE
CurtTilmes/perl6-libcurl:11: CURL_HTTP_VERSION_1_0
CurtTilmes/perl6-libcurl:12: CURL_HTTP_VERSION_1_1
CurtTilmes/perl6-libcurl:13: CURL_HTTP_VERSION_2_0
CurtTilmes/perl6-libcurl:16: enum CURL-INFO-TYPE <
CurtTilmes/perl6-libcurl:17: CURLINFO_TEXT
CurtTilmes/perl6-libcurl:18: CURLINFO_HEADER_IN
CurtTilmes/perl6-libcurl:19: CURLINFO_HEADER_OUT
CurtTilmes/perl6-libcurl:20: CURLINFO_DATA_IN
CurtTilmes/perl6-libcurl:21: CURLINFO_DATA_OUT
CurtTilmes/perl6-libcurl:22: CURLINFO_SSL_DATA_IN
CurtTilmes/perl6-libcurl:23: CURLINFO_SSL_DATA_OUT
CurtTilmes/perl6-libcurl:26: enum CURLAUTH (
CurtTilmes/perl6-libcurl:27: CURLAUTH_NONE => 0,
CurtTilmes/perl6-libcurl:28: CURLAUTH_BASIC => 1,
CurtTilmes/perl6-libcurl:29: CURLAUTH_DIGEST => 1 +< 1,
CurtTilmes/perl6-libcurl:30: CURLAUTH_GSSNEGOTIATE => 1 +< 2,
CurtTilmes/perl6-libcurl:31: CURLAUTH_NTLM => 1 +< 3,
CurtTilmes/perl6-libcurl:32: CURLAUTH_DIGEST_IE => 1 +< 4,
CurtTilmes/perl6-libcurl:33: CURLAUTH_NTLM_WB => 1 +< 5,
CurtTilmes/perl6-libcurl:34: CURLAUTH_ONLY => 1 +< 31,
CurtTilmes/perl6-libcurl:37: constant CURLAUTH_ANY = +^CURLAUTH_DIGEST_IE;
CurtTilmes/perl6-libcurl:38: constant CURLAUTH_ANYSAFE = +^(CURLAUTH_BASIC +| CURLAUTH_DIGEST_IE);
CurtTilmes/perl6-libcurl:40: enum CURL_NETRC <
CurtTilmes/perl6-libcurl:41: CURL_NETRC_IGNORED
CurtTilmes/perl6-libcurl:42: CURL_NETRC_OPTIONAL
CurtTilmes/perl6-libcurl:43: CURL_NETRC_REQUIRED
CurtTilmes/perl6-libcurl:46: enum CURL_TIMECOND <
CurtTilmes/perl6-libcurl:47: CURL_TIMECOND_NONE
CurtTilmes/perl6-libcurl:48: CURL_TIMECOND_IFMODSINCE
CurtTilmes/perl6-libcurl:49: CURL_TIMECOND_IFUNMODSINCE
CurtTilmes/perl6-libcurl:50: CURL_TIMECOND_LASTMOD
CurtTilmes/perl6-libcurl:53: enum CURLPROXY (
CurtTilmes/perl6-libcurl:54: CURLPROXY_HTTP => 0,
CurtTilmes/perl6-libcurl:55: CURLPROXY_HTTP_1_0 => 1,
CurtTilmes/perl6-libcurl:56: CURLPROXY_SOCKS4 => 4,
CurtTilmes/perl6-libcurl:57: CURLPROXY_SOCKS5 => 5,
CurtTilmes/perl6-libcurl:58: CURLPROXY_SOCKS4A => 6,
CurtTilmes/perl6-libcurl:59: CURLPROXY_SOCKS5_HOSTNAME => 7,
CurtTilmes/perl6-libcurl:62: enum CURLUSESSL <
CurtTilmes/perl6-libcurl:63: CURLUSESSL_NONE
CurtTilmes/perl6-libcurl:64: CURLUSESSL_TRY
CurtTilmes/perl6-libcurl:65: CURLUSESSL_CONTROL
CurtTilmes/perl6-libcurl:66: CURLUSESSL_ALL
CurtTilmes/perl6-libcurl:69: enum CURL_VERSION_FEATURE (
CurtTilmes/perl6-libcurl:70: CURL_VERSION_IPV6 => 1,
CurtTilmes/perl6-libcurl:71: CURL_VERSION_KERBEROS4 => 1 +< 1,
CurtTilmes/perl6-libcurl:72: CURL_VERSION_SSL => 1 +< 2,
CurtTilmes/perl6-libcurl:73: CURL_VERSION_LIBZ => 1 +< 3,
CurtTilmes/perl6-libcurl:74: CURL_VERSION_NTLM => 1 +< 4,
CurtTilmes/perl6-libcurl:75: CURL_VERSION_GSSNEGOTIATE => 1 +< 5,
CurtTilmes/perl6-libcurl:76: CURL_VERSION_DEBUG => 1 +< 6,
CurtTilmes/perl6-libcurl:77: CURL_VERSION_ASYNCHDNS => 1 +< 7,
CurtTilmes/perl6-libcurl:78: CURL_VERSION_SPNEGO => 1 +< 8,
CurtTilmes/perl6-libcurl:79: CURL_VERSION_LARGEFILE => 1 +< 9,
CurtTilmes/perl6-libcurl:80: CURL_VERSION_IDN => 1 +< 10,
CurtTilmes/perl6-libcurl:81: CURL_VERSION_SSPI => 1 +< 11,
CurtTilmes/perl6-libcurl:82: CURL_VERSION_CONV => 1 +< 12,
CurtTilmes/perl6-libcurl:83: CURL_VERSION_CURLDEBUG => 1 +< 13,
CurtTilmes/perl6-libcurl:84: CURL_VERSION_TLSAUTH_SRP => 1 +< 14,
CurtTilmes/perl6-libcurl:85: CURL_VERSION_NTLM_WB => 1 +< 15,
CurtTilmes/perl6-libcurl:86: CURL_VERSION_HTTP2 => 1 +< 16
CurtTilmes/perl6-libcurl:89: enum CURLversion <
CurtTilmes/perl6-libcurl:90: CURLVERSION_FIRST
CurtTilmes/perl6-libcurl:91: CURLVERSION_SECOND
CurtTilmes/perl6-libcurl:92: CURLVERSION_THIRD
CurtTilmes/perl6-libcurl:93: CURLVERSION_FOURTH
CurtTilmes/perl6-libcurl:96: constant CURLVERSION_NOW = CURLVERSION_FOURTH;
CurtTilmes/perl6-libcurl:98: enum CURLcode <
CurtTilmes/perl6-libcurl:99: CURLE_OK
CurtTilmes/perl6-libcurl:100: CURLE_UNSUPPORTED_PROTOCOL
CurtTilmes/perl6-libcurl:101: CURLE_FAILED_INIT
CurtTilmes/perl6-libcurl:102: CURLE_URL_MALFORMAT
CurtTilmes/perl6-libcurl:103: CURLE_NOT_BUILT_IN
CurtTilmes/perl6-libcurl:104: CURLE_COULDNT_RESOLVE_PROXY
CurtTilmes/perl6-libcurl:105: CURLE_COULDNT_RESOLVE_HOST
CurtTilmes/perl6-libcurl:106: CURLE_COULDNT_CONNECT
CurtTilmes/perl6-libcurl:107: CURLE_FTP_WEIRD_SERVER_REPLY
CurtTilmes/perl6-libcurl:108: CURLE_REMOTE_ACCESS_DENIED
CurtTilmes/perl6-libcurl:109: CURLE_FTP_ACCEPT_FAILED
CurtTilmes/perl6-libcurl:110: CURLE_FTP_WEIRD_PASS_REPLY
CurtTilmes/perl6-libcurl:111: CURLE_FTP_ACCEPT_TIMEOUT
CurtTilmes/perl6-libcurl:112: CURLE_FTP_WEIRD_PASV_REPLY
CurtTilmes/perl6-libcurl:113: CURLE_FTP_WEIRD_227_FORMAT
CurtTilmes/perl6-libcurl:114: CURLE_FTP_CANT_GET_HOST
CurtTilmes/perl6-libcurl:115: CURLE_OBSOLETE16
CurtTilmes/perl6-libcurl:116: CURLE_FTP_COULDNT_SET_TYPE
CurtTilmes/perl6-libcurl:117: CURLE_PARTIAL_FILE
CurtTilmes/perl6-libcurl:118: CURLE_FTP_COULDNT_RETR_FILE
CurtTilmes/perl6-libcurl:119: CURLE_OBSOLETE20
CurtTilmes/perl6-libcurl:120: CURLE_QUOTE_ERROR
CurtTilmes/perl6-libcurl:121: CURLE_HTTP_RETURNED_ERROR
CurtTilmes/perl6-libcurl:122: CURLE_WRITE_ERROR
CurtTilmes/perl6-libcurl:123: CURLE_OBSOLETE24
CurtTilmes/perl6-libcurl:124: CURLE_UPLOAD_FAILED
CurtTilmes/perl6-libcurl:125: CURLE_READ_ERROR
CurtTilmes/perl6-libcurl:126: CURLE_OUT_OF_MEMORY
CurtTilmes/perl6-libcurl:127: CURLE_OPERATION_TIMEDOUT
CurtTilmes/perl6-libcurl:128: CURLE_OBSOLETE29
CurtTilmes/perl6-libcurl:129: CURLE_FTP_PORT_FAILED
CurtTilmes/perl6-libcurl:130: CURLE_FTP_COULDNT_USE_REST
CurtTilmes/perl6-libcurl:131: CURLE_OBSOLETE32
CurtTilmes/perl6-libcurl:132: CURLE_RANGE_ERROR
CurtTilmes/perl6-libcurl:133: CURLE_HTTP_POST_ERROR
CurtTilmes/perl6-libcurl:134: CURLE_SSL_CONNECT_ERROR
CurtTilmes/perl6-libcurl:135: CURLE_BAD_DOWNLOAD_RESUME
CurtTilmes/perl6-libcurl:136: CURLE_FILE_COULDNT_READ_FILE
CurtTilmes/perl6-libcurl:137: CURLE_LDAP_CANNOT_BIND
CurtTilmes/perl6-libcurl:138: CURLE_LDAP_SEARCH_FAILED
CurtTilmes/perl6-libcurl:139: CURLE_OBSOLETE40
CurtTilmes/perl6-libcurl:140: CURLE_FUNCTION_NOT_FOUND
CurtTilmes/perl6-libcurl:141: CURLE_ABORTED_BY_CALLBACK
CurtTilmes/perl6-libcurl:142: CURLE_BAD_FUNCTION_ARGUMENT
CurtTilmes/perl6-libcurl:143: CURLE_OBSOLETE44
CurtTilmes/perl6-libcurl:144: CURLE_INTERFACE_FAILED
CurtTilmes/perl6-libcurl:145: CURLE_OBSOLETE46
CurtTilmes/perl6-libcurl:146: CURLE_TOO_MANY_REDIRECTS
CurtTilmes/perl6-libcurl:147: CURLE_UNKNOWN_OPTION
CurtTilmes/perl6-libcurl:148: CURLE_TELNET_OPTION_SYNTAX
CurtTilmes/perl6-libcurl:149: CURLE_OBSOLETE50
CurtTilmes/perl6-libcurl:150: CURLE_PEER_FAILED_VERIFICATION
CurtTilmes/perl6-libcurl:151: CURLE_GOT_NOTHING
CurtTilmes/perl6-libcurl:152: CURLE_SSL_ENGINE_NOTFOUND
CurtTilmes/perl6-libcurl:153: CURLE_SSL_ENGINE_SETFAILED
CurtTilmes/perl6-libcurl:154: CURLE_SEND_ERROR
CurtTilmes/perl6-libcurl:155: CURLE_RECV_ERROR
CurtTilmes/perl6-libcurl:156: CURLE_OBSOLETE57
CurtTilmes/perl6-libcurl:157: CURLE_SSL_CERTPROBLEM
CurtTilmes/perl6-libcurl:158: CURLE_SSL_CIPHER
CurtTilmes/perl6-libcurl:159: CURLE_SSL_CACERT
CurtTilmes/perl6-libcurl:160: CURLE_BAD_CONTENT_ENCODING
CurtTilmes/perl6-libcurl:161: CURLE_LDAP_INVALID_URL
CurtTilmes/perl6-libcurl:162: CURLE_FILESIZE_EXCEEDED
CurtTilmes/perl6-libcurl:163: CURLE_USE_SSL_FAILED
CurtTilmes/perl6-libcurl:164: CURLE_SEND_FAIL_REWIND
CurtTilmes/perl6-libcurl:165: CURLE_SSL_ENGINE_INITFAILED
CurtTilmes/perl6-libcurl:166: CURLE_LOGIN_DENIED
CurtTilmes/perl6-libcurl:167: CURLE_TFTP_NOTFOUND
CurtTilmes/perl6-libcurl:168: CURLE_TFTP_PERM
CurtTilmes/perl6-libcurl:169: CURLE_REMOTE_DISK_FULL
CurtTilmes/perl6-libcurl:170: CURLE_TFTP_ILLEGAL
CurtTilmes/perl6-libcurl:171: CURLE_TFTP_UNKNOWNID
CurtTilmes/perl6-libcurl:172: CURLE_REMOTE_FILE_EXISTS
CurtTilmes/perl6-libcurl:173: CURLE_TFTP_NOSUCHUSER
CurtTilmes/perl6-libcurl:174: CURLE_CONV_FAILED
CurtTilmes/perl6-libcurl:175: CURLE_CONV_REQD
CurtTilmes/perl6-libcurl:176: CURLE_SSL_CACERT_BADFILE
CurtTilmes/perl6-libcurl:177: CURLE_REMOTE_FILE_NOT_FOUND
CurtTilmes/perl6-libcurl:178: CURLE_SSH
CurtTilmes/perl6-libcurl:179: CURLE_SSL_SHUTDOWN_FAILED
CurtTilmes/perl6-libcurl:180: CURLE_AGAIN
CurtTilmes/perl6-libcurl:181: CURLE_SSL_CRL_BADFILE
CurtTilmes/perl6-libcurl:182: CURLE_SSL_ISSUER_ERROR
CurtTilmes/perl6-libcurl:183: CURLE_FTP_PRET_FAILED
CurtTilmes/perl6-libcurl:184: CURLE_RTSP_CSEQ_ERROR
CurtTilmes/perl6-libcurl:185: CURLE_RTSP_SESSION_ERROR
CurtTilmes/perl6-libcurl:186: CURLE_FTP_BAD_FILE_LIST
CurtTilmes/perl6-libcurl:187: CURLE_CHUNK_FAILED
CurtTilmes/perl6-libcurl:188: CURLE_NO_CONNECTION_AVAILABLE
CurtTilmes/perl6-libcurl:191: constant CURL_ERROR_SIZE = 256;
CurtTilmes/perl6-libcurl:193: constant CURL_GLOBAL_SSL = 1;
CurtTilmes/perl6-libcurl:194: constant CURL_GLOBAL_WIN32 = 1 +< 1;
CurtTilmes/perl6-libcurl:195: constant CURL_GLOBAL_ALL = CURL_GLOBAL_SSL +|
CurtTilmes/perl6-libcurl:196: CURL_GLOBAL_WIN32;
CurtTilmes/perl6-libcurl:197: constant CURL_GLOBAL_NOTHING = 0;
CurtTilmes/perl6-libcurl:198: constant CURL_GLOBAL_DEFAULT = CURL_GLOBAL_ALL;
CurtTilmes/perl6-libcurl:199: constant CURL_GLOBAL_ACK_EINTR = 1 +< 2;
CurtTilmes/perl6-libcurl:201: constant CURLINFO_STRING = 0x100000;
CurtTilmes/perl6-libcurl:202: constant CURLINFO_LONG = 0x200000;
CurtTilmes/perl6-libcurl:203: constant CURLINFO_DOUBLE = 0x300000;
CurtTilmes/perl6-libcurl:204: constant CURLINFO_SLIST = 0x400000;
CurtTilmes/perl6-libcurl:206: constant CURLINFO_EFFECTIVE_URL = CURLINFO_STRING + 1;
CurtTilmes/perl6-libcurl:207: constant CURLINFO_RESPONSE_CODE = CURLINFO_LONG + 2;
CurtTilmes/perl6-libcurl:208: constant CURLINFO_TOTAL_TIME = CURLINFO_DOUBLE + 3;
CurtTilmes/perl6-libcurl:209: constant CURLINFO_NAMELOOKUP_TIME = CURLINFO_DOUBLE + 4;
CurtTilmes/perl6-libcurl:210: constant CURLINFO_CONNECT_TIME = CURLINFO_DOUBLE + 5;
CurtTilmes/perl6-libcurl:211: constant CURLINFO_PRETRANSFER_TIME = CURLINFO_DOUBLE + 6;
CurtTilmes/perl6-libcurl:212: constant CURLINFO_SIZE_UPLOAD = CURLINFO_DOUBLE + 7;
CurtTilmes/perl6-libcurl:213: constant CURLINFO_SIZE_DOWNLOAD = CURLINFO_DOUBLE + 8;
CurtTilmes/perl6-libcurl:214: constant CURLINFO_SPEED_DOWNLOAD = CURLINFO_DOUBLE + 9;
CurtTilmes/perl6-libcurl:215: constant CURLINFO_SPEED_UPLOAD = CURLINFO_DOUBLE + 10;
CurtTilmes/perl6-libcurl:216: constant CURLINFO_HEADER_SIZE = CURLINFO_LONG + 11;
CurtTilmes/perl6-libcurl:217: constant CURLINFO_REQUEST_SIZE = CURLINFO_LONG + 12;
CurtTilmes/perl6-libcurl:218: constant CURLINFO_SSL_VERIFYRESULT = CURLINFO_LONG + 13;
CurtTilmes/perl6-libcurl:219: constant CURLINFO_FILETIME = CURLINFO_LONG + 14;
CurtTilmes/perl6-libcurl:220: constant CURLINFO_CONTENT_LENGTH_DOWNLOAD = CURLINFO_DOUBLE + 15;
CurtTilmes/perl6-libcurl:221: constant CURLINFO_CONTENT_LENGTH_UPLOAD = CURLINFO_DOUBLE + 16;
CurtTilmes/perl6-libcurl:222: constant CURLINFO_STARTTRANSFER_TIME = CURLINFO_DOUBLE + 17;
CurtTilmes/perl6-libcurl:223: constant CURLINFO_CONTENT_TYPE = CURLINFO_STRING + 18;
CurtTilmes/perl6-libcurl:224: constant CURLINFO_REDIRECT_TIME = CURLINFO_DOUBLE + 19;
CurtTilmes/perl6-libcurl:225: constant CURLINFO_REDIRECT_COUNT = CURLINFO_LONG + 20;
CurtTilmes/perl6-libcurl:226: constant CURLINFO_PRIVATE = CURLINFO_STRING + 21;
CurtTilmes/perl6-libcurl:227: constant CURLINFO_HTTP_CONNECTCODE = CURLINFO_LONG + 22;
CurtTilmes/perl6-libcurl:228: constant CURLINFO_HTTPAUTH_AVAIL = CURLINFO_LONG + 23;
CurtTilmes/perl6-libcurl:229: constant CURLINFO_PROXYAUTH_AVAIL = CURLINFO_LONG + 24;
CurtTilmes/perl6-libcurl:230: constant CURLINFO_OS_ERRNO = CURLINFO_LONG + 25;
CurtTilmes/perl6-libcurl:231: constant CURLINFO_NUM_CONNECTS = CURLINFO_LONG + 26;
CurtTilmes/perl6-libcurl:232: constant CURLINFO_SSL_ENGINES = CURLINFO_SLIST + 27;
CurtTilmes/perl6-libcurl:233: constant CURLINFO_COOKIELIST = CURLINFO_SLIST + 28;
CurtTilmes/perl6-libcurl:234: constant CURLINFO_LASTSOCKET = CURLINFO_LONG + 29;
CurtTilmes/perl6-libcurl:235: constant CURLINFO_FTP_ENTRY_PATH = CURLINFO_STRING + 30;
CurtTilmes/perl6-libcurl:236: constant CURLINFO_REDIRECT_URL = CURLINFO_STRING + 31;
CurtTilmes/perl6-libcurl:237: constant CURLINFO_PRIMARY_IP = CURLINFO_STRING + 32;
CurtTilmes/perl6-libcurl:238: constant CURLINFO_APPCONNECT_TIME = CURLINFO_DOUBLE + 33;
CurtTilmes/perl6-libcurl:239: constant CURLINFO_CERTINFO = CURLINFO_SLIST + 34;
CurtTilmes/perl6-libcurl:240: constant CURLINFO_CONDITION_UNMET = CURLINFO_LONG + 35;
CurtTilmes/perl6-libcurl:241: constant CURLINFO_RTSP_SESSION_ID = CURLINFO_STRING + 36;
CurtTilmes/perl6-libcurl:242: constant CURLINFO_RTSP_CLIENT_CSEQ = CURLINFO_LONG + 37;
CurtTilmes/perl6-libcurl:243: constant CURLINFO_RTSP_SERVER_CSEQ = CURLINFO_LONG + 38;
CurtTilmes/perl6-libcurl:244: constant CURLINFO_RTSP_CSEQ_RECV = CURLINFO_LONG + 39;
CurtTilmes/perl6-libcurl:245: constant CURLINFO_PRIMARY_PORT = CURLINFO_LONG + 40;
CurtTilmes/perl6-libcurl:246: constant CURLINFO_LOCAL_IP = CURLINFO_STRING + 41;
CurtTilmes/perl6-libcurl:247: constant CURLINFO_LOCAL_PORT = CURLINFO_LONG + 42;
CurtTilmes/perl6-libcurl:248: constant CURLINFO_TLS_SESSION = CURLINFO_SLIST + 43;
CurtTilmes/perl6-libcurl:250: constant CURLOPTTYPE_LONG = 0;
CurtTilmes/perl6-libcurl:251: constant CURLOPTTYPE_OBJECTPOINT = 10000;
CurtTilmes/perl6-libcurl:252: constant CURLOPTTYPE_FUNCTIONPOINT = 20000;
CurtTilmes/perl6-libcurl:253: constant CURLOPTTYPE_OFF_T = 30000;
CurtTilmes/perl6-libcurl:255: constant CURLOPT_FILE = CURLOPTTYPE_OBJECTPOINT + 1;
CurtTilmes/perl6-libcurl:256: constant CURLOPT_URL = CURLOPTTYPE_OBJECTPOINT + 2;
CurtTilmes/perl6-libcurl:257: constant CURLOPT_PORT = CURLOPTTYPE_LONG + 3;
CurtTilmes/perl6-libcurl:258: constant CURLOPT_PROXY = CURLOPTTYPE_OBJECTPOINT + 4;
CurtTilmes/perl6-libcurl:259: constant CURLOPT_USERPWD = CURLOPTTYPE_OBJECTPOINT + 5;
CurtTilmes/perl6-libcurl:260: constant CURLOPT_PROXYUSERPWD = CURLOPTTYPE_OBJECTPOINT + 6;
CurtTilmes/perl6-libcurl:261: constant CURLOPT_RANGE = CURLOPTTYPE_OBJECTPOINT + 7;
CurtTilmes/perl6-libcurl:262: constant CURLOPT_INFILE = CURLOPTTYPE_OBJECTPOINT + 9;
CurtTilmes/perl6-libcurl:263: constant CURLOPT_ERRORBUFFER = CURLOPTTYPE_OBJECTPOINT + 10;
CurtTilmes/perl6-libcurl:264: constant CURLOPT_WRITEFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 11;
CurtTilmes/perl6-libcurl:265: constant CURLOPT_READFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 12;
CurtTilmes/perl6-libcurl:266: constant CURLOPT_TIMEOUT = CURLOPTTYPE_LONG + 13;
CurtTilmes/perl6-libcurl:267: constant CURLOPT_INFILESIZE = CURLOPTTYPE_LONG + 14;
CurtTilmes/perl6-libcurl:268: constant CURLOPT_POSTFIELDS = CURLOPTTYPE_OBJECTPOINT + 15;
CurtTilmes/perl6-libcurl:269: constant CURLOPT_REFERER = CURLOPTTYPE_OBJECTPOINT + 16;
CurtTilmes/perl6-libcurl:270: constant CURLOPT_FTPPORT = CURLOPTTYPE_OBJECTPOINT + 17;
CurtTilmes/perl6-libcurl:271: constant CURLOPT_USERAGENT = CURLOPTTYPE_OBJECTPOINT + 18;
CurtTilmes/perl6-libcurl:272: constant CURLOPT_LOW_SPEED_LIMIT = CURLOPTTYPE_LONG + 19;
CurtTilmes/perl6-libcurl:273: constant CURLOPT_LOW_SPEED_TIME = CURLOPTTYPE_LONG + 20;
CurtTilmes/perl6-libcurl:274: constant CURLOPT_RESUME_FROM = CURLOPTTYPE_LONG + 21;
CurtTilmes/perl6-libcurl:275: constant CURLOPT_COOKIE = CURLOPTTYPE_OBJECTPOINT + 22;
CurtTilmes/perl6-libcurl:276: constant CURLOPT_HTTPHEADER = CURLOPTTYPE_OBJECTPOINT + 23;
CurtTilmes/perl6-libcurl:277: constant CURLOPT_HTTPPOST = CURLOPTTYPE_OBJECTPOINT + 24;
CurtTilmes/perl6-libcurl:278: constant CURLOPT_SSLCERT = CURLOPTTYPE_OBJECTPOINT + 25;
CurtTilmes/perl6-libcurl:279: constant CURLOPT_KEYPASSWD = CURLOPTTYPE_OBJECTPOINT + 26;
CurtTilmes/perl6-libcurl:280: constant CURLOPT_CRLF = CURLOPTTYPE_LONG + 27;
CurtTilmes/perl6-libcurl:281: constant CURLOPT_QUOTE = CURLOPTTYPE_OBJECTPOINT + 28;
CurtTilmes/perl6-libcurl:282: constant CURLOPT_WRITEHEADER = CURLOPTTYPE_OBJECTPOINT + 29;
CurtTilmes/perl6-libcurl:283: constant CURLOPT_COOKIEFILE = CURLOPTTYPE_OBJECTPOINT + 31;
CurtTilmes/perl6-libcurl:284: constant CURLOPT_SSLVERSION = CURLOPTTYPE_LONG + 32;
CurtTilmes/perl6-libcurl:285: constant CURLOPT_TIMECONDITION = CURLOPTTYPE_LONG + 33;
CurtTilmes/perl6-libcurl:286: constant CURLOPT_TIMEVALUE = CURLOPTTYPE_LONG + 34;
CurtTilmes/perl6-libcurl:287: constant CURLOPT_CUSTOMREQUEST = CURLOPTTYPE_OBJECTPOINT + 36;
CurtTilmes/perl6-libcurl:288: constant CURLOPT_STDERR = CURLOPTTYPE_OBJECTPOINT + 37;
CurtTilmes/perl6-libcurl:289: constant CURLOPT_POSTQUOTE = CURLOPTTYPE_OBJECTPOINT + 39;
CurtTilmes/perl6-libcurl:290: constant CURLOPT_WRITEINFO = CURLOPTTYPE_OBJECTPOINT + 40;
CurtTilmes/perl6-libcurl:291: constant CURLOPT_VERBOSE = CURLOPTTYPE_LONG + 41;
CurtTilmes/perl6-libcurl:292: constant CURLOPT_HEADER = CURLOPTTYPE_LONG + 42;
CurtTilmes/perl6-libcurl:293: constant CURLOPT_NOPROGRESS = CURLOPTTYPE_LONG + 43;
CurtTilmes/perl6-libcurl:294: constant CURLOPT_NOBODY = CURLOPTTYPE_LONG + 44;
CurtTilmes/perl6-libcurl:295: constant CURLOPT_FAILONERROR = CURLOPTTYPE_LONG + 45;
CurtTilmes/perl6-libcurl:296: constant CURLOPT_UPLOAD = CURLOPTTYPE_LONG + 46;
CurtTilmes/perl6-libcurl:297: constant CURLOPT_POST = CURLOPTTYPE_LONG + 47;
CurtTilmes/perl6-libcurl:298: constant CURLOPT_DIRLISTONLY = CURLOPTTYPE_LONG + 48;
CurtTilmes/perl6-libcurl:299: constant CURLOPT_APPEND = CURLOPTTYPE_LONG + 50;
CurtTilmes/perl6-libcurl:300: constant CURLOPT_NETRC = CURLOPTTYPE_LONG + 51;
CurtTilmes/perl6-libcurl:301: constant CURLOPT_FOLLOWLOCATION = CURLOPTTYPE_LONG + 52;
CurtTilmes/perl6-libcurl:302: constant CURLOPT_TRANSFERTEXT = CURLOPTTYPE_LONG + 53;
CurtTilmes/perl6-libcurl:303: constant CURLOPT_PUT = CURLOPTTYPE_LONG + 54;
CurtTilmes/perl6-libcurl:304: constant CURLOPT_PROGRESSFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 56;
CurtTilmes/perl6-libcurl:305: constant CURLOPT_PROGRESSDATA = CURLOPTTYPE_OBJECTPOINT + 57;
CurtTilmes/perl6-libcurl:306: constant CURLOPT_AUTOREFERER = CURLOPTTYPE_LONG + 58;
CurtTilmes/perl6-libcurl:307: constant CURLOPT_PROXYPORT = CURLOPTTYPE_LONG + 59;
CurtTilmes/perl6-libcurl:308: constant CURLOPT_POSTFIELDSIZE = CURLOPTTYPE_LONG + 60;
CurtTilmes/perl6-libcurl:309: constant CURLOPT_HTTPPROXYTUNNEL = CURLOPTTYPE_LONG + 61;
CurtTilmes/perl6-libcurl:310: constant CURLOPT_INTERFACE = CURLOPTTYPE_OBJECTPOINT + 62;
CurtTilmes/perl6-libcurl:311: constant CURLOPT_KRBLEVEL = CURLOPTTYPE_OBJECTPOINT + 63;
CurtTilmes/perl6-libcurl:312: constant CURLOPT_SSL_VERIFYPEER = CURLOPTTYPE_LONG + 64;
CurtTilmes/perl6-libcurl:313: constant CURLOPT_CAINFO = CURLOPTTYPE_OBJECTPOINT + 65;
CurtTilmes/perl6-libcurl:314: constant CURLOPT_MAXREDIRS = CURLOPTTYPE_LONG + 68;
CurtTilmes/perl6-libcurl:315: constant CURLOPT_FILETIME = CURLOPTTYPE_LONG + 69;
CurtTilmes/perl6-libcurl:316: constant CURLOPT_TELNETOPTIONS = CURLOPTTYPE_OBJECTPOINT + 70;
CurtTilmes/perl6-libcurl:317: constant CURLOPT_MAXCONNECTS = CURLOPTTYPE_LONG + 71;
CurtTilmes/perl6-libcurl:318: constant CURLOPT_CLOSEPOLICY = CURLOPTTYPE_LONG + 72;
CurtTilmes/perl6-libcurl:319: constant CURLOPT_FRESH_CONNECT = CURLOPTTYPE_LONG + 74;
CurtTilmes/perl6-libcurl:320: constant CURLOPT_FORBID_REUSE = CURLOPTTYPE_LONG + 75;
CurtTilmes/perl6-libcurl:321: constant CURLOPT_RANDOM_FILE = CURLOPTTYPE_OBJECTPOINT + 76;
CurtTilmes/perl6-libcurl:322: constant CURLOPT_EGDSOCKET = CURLOPTTYPE_OBJECTPOINT + 77;
CurtTilmes/perl6-libcurl:323: constant CURLOPT_CONNECTTIMEOUT = CURLOPTTYPE_LONG + 78;
CurtTilmes/perl6-libcurl:324: constant CURLOPT_HEADERFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 79;
CurtTilmes/perl6-libcurl:325: constant CURLOPT_HTTPGET = CURLOPTTYPE_LONG + 80;
CurtTilmes/perl6-libcurl:326: constant CURLOPT_SSL_VERIFYHOST = CURLOPTTYPE_LONG + 81;
CurtTilmes/perl6-libcurl:327: constant CURLOPT_COOKIEJAR = CURLOPTTYPE_OBJECTPOINT + 82;
CurtTilmes/perl6-libcurl:328: constant CURLOPT_SSL_CIPHER_LIST = CURLOPTTYPE_OBJECTPOINT + 83;
CurtTilmes/perl6-libcurl:329: constant CURLOPT_HTTP_VERSION = CURLOPTTYPE_LONG + 84;
CurtTilmes/perl6-libcurl:330: constant CURLOPT_FTP_USE_EPSV = CURLOPTTYPE_LONG + 85;
CurtTilmes/perl6-libcurl:331: constant CURLOPT_SSLCERTTYPE = CURLOPTTYPE_OBJECTPOINT + 86;
CurtTilmes/perl6-libcurl:332: constant CURLOPT_SSLKEY = CURLOPTTYPE_OBJECTPOINT + 87;
CurtTilmes/perl6-libcurl:333: constant CURLOPT_SSLKEYTYPE = CURLOPTTYPE_OBJECTPOINT + 88;
CurtTilmes/perl6-libcurl:334: constant CURLOPT_SSLENGINE = CURLOPTTYPE_OBJECTPOINT + 89;
CurtTilmes/perl6-libcurl:335: constant CURLOPT_SSLENGINE_DEFAULT = CURLOPTTYPE_LONG + 90;
CurtTilmes/perl6-libcurl:336: constant CURLOPT_DNS_CACHE_TIMEOUT = CURLOPTTYPE_LONG + 92;
CurtTilmes/perl6-libcurl:337: constant CURLOPT_PREQUOTE = CURLOPTTYPE_OBJECTPOINT + 93;
CurtTilmes/perl6-libcurl:338: constant CURLOPT_DEBUGFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 94;
CurtTilmes/perl6-libcurl:339: constant CURLOPT_DEBUGDATA = CURLOPTTYPE_OBJECTPOINT + 95;
CurtTilmes/perl6-libcurl:340: constant CURLOPT_COOKIESESSION = CURLOPTTYPE_LONG + 96;
CurtTilmes/perl6-libcurl:341: constant CURLOPT_CAPATH = CURLOPTTYPE_OBJECTPOINT + 97;
CurtTilmes/perl6-libcurl:342: constant CURLOPT_BUFFERSIZE = CURLOPTTYPE_LONG + 98;
CurtTilmes/perl6-libcurl:343: constant CURLOPT_NOSIGNAL = CURLOPTTYPE_LONG + 99;
CurtTilmes/perl6-libcurl:344: constant CURLOPT_SHARE = CURLOPTTYPE_OBJECTPOINT + 100;
CurtTilmes/perl6-libcurl:345: constant CURLOPT_PROXYTYPE = CURLOPTTYPE_LONG + 101;
CurtTilmes/perl6-libcurl:346: constant CURLOPT_ACCEPT_ENCODING = CURLOPTTYPE_OBJECTPOINT + 102;
CurtTilmes/perl6-libcurl:347: constant CURLOPT_PRIVATE = CURLOPTTYPE_OBJECTPOINT + 103;
CurtTilmes/perl6-libcurl:348: constant CURLOPT_HTTP200ALIASES = CURLOPTTYPE_OBJECTPOINT + 104;
CurtTilmes/perl6-libcurl:349: constant CURLOPT_UNRESTRICTED_AUTH = CURLOPTTYPE_LONG + 105;
CurtTilmes/perl6-libcurl:350: constant CURLOPT_FTP_USE_EPRT = CURLOPTTYPE_LONG + 106;
CurtTilmes/perl6-libcurl:351: constant CURLOPT_HTTPAUTH = CURLOPTTYPE_LONG + 107;
CurtTilmes/perl6-libcurl:352: constant CURLOPT_SSL_CTX_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 108;
CurtTilmes/perl6-libcurl:353: constant CURLOPT_SSL_CTX_DATA = CURLOPTTYPE_OBJECTPOINT + 109;
CurtTilmes/perl6-libcurl:354: constant CURLOPT_PROXYAUTH = CURLOPTTYPE_LONG + 111;
CurtTilmes/perl6-libcurl:355: constant CURLOPT_FTP_RESPONSE_TIMEOUT = CURLOPTTYPE_LONG + 112;
CurtTilmes/perl6-libcurl:356: constant CURLOPT_IPRESOLVE = CURLOPTTYPE_LONG + 113;
CurtTilmes/perl6-libcurl:357: constant CURLOPT_MAXFILESIZE = CURLOPTTYPE_LONG + 114;
CurtTilmes/perl6-libcurl:358: constant CURLOPT_INFILESIZE_LARGE = CURLOPTTYPE_OFF_T + 115;
CurtTilmes/perl6-libcurl:359: constant CURLOPT_RESUME_FROM_LARGE = CURLOPTTYPE_OFF_T + 116;
CurtTilmes/perl6-libcurl:360: constant CURLOPT_MAXFILESIZE_LARGE = CURLOPTTYPE_OFF_T + 117;
CurtTilmes/perl6-libcurl:361: constant CURLOPT_NETRC_FILE = CURLOPTTYPE_OBJECTPOINT + 118;
CurtTilmes/perl6-libcurl:362: constant CURLOPT_USE_SSL = CURLOPTTYPE_LONG + 119;
CurtTilmes/perl6-libcurl:363: constant CURLOPT_POSTFIELDSIZE_LARGE = CURLOPTTYPE_OFF_T + 120;
CurtTilmes/perl6-libcurl:364: constant CURLOPT_TCP_NODELAY = CURLOPTTYPE_LONG + 121;
CurtTilmes/perl6-libcurl:365: constant CURLOPT_FTPSSLAUTH = CURLOPTTYPE_LONG + 129;
CurtTilmes/perl6-libcurl:366: constant CURLOPT_IOCTLFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 130;
CurtTilmes/perl6-libcurl:367: constant CURLOPT_IOCTLDATA = CURLOPTTYPE_OBJECTPOINT + 131;
CurtTilmes/perl6-libcurl:368: constant CURLOPT_FTP_ACCOUNT = CURLOPTTYPE_OBJECTPOINT + 134;
CurtTilmes/perl6-libcurl:369: constant CURLOPT_COOKIELIST = CURLOPTTYPE_OBJECTPOINT + 135;
CurtTilmes/perl6-libcurl:370: constant CURLOPT_IGNORE_CONTENT_LENGTH = CURLOPTTYPE_LONG + 136;
CurtTilmes/perl6-libcurl:371: constant CURLOPT_FTP_SKIP_PASV_IP = CURLOPTTYPE_LONG + 137;
CurtTilmes/perl6-libcurl:372: constant CURLOPT_FTP_FILEMETHOD = CURLOPTTYPE_LONG + 138;
CurtTilmes/perl6-libcurl:373: constant CURLOPT_LOCALPORT = CURLOPTTYPE_LONG + 139;
CurtTilmes/perl6-libcurl:374: constant CURLOPT_LOCALPORTRANGE = CURLOPTTYPE_LONG + 140;
CurtTilmes/perl6-libcurl:375: constant CURLOPT_CONNECT_ONLY = CURLOPTTYPE_LONG + 141;
CurtTilmes/perl6-libcurl:376: constant CURLOPT_FTP_CREATE_MISSING_DIRS = CURLOPTTYPE_LONG + 110;
CurtTilmes/perl6-libcurl:377: constant CURLOPT_CONV_FROM_NETWORK_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 142;
CurtTilmes/perl6-libcurl:378: constant CURLOPT_CONV_TO_NETWORK_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 143;
CurtTilmes/perl6-libcurl:379: constant CURLOPT_CONV_FROM_UTF8_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 144;
CurtTilmes/perl6-libcurl:380: constant CURLOPT_MAX_SEND_SPEED_LARGE = CURLOPTTYPE_OFF_T + 145;
CurtTilmes/perl6-libcurl:381: constant CURLOPT_MAX_RECV_SPEED_LARGE = CURLOPTTYPE_OFF_T + 146;
CurtTilmes/perl6-libcurl:382: constant CURLOPT_FTP_ALTERNATIVE_TO_USER = CURLOPTTYPE_OBJECTPOINT + 147;
CurtTilmes/perl6-libcurl:383: constant CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 = CURLOPTTYPE_OBJECTPOINT + 162;
CurtTilmes/perl6-libcurl:384: constant CURLOPT_HTTP_TRANSFER_DECODING = CURLOPTTYPE_LONG + 157;
CurtTilmes/perl6-libcurl:385: constant CURLOPT_SOCKOPTFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 148;
CurtTilmes/perl6-libcurl:386: constant CURLOPT_SOCKOPTDATA = CURLOPTTYPE_OBJECTPOINT + 149;
CurtTilmes/perl6-libcurl:387: constant CURLOPT_SSL_SESSIONID_CACHE = CURLOPTTYPE_LONG + 150;
CurtTilmes/perl6-libcurl:388: constant CURLOPT_SSH_AUTH_TYPES = CURLOPTTYPE_LONG + 151;
CurtTilmes/perl6-libcurl:389: constant CURLOPT_SSH_PUBLIC_KEYFILE = CURLOPTTYPE_OBJECTPOINT + 152;
CurtTilmes/perl6-libcurl:390: constant CURLOPT_SSH_PRIVATE_KEYFILE = CURLOPTTYPE_OBJECTPOINT + 153;
CurtTilmes/perl6-libcurl:391: constant CURLOPT_FTP_SSL_CCC = CURLOPTTYPE_LONG + 154;
CurtTilmes/perl6-libcurl:392: constant CURLOPT_TIMEOUT_MS = CURLOPTTYPE_LONG + 155;
CurtTilmes/perl6-libcurl:393: constant CURLOPT_CONNECTTIMEOUT_MS = CURLOPTTYPE_LONG + 156;
CurtTilmes/perl6-libcurl:394: constant CURLOPT_HTTP_CONTENT_DECODING = CURLOPTTYPE_LONG + 158;
CurtTilmes/perl6-libcurl:395: constant CURLOPT_NEW_FILE_PERMS = CURLOPTTYPE_LONG + 159;
CurtTilmes/perl6-libcurl:396: constant CURLOPT_NEW_DIRECTORY_PERMS = CURLOPTTYPE_LONG + 160;
CurtTilmes/perl6-libcurl:397: constant CURLOPT_POSTREDIR = CURLOPTTYPE_LONG + 161;
CurtTilmes/perl6-libcurl:398: constant CURLOPT_OPENSOCKETFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 163;
CurtTilmes/perl6-libcurl:399: constant CURLOPT_OPENSOCKETDATA = CURLOPTTYPE_OBJECTPOINT + 164;
CurtTilmes/perl6-libcurl:400: constant CURLOPT_COPYPOSTFIELDS = CURLOPTTYPE_OBJECTPOINT + 165;
CurtTilmes/perl6-libcurl:401: constant CURLOPT_PROXY_TRANSFER_MODE = CURLOPTTYPE_LONG + 166;
CurtTilmes/perl6-libcurl:402: constant CURLOPT_SEEKFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 167;
CurtTilmes/perl6-libcurl:403: constant CURLOPT_SEEKDATA = CURLOPTTYPE_OBJECTPOINT + 168;
CurtTilmes/perl6-libcurl:404: constant CURLOPT_CRLFILE = CURLOPTTYPE_OBJECTPOINT + 169;
CurtTilmes/perl6-libcurl:405: constant CURLOPT_ISSUERCERT = CURLOPTTYPE_OBJECTPOINT + 170;
CurtTilmes/perl6-libcurl:406: constant CURLOPT_ADDRESS_SCOPE = CURLOPTTYPE_LONG + 171;
CurtTilmes/perl6-libcurl:407: constant CURLOPT_CERTINFO = CURLOPTTYPE_LONG + 172;
CurtTilmes/perl6-libcurl:408: constant CURLOPT_USERNAME = CURLOPTTYPE_OBJECTPOINT + 173;
CurtTilmes/perl6-libcurl:409: constant CURLOPT_PASSWORD = CURLOPTTYPE_OBJECTPOINT + 174;
CurtTilmes/perl6-libcurl:410: constant CURLOPT_PROXYUSERNAME = CURLOPTTYPE_OBJECTPOINT + 175;
CurtTilmes/perl6-libcurl:411: constant CURLOPT_PROXYPASSWORD = CURLOPTTYPE_OBJECTPOINT + 176;
CurtTilmes/perl6-libcurl:412: constant CURLOPT_NOPROXY = CURLOPTTYPE_OBJECTPOINT + 177;
CurtTilmes/perl6-libcurl:413: constant CURLOPT_TFTP_BLKSIZE = CURLOPTTYPE_LONG + 178;
CurtTilmes/perl6-libcurl:414: constant CURLOPT_SOCKS5_GSSAPI_SERVICE = CURLOPTTYPE_OBJECTPOINT + 179;
CurtTilmes/perl6-libcurl:415: constant CURLOPT_SOCKS5_GSSAPI_NEC = CURLOPTTYPE_LONG + 180;
CurtTilmes/perl6-libcurl:416: constant CURLOPT_PROTOCOLS = CURLOPTTYPE_LONG + 181;
CurtTilmes/perl6-libcurl:417: constant CURLOPT_REDIR_PROTOCOLS = CURLOPTTYPE_LONG + 182;
CurtTilmes/perl6-libcurl:418: constant CURLOPT_SSH_KNOWNHOSTS = CURLOPTTYPE_OBJECTPOINT + 183;
CurtTilmes/perl6-libcurl:419: constant CURLOPT_SSH_KEYFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 184;
CurtTilmes/perl6-libcurl:420: constant CURLOPT_SSH_KEYDATA = CURLOPTTYPE_OBJECTPOINT + 185;
CurtTilmes/perl6-libcurl:421: constant CURLOPT_MAIL_FROM = CURLOPTTYPE_OBJECTPOINT + 186;
CurtTilmes/perl6-libcurl:422: constant CURLOPT_MAIL_RCPT = CURLOPTTYPE_OBJECTPOINT + 187;
CurtTilmes/perl6-libcurl:423: constant CURLOPT_FTP_USE_PRET = CURLOPTTYPE_LONG + 188;
CurtTilmes/perl6-libcurl:424: constant CURLOPT_RTSP_REQUEST = CURLOPTTYPE_LONG + 189;
CurtTilmes/perl6-libcurl:425: constant CURLOPT_RTSP_SESSION_ID = CURLOPTTYPE_OBJECTPOINT + 190;
CurtTilmes/perl6-libcurl:426: constant CURLOPT_RTSP_STREAM_URI = CURLOPTTYPE_OBJECTPOINT + 191;
CurtTilmes/perl6-libcurl:427: constant CURLOPT_RTSP_TRANSPORT = CURLOPTTYPE_OBJECTPOINT + 192;
CurtTilmes/perl6-libcurl:428: constant CURLOPT_RTSP_CLIENT_CSEQ = CURLOPTTYPE_LONG + 193;
CurtTilmes/perl6-libcurl:429: constant CURLOPT_RTSP_SERVER_CSEQ = CURLOPTTYPE_LONG + 194;
CurtTilmes/perl6-libcurl:430: constant CURLOPT_INTERLEAVEDATA = CURLOPTTYPE_OBJECTPOINT + 195;
CurtTilmes/perl6-libcurl:431: constant CURLOPT_INTERLEAVEFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 196;
CurtTilmes/perl6-libcurl:432: constant CURLOPT_WILDCARDMATCH = CURLOPTTYPE_LONG + 197;
CurtTilmes/perl6-libcurl:433: constant CURLOPT_CHUNK_BGN_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 198;
CurtTilmes/perl6-libcurl:434: constant CURLOPT_CHUNK_END_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 199;
CurtTilmes/perl6-libcurl:435: constant CURLOPT_FNMATCH_FUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 200;
CurtTilmes/perl6-libcurl:436: constant CURLOPT_CHUNK_DATA = CURLOPTTYPE_OBJECTPOINT + 201;
CurtTilmes/perl6-libcurl:437: constant CURLOPT_FNMATCH_DATA = CURLOPTTYPE_OBJECTPOINT + 202;
CurtTilmes/perl6-libcurl:438: constant CURLOPT_RESOLVE = CURLOPTTYPE_OBJECTPOINT + 203;
CurtTilmes/perl6-libcurl:439: constant CURLOPT_TLSAUTH_USERNAME = CURLOPTTYPE_OBJECTPOINT + 204;
CurtTilmes/perl6-libcurl:440: constant CURLOPT_TLSAUTH_PASSWORD = CURLOPTTYPE_OBJECTPOINT + 205;
CurtTilmes/perl6-libcurl:441: constant CURLOPT_TLSAUTH_TYPE = CURLOPTTYPE_OBJECTPOINT + 206;
CurtTilmes/perl6-libcurl:442: constant CURLOPT_TRANSFER_ENCODING = CURLOPTTYPE_LONG + 207;
CurtTilmes/perl6-libcurl:443: constant CURLOPT_CLOSESOCKETFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 208;
CurtTilmes/perl6-libcurl:444: constant CURLOPT_CLOSESOCKETDATA = CURLOPTTYPE_OBJECTPOINT + 209;
CurtTilmes/perl6-libcurl:445: constant CURLOPT_GSSAPI_DELEGATION = CURLOPTTYPE_LONG + 210;
CurtTilmes/perl6-libcurl:446: constant CURLOPT_DNS_SERVERS = CURLOPTTYPE_OBJECTPOINT + 211;
CurtTilmes/perl6-libcurl:447: constant CURLOPT_ACCEPTTIMEOUT_MS = CURLOPTTYPE_LONG + 212;
CurtTilmes/perl6-libcurl:448: constant CURLOPT_TCP_KEEPALIVE = CURLOPTTYPE_LONG + 213;
CurtTilmes/perl6-libcurl:449: constant CURLOPT_TCP_KEEPIDLE = CURLOPTTYPE_LONG + 214;
CurtTilmes/perl6-libcurl:450: constant CURLOPT_TCP_KEEPINTVL = CURLOPTTYPE_LONG + 215;
CurtTilmes/perl6-libcurl:451: constant CURLOPT_SSL_OPTIONS = CURLOPTTYPE_LONG + 216;
CurtTilmes/perl6-libcurl:452: constant CURLOPT_MAIL_AUTH = CURLOPTTYPE_OBJECTPOINT + 217;
CurtTilmes/perl6-libcurl:453: constant CURLOPT_XFERINFOFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 219;
CurtTilmes/perl6-libcurl:454: constant CURLOPT_XOAUTH2_BEARER = CURLOPTTYPE_OBJECTPOINT + 220;
CurtTilmes/perl6-libcurl:455: constant CURLOPT_DNS_INTERFACE = CURLOPTTYPE_OBJECTPOINT + 221;
CurtTilmes/perl6-libcurl:456: constant CURLOPT_DNS_LOCAL_IP4 = CURLOPTTYPE_OBJECTPOINT + 222;
CurtTilmes/perl6-libcurl:457: constant CURLOPT_DNS_LOCAL_IP6 = CURLOPTTYPE_OBJECTPOINT + 223;
CurtTilmes/perl6-libcurl:458: constant CURLOPT_LOGIN_OPTIONS = CURLOPTTYPE_OBJECTPOINT + 224;
CurtTilmes/perl6-libcurl:460: constant CURLOPT_READDATA = CURLOPT_INFILE;
CurtTilmes/perl6-libcurl:461: constant CURLOPT_WRITEDATA = CURLOPT_FILE;
CurtTilmes/perl6-libcurl:462: constant CURLOPT_HEADERDATA = CURLOPT_WRITEHEADER;
CurtTilmes/perl6-libcurl:463: constant CURLOPT_RTSPHEADER = CURLOPT_HTTPHEADER;
CurtTilmes/perl6-libcurl:464: constant CURLOPT_XFERINFODATA = CURLOPT_PROGRESSDATA;
CurtTilmes/perl6-libcurl:465: constant CURLOPT_POST301 = CURLOPT_POSTREDIR;
CurtTilmes/perl6-libcurl:466: constant CURLOPT_SERVER_RESPONSE_TIMEOUT = CURLOPT_FTP_RESPONSE_TIMEOUT;
CurtTilmes/perl6-libcurl:467: constant CURLOPT_SSLKEYPASSWD = CURLOPT_KEYPASSWD;
CurtTilmes/perl6-libcurl:468: constant CURLOPT_FTPAPPEND = CURLOPT_APPEND;
CurtTilmes/perl6-libcurl:469: constant CURLOPT_FTPLISTONLY = CURLOPT_DIRLISTONLY;
CurtTilmes/perl6-libcurl:470: constant CURLOPT_FTP_SSL = CURLOPT_USE_SSL;
CurtTilmes/perl6-libcurl:471: constant CURLOPT_SSLCERTPASSWD = CURLOPT_KEYPASSWD;
CurtTilmes/perl6-libcurl:472: constant CURLOPT_KRB4LEVEL = CURLOPT_KRBLEVEL;
CurtTilmes/perl6-libcurl:474: enum CURLform <
CurtTilmes/perl6-libcurl:475: CURLFORM_NOTHING
CurtTilmes/perl6-libcurl:476: CURLFORM_COPYNAME
CurtTilmes/perl6-libcurl:477: CURLFORM_PTRNAME
CurtTilmes/perl6-libcurl:478: CURLFORM_NAMELENGTH
CurtTilmes/perl6-libcurl:479: CURLFORM_COPYCONTENTS
CurtTilmes/perl6-libcurl:480: CURLFORM_PTRCONTENTS
CurtTilmes/perl6-libcurl:481: CURLFORM_CONTENTSLENGTH
CurtTilmes/perl6-libcurl:482: CURLFORM_FILECONTENT
CurtTilmes/perl6-libcurl:483: CURLFORM_ARRAY
CurtTilmes/perl6-libcurl:484: CURLFORM_OBSOLETE
CurtTilmes/perl6-libcurl:485: CURLFORM_FILE
CurtTilmes/perl6-libcurl:486: CURLFORM_BUFFER
CurtTilmes/perl6-libcurl:487: CURLFORM_BUFFERPTR
CurtTilmes/perl6-libcurl:488: CURLFORM_BUFFERLENGTH
CurtTilmes/perl6-libcurl:489: CURLFORM_CONTENTTYPE
CurtTilmes/perl6-libcurl:490: CURLFORM_CONTENTHEADER
CurtTilmes/perl6-libcurl:491: CURLFORM_FILENAME
CurtTilmes/perl6-libcurl:492: CURLFORM_END
CurtTilmes/perl6-libcurl:493: CURLFORM_OBSOLETE2
CurtTilmes/perl6-libcurl:494: CURLFORM_STREAM>;
CurtTilmes/perl6-libcurl:496: enum CURLFORMcode <
CurtTilmes/perl6-libcurl:497: CURL_FORMADD_OK
CurtTilmes/perl6-libcurl:498: CURL_FORMADD_MEMORY
CurtTilmes/perl6-libcurl:499: CURL_FORMADD_OPTION_TWICE
CurtTilmes/perl6-libcurl:500: CURL_FORMADD_NULL
CurtTilmes/perl6-libcurl:501: CURL_FORMADD_UNKNOWN_OPTION
CurtTilmes/perl6-libcurl:502: CURL_FORMADD_INCOMPLETE
CurtTilmes/perl6-libcurl:503: CURL_FORMADD_ILLEGAL_ARRAY
CurtTilmes/perl6-libcurl:504: CURL_FORMADD_DISABLED
CurtTilmes/perl6-libcurl:507: sub curl_global_init(long) returns uint32 is native(LIBCURL) is export { * }
CurtTilmes/perl6-libcurl:509: sub curl_global_cleanup() is native(LIBCURL) is export { * }
CurtTilmes/perl6-libcurl:511: sub curl_version() returns Str is native(LIBCURL) is export { * }
CurtTilmes/perl6-libcurl:513: sub curl_free(Pointer $ptr) is native(LIBCURL) is export { * }
CurtTilmes/perl6-libcurl:515: class X::LibCurl is Exception
CurtTilmes/perl6-libcurl:519: sub curl_easy_strerror(uint32) returns Str is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:523: method message() { curl_easy_strerror($!code) }
CurtTilmes/perl6-libcurl:526: class X::LibCurl::Form is X::LibCurl
CurtTilmes/perl6-libcurl:531: class LibCurl::formstruct is repr('CStruct')
CurtTilmes/perl6-libcurl:556: class LibCurl::Form
CurtTilmes/perl6-libcurl:561: sub curl_formadd_array(intptr is rw, intptr is rw,
CurtTilmes/perl6-libcurl:562: uint32, Pointer[LibCurl::formstruct],
CurtTilmes/perl6-libcurl:564: returns uint32 is symbol('curl_formadd')
CurtTilmes/perl6-libcurl:565: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:567: sub curl_formfree(intptr) is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:572: my @array := StructArray[LibCurl::formstruct].new(@items.elems + 1);
CurtTilmes/perl6-libcurl:583: @array[$i].option = CURLFORM_END;
CurtTilmes/perl6-libcurl:585: my $ret = curl_formadd_array($!firstitem, $!lastitem,
CurtTilmes/perl6-libcurl:586: CURLFORM_ARRAY, @array.pointer,
CurtTilmes/perl6-libcurl:587: CURLFORM_END);
CurtTilmes/perl6-libcurl:589: die X::LibCurl::Form.new(code => $ret) if $ret != CURL_FORMADD_OK;
CurtTilmes/perl6-libcurl:594: curl_formfree($!firstitem) if $!firstitem;
CurtTilmes/perl6-libcurl:604: class LibCurl::slist-struct is repr('CStruct')
CurtTilmes/perl6-libcurl:610: class LibCurl::slist is repr('CPointer')
CurtTilmes/perl6-libcurl:612: sub curl_slist_append(LibCurl::slist, Str) returns LibCurl::slist
CurtTilmes/perl6-libcurl:613: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:615: sub curl_slist_free_all(LibCurl::slist) is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:617: method append(*@str-list) returns LibCurl::slist
CurtTilmes/perl6-libcurl:620: $slist = curl_slist_append($slist, $_) for @str-list;
CurtTilmes/perl6-libcurl:627: my $slist = nativecast(LibCurl::slist-struct, self);
CurtTilmes/perl6-libcurl:631: $slist = nativecast(LibCurl::slist-struct, $slist.next);
CurtTilmes/perl6-libcurl:638: curl_slist_free_all(self);
CurtTilmes/perl6-libcurl:642: class LibCurl::certinfo is repr('CStruct')
CurtTilmes/perl6-libcurl:645: has CArray[LibCurl::slist] $.certinfo;
CurtTilmes/perl6-libcurl:648: class LibCurl::version-info is repr('CStruct')
CurtTilmes/perl6-libcurl:667: state $feature-set = CURL_VERSION_FEATURE.enums
CurtTilmes/perl6-libcurl:669: .map({ $_.key ~~ /^CURL_VERSION_(.*)$/; ~$0 })
CurtTilmes/perl6-libcurl:684: class LibCurl::version is repr('CPointer')
CurtTilmes/perl6-libcurl:686: sub curl_version_info(uint32 $type) returns LibCurl::version
CurtTilmes/perl6-libcurl:687: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:689: method new() { curl_version_info(CURLVERSION_NOW) }
CurtTilmes/perl6-libcurl:691: method info() { nativecast(LibCurl::version-info, self) }
CurtTilmes/perl6-libcurl:694: class LibCurl::EasyHandle is repr('CPointer')
CurtTilmes/perl6-libcurl:696: sub curl_easy_init() returns LibCurl::EasyHandle is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:698: sub curl_easy_cleanup(LibCurl::EasyHandle) is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:700: sub curl_easy_reset(LibCurl::EasyHandle) is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:702: sub curl_easy_duphandle(LibCurl::EasyHandle) returns LibCurl::EasyHandle
CurtTilmes/perl6-libcurl:703: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:705: sub curl_easy_escape(LibCurl::EasyHandle, Buf, int32) returns Pointer
CurtTilmes/perl6-libcurl:706: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:708: sub curl_easy_unescape(LibCurl::EasyHandle, Buf, int32, int32 is rw)
CurtTilmes/perl6-libcurl:709: returns Pointer is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:711: sub curl_easy_setopt_str(LibCurl::EasyHandle, uint32, Str) returns uint32
CurtTilmes/perl6-libcurl:712: is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:714: sub curl_easy_setopt_long(LibCurl::EasyHandle, uint32, long) returns uint32
CurtTilmes/perl6-libcurl:715: is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:717: sub curl_easy_setopt_ptr(LibCurl::EasyHandle, uint32, Pointer)
CurtTilmes/perl6-libcurl:718: returns uint32 is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:720: sub curl_easy_setopt_slist(LibCurl::EasyHandle, uint32, LibCurl::slist)
CurtTilmes/perl6-libcurl:721: returns uint32 is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:723: sub curl_easy_setopt_array(LibCurl::EasyHandle, uint32, CArray[uint8])
CurtTilmes/perl6-libcurl:724: returns uint32 is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:726: sub curl_easy_setopt_data-cb(LibCurl::EasyHandle, uint32,
CurtTilmes/perl6-libcurl:728: returns uint32 is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:730: sub curl_easy_setopt_debug-cb(LibCurl::EasyHandle, uint32,
CurtTilmes/perl6-libcurl:732: returns uint32 is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:734: sub curl_easy_setopt_xfer-cb(LibCurl::EasyHandle, uint32,
CurtTilmes/perl6-libcurl:736: returns uint32 is native(LIBCURL) is symbol('curl_easy_setopt') { * }
CurtTilmes/perl6-libcurl:738: sub curl_easy_perform(LibCurl::EasyHandle) returns uint32
CurtTilmes/perl6-libcurl:739: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:741: sub curl_easy_getinfo_long(LibCurl::EasyHandle, int32, long is rw)
CurtTilmes/perl6-libcurl:742: returns uint32 is native(LIBCURL) is symbol('curl_easy_getinfo') { * }
CurtTilmes/perl6-libcurl:744: sub curl_easy_getinfo_double(LibCurl::EasyHandle, int32, num64 is rw)
CurtTilmes/perl6-libcurl:745: returns uint32 is native(LIBCURL) is symbol('curl_easy_getinfo') { * }
CurtTilmes/perl6-libcurl:747: sub curl_easy_getinfo_str(LibCurl::EasyHandle, int32, CArray[Str])
CurtTilmes/perl6-libcurl:748: returns uint32 is native(LIBCURL) is symbol('curl_easy_getinfo') { * }
CurtTilmes/perl6-libcurl:750: sub curl_easy_getinfo_ptr(LibCurl::EasyHandle, int32, CArray[Pointer])
CurtTilmes/perl6-libcurl:751: returns uint32 is native(LIBCURL) is symbol('curl_easy_getinfo') { * }
CurtTilmes/perl6-libcurl:753: method new() returns LibCurl::EasyHandle { curl_easy_init }
CurtTilmes/perl6-libcurl:759: method cleanup() { curl_easy_cleanup(self) }
CurtTilmes/perl6-libcurl:761: method reset() { curl_easy_reset(self) }
CurtTilmes/perl6-libcurl:763: method duphandle() { curl_easy_duphandle(self) }
CurtTilmes/perl6-libcurl:768: my $ptr = curl_easy_escape(self, $buf, $buf.elems);
CurtTilmes/perl6-libcurl:770: curl_free($ptr);
CurtTilmes/perl6-libcurl:778: my $ptr = curl_easy_unescape(self, $buf, $buf.elems, $outlength);
CurtTilmes/perl6-libcurl:781: curl_free($ptr);
CurtTilmes/perl6-libcurl:785: method perform() { curl_easy_perform(self); }
CurtTilmes/perl6-libcurl:788: my $ret = curl_easy_setopt_str(self, $option, $param);
CurtTilmes/perl6-libcurl:789: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:793: my $ret = curl_easy_setopt_long(self, $option, $param);
CurtTilmes/perl6-libcurl:794: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:799: when CURLOPT_WRITEFUNCTION | CURLOPT_READFUNCTION |
CurtTilmes/perl6-libcurl:800: CURLOPT_HEADERFUNCTION {
CurtTilmes/perl6-libcurl:801: curl_easy_setopt_data-cb(self, $option, &callback);
CurtTilmes/perl6-libcurl:803: when CURLOPT_DEBUGFUNCTION {
CurtTilmes/perl6-libcurl:804: curl_easy_setopt_debug-cb(self, $option, &callback);
CurtTilmes/perl6-libcurl:806: when CURLOPT_XFERINFOFUNCTION {
CurtTilmes/perl6-libcurl:807: curl_easy_setopt_xfer-cb(self, $option, &callback);
CurtTilmes/perl6-libcurl:813: my $ret = curl_easy_setopt_ptr(self, $option, $ptr);
CurtTilmes/perl6-libcurl:814: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:817: multi method setopt($option, LibCurl::slist $slist) {
CurtTilmes/perl6-libcurl:818: my $ret = curl_easy_setopt_slist(self, $option, $slist);
CurtTilmes/perl6-libcurl:819: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:823: my $ret = curl_easy_setopt_array(self, $option, $ptr);
CurtTilmes/perl6-libcurl:824: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:827: multi method setopt($option, LibCurl::EasyHandle $ptr) {
CurtTilmes/perl6-libcurl:828: my $ret = curl_easy_setopt_ptr(self, $option, $ptr);
CurtTilmes/perl6-libcurl:829: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:834: my $ret = curl_easy_getinfo_long(self, $option, $value);
CurtTilmes/perl6-libcurl:835: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:841: my $ret = curl_easy_getinfo_double(self, $option, $value);
CurtTilmes/perl6-libcurl:842: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:849: my $ret = curl_easy_getinfo_str(self, $option, $value);
CurtTilmes/perl6-libcurl:850: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:857: my $ret = curl_easy_getinfo_ptr(self, $option, $value);
CurtTilmes/perl6-libcurl:858: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:860: my $slist = nativecast(LibCurl::slist, $$value[0]);
CurtTilmes/perl6-libcurl:869: my $ret = curl_easy_getinfo_ptr(self, CURLINFO_CERTINFO, $ptr);
CurtTilmes/perl6-libcurl:870: die X::LibCurl.new(code => $ret) unless $ret == CURLE_OK;
CurtTilmes/perl6-libcurl:871: return nativecast(LibCurl::certinfo, $ptr);
CurtTilmes/perl6-libcurl:3: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:6: class LibCurl::HTTP is LibCurl::Easy
CurtTilmes/perl6-libcurl:40: LibCurl::HTTP.new(|%opts).GET($url, $filename).perform.content;
CurtTilmes/perl6-libcurl:46: my $http = LibCurl::HTTP.new;
CurtTilmes/perl6-libcurl:5: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:6: use LibCurl::MultiHandle;
CurtTilmes/perl6-libcurl:8: my enum CURLMOPT_TYPE <CURLMOPT_STR CURLMOPT_LONG CURLMOPT_CALLBACK>;
CurtTilmes/perl6-libcurl:11: max-host-connections => (CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_LONG ),
CurtTilmes/perl6-libcurl:12: max-pipeline-length => (CURLMOPT_MAX_PIPELINE_LENGTH, CURLMOPT_LONG ),
CurtTilmes/perl6-libcurl:13: max-total-connections => (CURLMOPT_MAX_TOTAL_CONNECTIONS, CURLMOPT_LONG ),
CurtTilmes/perl6-libcurl:14: maxconnects => (CURLMOPT_MAXCONNECTS, CURLMOPT_LONG ),
CurtTilmes/perl6-libcurl:15: pipelining => (CURLMOPT_PIPELINING, CURLMOPT_LONG ),
CurtTilmes/perl6-libcurl:16: callback => (0, CURLMOPT_CALLBACK ),
CurtTilmes/perl6-libcurl:19: class LibCurl::Multi
CurtTilmes/perl6-libcurl:21: has LibCurl::MultiHandle $.multi;
CurtTilmes/perl6-libcurl:26: method new(|opts) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:28: my $self = self.bless(multi => LibCurl::MultiHandle.new);
CurtTilmes/perl6-libcurl:33: method setopt(*%options) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:43: when CURLMOPT_LONG {
CurtTilmes/perl6-libcurl:47: when CURLMOPT_CALLBACK {
CurtTilmes/perl6-libcurl:55: method add-handle(*@handles) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:68: method remove-handle(*@handles) returns LibCurl::Multi
CurtTilmes/perl6-libcurl:95: next unless $msg.msg == CURLMSG_DONE;
CurtTilmes/perl6-libcurl:101: $msg.code == CURLE_OK
CurtTilmes/perl6-libcurl:103: !! X::LibCurl.new(code => $msg.code));
CurtTilmes/perl6-libcurl:4: use LibCurl::EasyHandle;
CurtTilmes/perl6-libcurl:6: constant CURLM_CALL_MULTI_PERFORM = -1;
CurtTilmes/perl6-libcurl:7: constant CURLM_OK = 0;
CurtTilmes/perl6-libcurl:8: constant CURLM_BAD_HANDLE = 1;
CurtTilmes/perl6-libcurl:9: constant CURLM_BAD_EASY_HANDLE = 2;
CurtTilmes/perl6-libcurl:10: constant CURLM_OUT_OF_MEMORY = 3;
CurtTilmes/perl6-libcurl:11: constant CURLM_INTERNAL_ERROR = 4;
CurtTilmes/perl6-libcurl:12: constant CURLM_BAD_SOCKET = 5;
CurtTilmes/perl6-libcurl:13: constant CURLM_UNKNOWN_OPTION = 6;
CurtTilmes/perl6-libcurl:14: constant CURLM_ADDED_ALREADY = 7;
CurtTilmes/perl6-libcurl:16: constant CURLMSG_DONE = 1;
CurtTilmes/perl6-libcurl:18: constant CURLPIPE_NOTHING = 0;
CurtTilmes/perl6-libcurl:19: constant CURLPIPE_HTTP1 = 1;
CurtTilmes/perl6-libcurl:20: constant CURLPIPE_MULTIPLEX = 2;
CurtTilmes/perl6-libcurl:22: constant CURLMOPT_SOCKETFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 1;
CurtTilmes/perl6-libcurl:23: constant CURLMOPT_SOCKETDATA = CURLOPTTYPE_OBJECTPOINT + 2;
CurtTilmes/perl6-libcurl:24: constant CURLMOPT_PIPELINING = CURLOPTTYPE_LONG + 3;
CurtTilmes/perl6-libcurl:25: constant CURLMOPT_TIMERFUNCTION = CURLOPTTYPE_FUNCTIONPOINT + 4;
CurtTilmes/perl6-libcurl:26: constant CURLMOPT_TIMERDATA = CURLOPTTYPE_OBJECTPOINT + 5;
CurtTilmes/perl6-libcurl:27: constant CURLMOPT_MAXCONNECTS = CURLOPTTYPE_LONG + 6;
CurtTilmes/perl6-libcurl:28: constant CURLMOPT_MAX_HOST_CONNECTIONS = CURLOPTTYPE_LONG + 7;
CurtTilmes/perl6-libcurl:29: constant CURLMOPT_MAX_PIPELINE_LENGTH = CURLOPTTYPE_LONG + 8;
CurtTilmes/perl6-libcurl:30: constant CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE = CURLOPTTYPE_OFF_T + 9;
CurtTilmes/perl6-libcurl:31: constant CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE = CURLOPTTYPE_OFF_T + 10;
CurtTilmes/perl6-libcurl:32: constant CURLMOPT_PIPELINING_SITE_BL = CURLOPTTYPE_OBJECTPOINT + 11;
CurtTilmes/perl6-libcurl:33: constant CURLMOPT_PIPELINING_SERVER_BL = CURLOPTTYPE_OBJECTPOINT + 12;
CurtTilmes/perl6-libcurl:34: constant CURLMOPT_MAX_TOTAL_CONNECTIONS = CURLOPTTYPE_LONG + 13;
CurtTilmes/perl6-libcurl:36: class LibCurl::CURLMsg is repr('CStruct')
CurtTilmes/perl6-libcurl:39: has LibCurl::EasyHandle $.handle;
CurtTilmes/perl6-libcurl:43: class X::LibCurl::Multi is X::LibCurl
CurtTilmes/perl6-libcurl:45: sub curl_multi_strerror(uint32) returns Str is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:47: method message() { curl_multi_strerror(self.Int) }
CurtTilmes/perl6-libcurl:50: class LibCurl::MultiHandle is repr('CPointer')
CurtTilmes/perl6-libcurl:52: sub curl_multi_init() returns LibCurl::MultiHandle is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:54: sub curl_multi_add_handle(LibCurl::MultiHandle, LibCurl::EasyHandle)
CurtTilmes/perl6-libcurl:55: returns uint32 is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:57: sub curl_multi_remove_handle(LibCurl::MultiHandle, LibCurl::EasyHandle)
CurtTilmes/perl6-libcurl:58: returns uint32 is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:60: sub curl_multi_setopt_long(LibCurl::MultiHandle, uint32, long)
CurtTilmes/perl6-libcurl:61: returns uint32 is native(LIBCURL) is symbol('curl_multi_setopt') { * }
CurtTilmes/perl6-libcurl:63: sub curl_multi_setopt_str(LibCurl::MultiHandle, uint32, Str)
CurtTilmes/perl6-libcurl:64: returns uint32 is native(LIBCURL) is symbol('curl_multi_setopt') { * }
CurtTilmes/perl6-libcurl:66: sub curl_multi_cleanup(LibCurl::MultiHandle) returns uint32
CurtTilmes/perl6-libcurl:67: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:69: sub curl_multi_wait(LibCurl::MultiHandle,Pointer,uint32,int32,int32 is rw)
CurtTilmes/perl6-libcurl:70: returns uint32 is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:72: sub curl_multi_perform(LibCurl::MultiHandle, int32 is rw) returns uint32
CurtTilmes/perl6-libcurl:73: is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:75: sub curl_multi_info_read(LibCurl::MultiHandle, uint32 is rw)
CurtTilmes/perl6-libcurl:76: returns LibCurl::CURLMsg is native(LIBCURL) { * }
CurtTilmes/perl6-libcurl:78: method new() { curl_multi_init }
CurtTilmes/perl6-libcurl:80: method cleanup { curl_multi_cleanup(self) }
CurtTilmes/perl6-libcurl:82: method add-handle(LibCurl::EasyHandle $handle)
CurtTilmes/perl6-libcurl:84: my $ret = curl_multi_add_handle(self, $handle);
CurtTilmes/perl6-libcurl:85: die X::LibCurl::Multi.new(code => $ret) unless $ret == CURLM_OK;
CurtTilmes/perl6-libcurl:88: method remove-handle(LibCurl::EasyHandle $handle)
CurtTilmes/perl6-libcurl:90: my $ret = curl_multi_remove_handle(self, $handle);
CurtTilmes/perl6-libcurl:91: die X::LibCurl::Multi.new(code => $ret) unless $ret == CURLM_OK;
CurtTilmes/perl6-libcurl:96: my $ret = curl_multi_setopt_long(self, $option, $param);
CurtTilmes/perl6-libcurl:97: die X::LibCurl::Multi.new(code => $ret) unless $ret == CURLM_OK;
CurtTilmes/perl6-libcurl:102: my $ret = curl_multi_setopt_str(self, $option, $param);
CurtTilmes/perl6-libcurl:103: die X::LibCurl::Multi.new(code => $ret) unless $ret == CURLM_OK;
CurtTilmes/perl6-libcurl:110: my $ret = curl_multi_perform(self, $running-handles);
CurtTilmes/perl6-libcurl:111: return CURLM_OK if $ret == CURLM_OK;
CurtTilmes/perl6-libcurl:112: next if $ret == CURLM_CALL_MULTI_PERFORM;
CurtTilmes/perl6-libcurl:113: die X::LibCurl::Multi.new(code => $ret);
CurtTilmes/perl6-libcurl:119: my $ret = curl_multi_wait(self, Pointer, 0, $timeout-ms, $numfds);
CurtTilmes/perl6-libcurl:120: die X::LibCurl::Multi.new(code => $ret) unless $ret == CURLM_OK;
CurtTilmes/perl6-libcurl:123: method info(int32 $msgs-in-queue is rw) returns LibCurl::CURLMsg
CurtTilmes/perl6-libcurl:125: curl_multi_info_read(self, $msgs-in-queue);
CurtTilmes/perl6-libcurl:5: our $HOSTIP is export = %*ENV{'PERL6-LIBCURL-HOSTIP'} // '127.0.0.1';
CurtTilmes/perl6-libcurl:7: our $CLIENTIP is export = %*ENV{'PERL6-LIBCURL-CLIENTIP'} // '127.0.0.1';
CurtTilmes/perl6-libcurl:9: our $HTTPPORT is export = %*ENV{'PERL6-LIBCURL-HTTPPORT'} // 8990;
CurtTilmes/perl6-libcurl:11: our $FTPPORT is export = %*ENV{'PERL6-LIBCURL-FTPPORT'} // 8992;
CurtTilmes/perl6-libcurl:13: our $PROXYPORT is export = %*ENV{'PERL6-LIBCURL-PROXYPORT'} // 9013;
CurtTilmes/perl6-libcurl:15: my $CURL-TEST-DIR = %*ENV{'PERL6-LIBCURL-TESTDIR'}
CurtTilmes/perl6-libcurl:16: // $*PROGRAM.parent.child('../../curl/tests');
CurtTilmes/perl6-libcurl:24: indir $CURL-TEST-DIR,
CurtTilmes/perl6-libcurl:44: class LibCurl::Test
CurtTilmes/perl6-libcurl:90: indir $CURL-TEST-DIR,
CurtTilmes/perl6-libcurl:102: indir $CURL-TEST-DIR,
CurtTilmes/perl6-libcurl:114: indir $CURL-TEST-DIR,
CurtTilmes/perl6-libcurl:133: $CURL-TEST-DIR.child('log/server.input').slurp;
CurtTilmes/perl6-libcurl:138: $CURL-TEST-DIR.child('log/proxy.input').slurp;
CurtTilmes/perl6-libcurl:143: $CURL-TEST-DIR.child('log/server.response').slurp;
CurtTilmes/perl6-libcurl:2: from curl itself.
CurtTilmes/perl6-libcurl:4: https://github.com/curl/curl/
CurtTilmes/perl6-libcurl:6: To make it work, check out that GIT repository beside perl6-libcurl
CurtTilmes/perl6-libcurl:7: itself, and build/test curl independently.
CurtTilmes/perl6-libcurl:9: Once that works, you can "prove lt" from perl6-libcurl. It uses a
CurtTilmes/perl6-libcurl:10: little helper module LibCurl::Test.pm which starts up the various
CurtTilmes/perl6-libcurl:11: servers within the curl test infrastructure, reads their diagnostics,
CurtTilmes/perl6-libcurl:14: You can read the actual test cases themselves in the curl/tests/data/*
CurtTilmes/perl6-libcurl:15: files (format described in curl/tests/FILEFORMAT).
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/1").perform;
CurtTilmes/perl6-libcurl:23: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:25: is $curl.Server, 'test-server/fake', 'Server';
CurtTilmes/perl6-libcurl:27: is $curl.ETag, '"21025-dc7-39462498"', 'ETag';
CurtTilmes/perl6-libcurl:29: is $curl.content, "-foo-\n", 'Content';
CurtTilmes/perl6-libcurl:31: is $curl.Content-Type, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:33: is $curl.Content-Length, 6, 'Content-Length';
CurtTilmes/perl6-libcurl:35: is $curl.Accept-Ranges, 'bytes', 'Accept-Ranges';
CurtTilmes/perl6-libcurl:37: is $curl.Funny-head, 'yesyes', 'Funny-head';
CurtTilmes/perl6-libcurl:39: is $curl.Connection, 'close', 'Connection';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/2",
CurtTilmes/perl6-libcurl:25: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:27: is $curl.content, '', 'Empty body';
CurtTilmes/perl6-libcurl:29: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:31: is $curl.receiveheaders<Content-Type>, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:33: is $curl.receiveheaders<Funny-head>, 'yesyes', 'Funny-head';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/3",
CurtTilmes/perl6-libcurl:18: $curl.postfields("fooo=mooo&pooo=clue&doo=%20%20%20++++");
CurtTilmes/perl6-libcurl:20: $curl.perform;
CurtTilmes/perl6-libcurl:32: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:34: is $curl.buf, Buf.new, 'Content Buf';
CurtTilmes/perl6-libcurl:36: is $curl.Content-Length, 0, 'Content-Length';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/4");
CurtTilmes/perl6-libcurl:16: $curl.set-header(extra-header => 'here',
CurtTilmes/perl6-libcurl:21: $curl.set-header(X-Test => '');
CurtTilmes/perl6-libcurl:23: $curl.set-header(X-Test2 => 'foo;',
CurtTilmes/perl6-libcurl:26: $curl.perform;
CurtTilmes/perl6-libcurl:39: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new;
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/we/want/that/page/5#5");
CurtTilmes/perl6-libcurl:18: $curl.proxy("$HOSTIP:$HTTPPORT");
CurtTilmes/perl6-libcurl:20: $curl.perform;
CurtTilmes/perl6-libcurl:30: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new;
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/we/want/that/page/6");
CurtTilmes/perl6-libcurl:18: $curl.cookie("name=contents;name2=content2");
CurtTilmes/perl6-libcurl:20: $curl.perform;
CurtTilmes/perl6-libcurl:30: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:32: is $curl.get-header('swsclose'), 'booo', 'closed connection';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/we/want/7",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.cookielist,
CurtTilmes/perl6-libcurl:1: # See https://github.com/curl/curl/issues/639
CurtTilmes/perl6-libcurl:7: use LibCurl::Test;
CurtTilmes/perl6-libcurl:8: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:33: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:37: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/we/want/8",
CurtTilmes/perl6-libcurl:40: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:44: skip 'My curl version is old'
CurtTilmes/perl6-libcurl:1: # See https://github.com/curl/curl/issues/639
CurtTilmes/perl6-libcurl:7: use LibCurl::Test;
CurtTilmes/perl6-libcurl:8: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:20: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:24: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/we/want/9");
CurtTilmes/perl6-libcurl:26: $curl.formadd(name => 'name', contents => 'daniel');
CurtTilmes/perl6-libcurl:28: $curl.formadd(name => 'tool', contents => 'curl');
CurtTilmes/perl6-libcurl:30: $curl.formadd(name => 'file', file => 'test9.txt');
CurtTilmes/perl6-libcurl:32: $curl.perform;
CurtTilmes/perl6-libcurl:34: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:36: is $curl.statusline, 'HTTP/1.0 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:38: is $curl.content, "blablabla\n\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:24: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:28: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/we/want/10",
CurtTilmes/perl6-libcurl:31: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:52: is $curl.content, "blablabla\n\n", "Content";
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/11",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:30: is $curl.content, "If this is received, the location following worked\n\n",
CurtTilmes/perl6-libcurl:33: is $curl.effective-url,
CurtTilmes/perl6-libcurl:37: is $curl.Location, "data/110002.txt?coolsite=yes", "Location";
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/12",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 206, 'response-code';
CurtTilmes/perl6-libcurl:27: is $curl.content, "..partial data returned from the
CurtTilmes/perl6-libcurl:32: is $curl.statusline, "HTTP/1.1 206 Partial Content", 'statusline';
CurtTilmes/perl6-libcurl:34: is $curl.ETag, '"21025-dc7-39462498"', 'ETag';
CurtTilmes/perl6-libcurl:36: is $curl.Accept-Ranges, 'bytes', 'Accept-Ranges';
CurtTilmes/perl6-libcurl:38: is $curl.Content-Length, 101, 'Content-Length';
CurtTilmes/perl6-libcurl:40: is $curl.Content-Range, 'bytes 100-200/3527', 'Content-Range';
CurtTilmes/perl6-libcurl:42: is $curl.Connection, 'close', 'Connection';
CurtTilmes/perl6-libcurl:44: is $curl.Content-Type, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:46: is $curl.Server, 'Apache/1.3.11 (Unix) PHP/3.0.14', 'Server';
CurtTilmes/perl6-libcurl:48: is $curl.Last-Modified, 'Tue, 13 Jun 2000 12:10:00 GMT', 'Last-Modified';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/13",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:26: is $curl.content, "blabla custom request result\n", 'Content';
CurtTilmes/perl6-libcurl:28: is $curl.statusline, "HTTP/1.1 200 Read you", 'statusline';
CurtTilmes/perl6-libcurl:30: is $curl.Content-Length, 29, 'Content-Length';
CurtTilmes/perl6-libcurl:32: is $curl.Deleted, 'suppose we got a header like this! ;-)', 'Deleted header';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/14",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:26: is $curl.content,
CurtTilmes/perl6-libcurl:33: is $curl.statusline, "HTTP/1.1 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:35: is $curl.Server, "thebest/1.0", 'Server';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/15").perform;
CurtTilmes/perl6-libcurl:16: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:25: is $curl.content, "Repeated nonsense-headers\n", 'Content';
CurtTilmes/perl6-libcurl:27: is $curl.Content-Length, 26, 'Content-Length';
CurtTilmes/perl6-libcurl:29: is $curl.statusline, "HTTP/1.4 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://we.want.that.site.com/16",
CurtTilmes/perl6-libcurl:17: $curl.proxyuserpwd('fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong');
CurtTilmes/perl6-libcurl:19: $curl.perform;
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:32: is $curl.content, "the content goes here\n", 'Content';
CurtTilmes/perl6-libcurl:34: is $curl.Content-Length, 22, 'Content-Length';
CurtTilmes/perl6-libcurl:36: is $curl.statusline, "HTTP/1.1 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:38: is $curl.Funny-head, 'yesyes', 'header';
CurtTilmes/perl6-libcurl:40: is $curl.Server, 'test-server/fake', 'Server';
CurtTilmes/perl6-libcurl:42: is $curl.Content-Type, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/that.site.com/17",
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:28: is $curl.content, "This is the proof it works\n", 'Content';
CurtTilmes/perl6-libcurl:30: is $curl.Content-Length, 27, 'Content-Length';
CurtTilmes/perl6-libcurl:32: is $curl.statusline, "HTTP/1.1 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:34: is $curl.Funny-head, 'yesyes', 'header';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $curl = LibCurl::Easy.new(URL => "$HOSTIP:60000");
CurtTilmes/perl6-libcurl:12: throws-like { $curl.perform }, X::LibCurl, message => "Couldn't connect to server";
CurtTilmes/perl6-libcurl:14: throws-like { $curl.perform }, X::LibCurl, Int => 7;
CurtTilmes/perl6-libcurl:5: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:9: my $curl = LibCurl::Easy.new(URL => "non-existing-host.haxx.se.");
CurtTilmes/perl6-libcurl:11: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:14: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new;
CurtTilmes/perl6-libcurl:16: $curl.URL("$HOSTIP:$HTTPPORT/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…
CurtTilmes/perl6-libcurl:18: $curl.perform;
CurtTilmes/perl6-libcurl:27: is $curl.content, "This is the proof it works\n", 'Content';
CurtTilmes/perl6-libcurl:29: is $curl.Content-Length, 27, 'Content-Length';
CurtTilmes/perl6-libcurl:31: is $curl.statusline, "HTTP/1.1 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:33: is $curl.Funny-head, 'yesyes', 'header';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $curl = LibCurl::Easy.new(URL => "htfp://$HOSTIP:$HTTPPORT/none.htfml");
CurtTilmes/perl6-libcurl:12: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:15: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/24",
CurtTilmes/perl6-libcurl:17: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:20: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/25",
CurtTilmes/perl6-libcurl:17: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:20: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/27",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, "HTTP/1.1 200 Mooo swsclose", 'statusline';
CurtTilmes/perl6-libcurl:21: is $curl.content, "*flopp*\n", 'content';
CurtTilmes/perl6-libcurl:23: is $curl.cookielist,
CurtTilmes/perl6-libcurl:27: $curl.perform;
CurtTilmes/perl6-libcurl:29: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:31: is $curl.statusline, "HTTP/1.1 200 Mooo swsclose", 'statusline';
CurtTilmes/perl6-libcurl:33: is $curl.content, "*flopp*\n", 'content';
CurtTilmes/perl6-libcurl:35: is $curl.cookielist,
CurtTilmes/perl6-libcurl:39: $curl.perform;
CurtTilmes/perl6-libcurl:41: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:43: is $curl.statusline, "HTTP/1.1 200 Mooo swsclose", 'statusline';
CurtTilmes/perl6-libcurl:45: is $curl.content, "*flopp*\n", 'content';
CurtTilmes/perl6-libcurl:47: is $curl.cookielist,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/28",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, "HTTP/1.1 200 Followed here fine swsclose", 'statusline';
CurtTilmes/perl6-libcurl:21: is $curl.content, "If this is received, the location following worked\n\n",
CurtTilmes/perl6-libcurl:35: is $curl.effective-url, "http://$HOSTIP:$HTTPPORT/online/1,1795,Welcome,00.html/280002.txt?logout=TRUE", 'effective-url';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/29",
CurtTilmes/perl6-libcurl:17: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:20: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/30",
CurtTilmes/perl6-libcurl:17: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:20: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:12: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:16: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/we/want/31",
CurtTilmes/perl6-libcurl:22: # http://curl.haxx.se/docs/http-cookies.html
CurtTilmes/perl6-libcurl:23: # This file was generated by libcurl! Edit at your own risk.
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new;
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/32?foo=moo&moo=poo").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:27: is $curl.content, "-foo-\n", 'Content';
CurtTilmes/perl6-libcurl:29: is $curl.Content-Length, 6, 'Content-Length';
CurtTilmes/perl6-libcurl:31: is $curl.statusline, "HTTP/1.1 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:33: is $curl.Funny-head, 'yesyes', 'header';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:25: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:29: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/33",
CurtTilmes/perl6-libcurl:32: $curl.resume-from(50).perform;
CurtTilmes/perl6-libcurl:34: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:51: is $curl.statusline, "HTTP/1.1 200 OK swsclose", 'statusline';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/34").perform;
CurtTilmes/perl6-libcurl:16: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:18: is $curl.statusline, "HTTP/1.1 200 funky chunky!", 'statusline';
CurtTilmes/perl6-libcurl:20: is $curl.Transfer-Encoding, 'chunked', 'Transfer-Encoding';
CurtTilmes/perl6-libcurl:22: is $curl.content, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/36");
CurtTilmes/perl6-libcurl:16: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:19: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/37");
CurtTilmes/perl6-libcurl:16: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:19: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/38",
CurtTilmes/perl6-libcurl:17: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:29: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:32: is $curl.Location, 'this should be ignored', 'Location';
CurtTilmes/perl6-libcurl:34: is $curl.effective-url, "http://$HOSTIP:$HTTPPORT/we/are/all/moo.html/?name=d+a+niel&testcase=/400002", 'effective-url';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:32: is $curl.Location, 'this should be ignored', 'Location';
CurtTilmes/perl6-libcurl:34: is $curl.effective-url, "http://127.0.0.1:8990/we/are/all/m%20o%20o.html/420002", 'effective-url';
CurtTilmes/perl6-libcurl:36: is $curl.content, "body\n", 'Content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 Followed here fine swsclose', 'statusline';
CurtTilmes/perl6-libcurl:35: is $curl.effective-url, "http://$HOSTIP:$HTTPPORT/want/data/430002.txt?coolsite=yes", 'effective-url';
CurtTilmes/perl6-libcurl:37: is $curl.content, "If this is received, the location following worked\n\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, 'HTTP/1.1 200 Followed here fine swsclose', 'statusline';
CurtTilmes/perl6-libcurl:32: is $curl.effective-url, "http://$HOSTIP:$HTTPPORT/want/data.cgi?moo=http://&/450002", 'effective-url';
CurtTilmes/perl6-libcurl:34: is $curl.content, "If this is received, the location following worked\n\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:15: # http://curl.haxx.se/docs/http-cookies.html
CurtTilmes/perl6-libcurl:16: # This is generated by libcurl! Do not edit.
CurtTilmes/perl6-libcurl:25: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:29: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/want/46",
CurtTilmes/perl6-libcurl:33: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:35: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:45: is $curl.content, "This server reply is for testing cookies\n", 'content';
CurtTilmes/perl6-libcurl:47: $curl.cleanup; # Force write of cookie jar
CurtTilmes/perl6-libcurl:51: # http://curl.haxx.se/docs/http-cookies.html
CurtTilmes/perl6-libcurl:52: # This file was generated by libcurl! Edit at your own risk.
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/47",
CurtTilmes/perl6-libcurl:15: http-version => CURL_HTTP_VERSION_1_0).perform;
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, 'HTTP/1.0 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:21: is $curl.Server, 'test-server/fake', 'Server';
CurtTilmes/perl6-libcurl:30: is $curl.content, "-foo- within foo -!foo-\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:nobody);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/48?foo=moo&moo=poo").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:22: $curl.perform;
CurtTilmes/perl6-libcurl:24: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:26: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:28: is $curl.content, '', 'content';
CurtTilmes/perl6-libcurl:30: is $curl.Date, "Thu, 09 Nov 2010 14:49:00 GMT", 'Date';
CurtTilmes/perl6-libcurl:32: $curl.cleanup;
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/we/are/all/twits/49").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:22: is $curl.content, "body\n", 'content';
CurtTilmes/perl6-libcurl:24: is $curl.Date, "Thu, 09 Nov 2010 14:49:00 GMT", 'Date';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/we/are/all/twits/50").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:22: is $curl.content, "body\n", 'content';
CurtTilmes/perl6-libcurl:24: is $curl.Date, "Thu, 09 Nov 2010 14:50:00 GMT", 'Date';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/we/are/all/twits/51").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:22: is $curl.content, "body\n", 'content';
CurtTilmes/perl6-libcurl:24: is $curl.Date, "Thu, 09 Nov 2010 14:50:00 GMT", 'Date';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/we/are/all/twits/52").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:22: is $curl.content, "body\n", 'content';
CurtTilmes/perl6-libcurl:24: is $curl.Date, "Thu, 09 Nov 2010 14:49:00 GMT", 'Date';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/want/54").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 302, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 302 This is a weirdo text message swsclose', 'statusline';
CurtTilmes/perl6-libcurl:22: is $curl.content, "This server reply is for testing\n", 'content';
CurtTilmes/perl6-libcurl:24: is $curl.Location, '', 'Location';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation);
CurtTilmes/perl6-libcurl:16: $curl.URL("http://$HOSTIP:$HTTPPORT/55").perform;
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:22: is $curl.content, "body\n", 'content';
CurtTilmes/perl6-libcurl:24: is $curl.Location, '550002', 'Location';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:12: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:16: my $curl = LibCurl::Easy.new(download => $outfile);
CurtTilmes/perl6-libcurl:18: $curl.URL("http://$HOSTIP:$HTTPPORT/57").perform;
CurtTilmes/perl6-libcurl:20: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:22: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:24: is $curl.Content-Type, "text/html; charset=ISO-8859-4", 'Content-Type';
CurtTilmes/perl6-libcurl:26: is $curl.Funny-head, 'yesyes', 'Funny head';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:14: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:18: my $curl = LibCurl::Easy.new(upload => $infile);
CurtTilmes/perl6-libcurl:20: $curl.URL("http://$HOSTIP:$HTTPPORT/we/want/" ~ $curl.escape($infile)).perform;
CurtTilmes/perl6-libcurl:22: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:24: is $curl.statusline, 'HTTP/1.0 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:26: is $curl.effective-url, "http://$HOSTIP:$HTTPPORT/we/want/58te%5B%5Dst.txt",
CurtTilmes/perl6-libcurl:29: is $curl.content, "blablabla\n\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT?mooo/59").perform;
CurtTilmes/perl6-libcurl:16: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:18: is $curl.statusline, 'HTTP/1.0 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:20: is $curl.content, "hej \n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/bzz/60");
CurtTilmes/perl6-libcurl:16: $curl.send("more than one byte\n")
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:23: is $curl.statusline, 'HTTP/1.0 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:25: is $curl.content, "blablabla\n\n", 'content';
CurtTilmes/perl6-libcurl:27: $curl.cleanup;
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:12: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:16: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/we/want/61",
CurtTilmes/perl6-libcurl:20: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:22: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:31: is $curl.content, "boo\n", 'content';
CurtTilmes/perl6-libcurl:33: is $curl.cookielist,
CurtTilmes/perl6-libcurl:40: $curl.cleanup; # Force write of cookie jar
CurtTilmes/perl6-libcurl:44: # http://curl.haxx.se/docs/http-cookies.html
CurtTilmes/perl6-libcurl:45: # This file was generated by libcurl! Edit at your own risk.
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:14: # https://curl.haxx.se/docs/http-cookies.html
CurtTilmes/perl6-libcurl:15: # This file was generated by libcurl! Edit at your own risk.
CurtTilmes/perl6-libcurl:24: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:28: my $curl = LibCurl::Easy.new(Host => 'www.host.foo.com',
CurtTilmes/perl6-libcurl:31: $curl.URL("http://$HOSTIP:$HTTPPORT/we/want?hoge=fuga/62").perform;
CurtTilmes/perl6-libcurl:33: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:35: is $curl.statusline, 'HTTP/1.0 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:45: is $curl.content, "boo\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:17: my $curl = LibCurl::Easy.new(URL => "http://we.want.that.site.com/63",
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:23: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:34: is $curl.content, "the content would go here\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/66")
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 0, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.statusline, Any, 'statusline';
CurtTilmes/perl6-libcurl:21: is $curl.content, "no headers swsclose\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/67",
CurtTilmes/perl6-libcurl:16: httpauth => CURLAUTH_NTLM)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 Things are fine in server land swsclose',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Finally, this is the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/68",
CurtTilmes/perl6-libcurl:16: httpauth => CURLAUTH_NTLM)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 401, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 401 You give me wrong password',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Wrong password dude. Get it fixed and return.\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/69",
CurtTilmes/perl6-libcurl:16: httpauth => CURLAUTH_ANY)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 Things are fine in server land swsclose',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Finally, this is the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/70",
CurtTilmes/perl6-libcurl:16: httpauth => CURLAUTH_ANY)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 OK',
CurtTilmes/perl6-libcurl:24: is $curl.content, "This IS the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/72",
CurtTilmes/perl6-libcurl:16: httpauth => CURLAUTH_ANY)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 OK',
CurtTilmes/perl6-libcurl:24: is $curl.content, "This IS the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:12: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:16: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/73",
CurtTilmes/perl6-libcurl:20: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:22: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:24: is $curl.content, "boo\n", 'content';
CurtTilmes/perl6-libcurl:26: is $curl.cookielist,
CurtTilmes/perl6-libcurl:31: $curl.cleanup;
CurtTilmes/perl6-libcurl:35: # http://curl.haxx.se/docs/http-cookies.html
CurtTilmes/perl6-libcurl:36: # This file was generated by libcurl! Edit at your own risk.
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/77",
CurtTilmes/perl6-libcurl:16: timecondition => CURL_TIMECOND_IFMODSINCE)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:23: is $curl.content, "-foo-\n", 'content';
CurtTilmes/perl6-libcurl:25: is $curl.Last-Modified, 'Tue, 13 Jun 2010 12:10:00 GMT', 'Last-Modified';
CurtTilmes/perl6-libcurl:27: is $curl.ETag, '"21025-dc7-39462498"', 'Etag';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/78",
CurtTilmes/perl6-libcurl:16: timecondition => CURL_TIMECOND_IFMODSINCE)
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 304, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:23: is $curl.content, '', 'no content';
CurtTilmes/perl6-libcurl:25: is $curl.Content-Length, 6, 'Content-Length';
CurtTilmes/perl6-libcurl:27: is $curl.Last-Modified, 'Tue, 13 Jun 1990 12:10:00 GMT', 'Last-Modified';
CurtTilmes/perl6-libcurl:29: is $curl.ETag, '"21025-dc7-39462498"', 'Etag';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.0 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:23: is $curl.content, "contents\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:httpproxytunnel,
CurtTilmes/perl6-libcurl:16: proxytype => CURLPROXY_HTTP_1_0,
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:23: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:25: is $curl.content, "contents\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/81",
CurtTilmes/perl6-libcurl:16: proxyauth => CURLAUTH_NTLM,
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 Things are fine in server land swsclose',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Finally, this is the real page!\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "http://$HOSTIP:$HTTPPORT/82",
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 407, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 407 We only deal with NTLM my friend',
CurtTilmes/perl6-libcurl:23: is $curl.content, "This is not the real page either!\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:httpproxytunnel,
CurtTilmes/perl6-libcurl:20: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:22: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:24: is $curl.content, "contents\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.0 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:23: is $curl.content, "contents\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:20: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:22: is $curl.statusline, 'HTTP/1.1 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:24: is $curl.content, "contents\n", 'no content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:19: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:23: my $curl = LibCurl::Easy.new(upload => $put88,
CurtTilmes/perl6-libcurl:26: httpauth => CURLAUTH_DIGEST).perform;
CurtTilmes/perl6-libcurl:28: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:30: is $curl.statusline, 'HTTP/1.1 200 OK swsclose', 'statusline';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:17: httpauth => CURLAUTH_NTLM).perform;
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 Things are fine in server land swsclose',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Finally, this is the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:17: httpauth => CURLAUTH_ANY).perform;
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 Things are fine in server land swsclose',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Finally, this is the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(:followlocation,
CurtTilmes/perl6-libcurl:17: httpauth => CURLAUTH_ANY).perform;
CurtTilmes/perl6-libcurl:19: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:21: is $curl.statusline, 'HTTP/1.1 200 Things are fine in server land swsclose',
CurtTilmes/perl6-libcurl:24: is $curl.content, "Finally, this is the real page!\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 416, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 416 Requested Range Not Satisfiable',
CurtTilmes/perl6-libcurl:23: is $curl.content, "bad\n", 'content';
CurtTilmes/perl6-libcurl:25: is $curl.ETag, '"ab57a-507-3f9968f3"', 'ETag';
CurtTilmes/perl6-libcurl:27: is $curl.Content-Range, 'bytes */87', 'Content-Range';
CurtTilmes/perl6-libcurl:29: is $curl.Content-Type, 'image/gif', 'Content-Type';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:18: is $curl.response-code, 407, 'response-code';
CurtTilmes/perl6-libcurl:20: is $curl.statusline, 'HTTP/1.1 407 Needs proxy authentication',
CurtTilmes/perl6-libcurl:23: is $curl.content, "bing\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:16: proxytype => CURLPROXY_HTTP_1_0,
CurtTilmes/perl6-libcurl:19: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:22: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:16: my $curl = LibCurl::Easy.new(:httpproxytunnel,
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:23: is $curl.statusline, "HTTP/1.1 200 OK", 'statusline';
CurtTilmes/perl6-libcurl:25: is $curl.content, "contents\n", 'Content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:20: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:22: is $curl.statusline, 'HTTP/1.0 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:24: is $curl.content, "blaha\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 200, 'response-code';
CurtTilmes/perl6-libcurl:23: is $curl.statusline, 'HTTP/1.0 200 OK', 'statusline';
CurtTilmes/perl6-libcurl:25: is $curl.content, "blaha\n", 'content';
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(
CurtTilmes/perl6-libcurl:18: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:21: is $curl.response-code, 404, 'response-code';
CurtTilmes/perl6-libcurl:23: is $curl.statusline, 'HTTP/1.1 404 Nah', 'statusline';
CurtTilmes/perl6-libcurl:33: throws-like { $curl.perform }, X::LibCurl,
CurtTilmes/perl6-libcurl:34: Int => CURLE_RANGE_ERROR;
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "ftp://$HOSTIP:$FTPPORT/test-100/").perform;
CurtTilmes/perl6-libcurl:16: is $curl.response-code, 226, 'response-code';
CurtTilmes/perl6-libcurl:18: is $curl.content,
CurtTilmes/perl6-libcurl:22: drwxr-xr-x 2 98 98 512 May 2 1996 curl-releases
CurtTilmes/perl6-libcurl:32: $curl.cleanup;
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "ftp://$HOSTIP:$FTPPORT/",
CurtTilmes/perl6-libcurl:17: is $curl.response-code, 226, 'response-code';
CurtTilmes/perl6-libcurl:19: is $curl.content,
CurtTilmes/perl6-libcurl:33: $curl.cleanup;
CurtTilmes/perl6-libcurl:5: use LibCurl::Test;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: my $server = LibCurl::Test.new;
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::Easy.new(URL => "ftp://$HOSTIP:$FTPPORT/102").perform;
CurtTilmes/perl6-libcurl:16: is $curl.response-code, 226, 'response-code';
CurtTilmes/perl6-libcurl:18: is $curl.content,
CurtTilmes/perl6-libcurl:27: $curl.cleanup;
CurtTilmes/perl6-libcurl:7: use-ok 'LibCurl::EasyHandle';
CurtTilmes/perl6-libcurl:9: use-ok 'LibCurl::Easy';
CurtTilmes/perl6-libcurl:11: use-ok 'LibCurl::HTTP';
CurtTilmes/perl6-libcurl:13: use-ok 'LibCurl::MultiHandle';
CurtTilmes/perl6-libcurl:15: use-ok 'LibCurl::Multi';
CurtTilmes/perl6-libcurl:5: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:7: my $version = LibCurl::Easy.version;
CurtTilmes/perl6-libcurl:9: like $version, /^libcurl/, 'LibCurl Version';
CurtTilmes/perl6-libcurl:13: my $curl = LibCurl::Easy.new(URL => 'http://example.com');
CurtTilmes/perl6-libcurl:15: isa-ok $curl, LibCurl::Easy, 'Created Object';
CurtTilmes/perl6-libcurl:17: is $curl.effective-url, 'http://example.com', 'URL set';
CurtTilmes/perl6-libcurl:19: $curl.setopt(private => 'my stuff');
CurtTilmes/perl6-libcurl:21: is $curl.private, 'my stuff', 'Private';
CurtTilmes/perl6-libcurl:23: $curl.perform;
CurtTilmes/perl6-libcurl:25: is $curl.response-code, 200, 'Response code';
CurtTilmes/perl6-libcurl:27: is $curl.statusline, 'HTTP/1.1 200 OK', 'Status line';
CurtTilmes/perl6-libcurl:29: is $curl.Content-Type, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:31: is $curl.receiveheaders<Content-Type>, 'text/html', 'Receive Headers';
CurtTilmes/perl6-libcurl:33: is $curl.buf.bytes, $curl.Content-Length, 'Correct Content-Length';
CurtTilmes/perl6-libcurl:6: use LibCurl::HTTP;
CurtTilmes/perl6-libcurl:8: my $version = LibCurl::HTTP.version;
CurtTilmes/perl6-libcurl:10: like $version, /^libcurl/, 'LibCurl Version';
CurtTilmes/perl6-libcurl:14: my $curl = LibCurl::HTTP.new();
CurtTilmes/perl6-libcurl:16: isa-ok $curl, LibCurl::HTTP, 'Created Object';
CurtTilmes/perl6-libcurl:21: my $x = $curl.GET('http://example.com').perform;
CurtTilmes/perl6-libcurl:23: is $curl.response-code, 200, 'Response code';
CurtTilmes/perl6-libcurl:25: is $curl.statusline, 'HTTP/1.1 200 OK', 'Status line';
CurtTilmes/perl6-libcurl:27: is $curl.Content-Type, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:29: is $curl.receiveheaders<Content-Type>, 'text/html', 'Receive Headers';
CurtTilmes/perl6-libcurl:31: is $curl.buf.bytes, $curl.Content-Length, 'Correct Content-Length';
CurtTilmes/perl6-libcurl:36: $curl = LibCurl::HTTP.new();
CurtTilmes/perl6-libcurl:38: $curl.HEAD('http://example.com').perform;
CurtTilmes/perl6-libcurl:40: is $curl.response-code, 200, 'Response code';
CurtTilmes/perl6-libcurl:42: is $curl.statusline, 'HTTP/1.1 200 OK', 'Status line';
CurtTilmes/perl6-libcurl:44: is $curl.Content-Type, 'text/html', 'Content-Type';
CurtTilmes/perl6-libcurl:46: is $curl.receiveheaders<Content-Type>, 'text/html', 'Receive Headers';
CurtTilmes/perl6-libcurl:48: is $curl.buf.bytes, 0, 'No Body.';
CurtTilmes/perl6-libcurl:54: $curl = LibCurl::HTTP.new();
CurtTilmes/perl6-libcurl:56: $curl.POST('http://httpbin.org/post?foo=42\&bar=x').perform;
CurtTilmes/perl6-libcurl:58: is $curl.response-code, '200', 'Response-code';
CurtTilmes/perl6-libcurl:60: is $curl.statusline, 'HTTP/1.1 200 OK', 'Status line';
CurtTilmes/perl6-libcurl:62: is $curl.Content-Type, 'application/json', 'Content-Type';
CurtTilmes/perl6-libcurl:6: use LibCurl::HTTP :subs;
CurtTilmes/perl6-libcurl:6: use LibCurl::Easy;
CurtTilmes/perl6-libcurl:10: ok my $req = LibCurl::Easy.new(URL => 'http://localhost'), 'Make object';
CurtTilmes/perl6-libcurl:12: # https://github.com/CurtTilmes/perl6-libcurl/issues/1
MARTIMM/mongo-perl6-driver:23: curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86\_64-${version}.tgz
MARTIMM/mongo-perl6-driver:27: # curly brackets or replace with %(...).
Mouq/HTML-Entity:4: my @ent = qx{curl -s https://raw.githubusercontent.com/w3c/html/master/entities.json}\\
Mouq/HTML-Entity:100: '&OpenCurlyQuote;'=> "\x[2018]",
Mouq/HTML-Entity:101: '&OpenCurlyDoubleQuote;'=> "\x[201C]",
Mouq/HTML-Entity:1172: '&preccurlyeq;'=> "\x[227C]",
Mouq/HTML-Entity:1772: '&succcurlyeq;'=> "\x[227D]",
Mouq/HTML-Entity:2052: '&curlyeqprec;'=> "\x[22DE]",
Mouq/HTML-Entity:2063: '&curlyeqsucc;'=> "\x[22DF]",
Mouq/HTML-Entity:2067: '&curlywedge;'=> "\x[22CF]",
Mouq/HTML-Entity:2070: '&curlyvee;'=> "\x[22CE]",
Mouq/HTML-Entity:2489: '&CloseCurlyDoubleQuote;'=> "\x[201D]",
Mouq/HTML-Entity:2490: '&CloseCurlyQuote;'=> "\x[2019]",
Perl6-Noise-Gang/perl6-Audio-MIDI-Note:306: broken up into multiple lines. Just use a set of curlies instead:
Util/Perl6-Math-Quaternion:3: curl -O http://www.fileformat.info/info/unicode/char/210d/doublestruck\_capital\_h.svg
atweiden/config-toml:39: # Inline tables are enclosed in curly braces `{` and `}`. No newlines are
atweiden/config-toml:40: # allowed between the curly braces unless they are valid within a value.
atweiden/digest-xxhash:15: - curl https://codeload.github.com/Cyan4973/{xxHash}/{tar.gz}/{v0.6.2} -o "#1-#3.#2"
atweiden/mktxn:18: - curl https://codeload.github.com/Cyan4973/{xxHash}/{tar.gz}/{v0.6.2} -o "#1-#3.#2"
atweiden/txn-parser:18: - curl https://codeload.github.com/Cyan4973/{xxHash}/{tar.gz}/{v0.6.2} -o "#1-#3.#2"
atweiden/txn-remarshal:18: - curl https://codeload.github.com/Cyan4973/{xxHash}/{tar.gz}/{v0.6.2} -o "#1-#3.#2"
azawawi/farabi6:25: var curLine = cm.getLine(i);
azawawi/farabi6:26: var curIndent = getIndent(curLine);
azawawi/farabi6:30: } else if (!/\S/.test(curLine)) {
azawawi/farabi6:19: var cur = editor.getCursor(), curLine = editor.getLine(cur.line);
azawawi/farabi6:21: while (start && word.test(curLine.charAt(start - 1))) --start;
azawawi/farabi6:22: var curWord = start != end && curLine.slice(start, end);
azawawi/farabi6:47: var changes = [], curLine = "", curNo = from.line;
azawawi/farabi6:53: var text = lines[i], oldLen = curLine.length, spaceInserted = 0;
azawawi/farabi6:54: if (curLine && text && !wrapOn.test(curLine.charAt(curLine.length - 1) + text.charAt(0))) {
azawawi/farabi6:55: curLine += " ";
azawawi/farabi6:63: curLine += text;
azawawi/farabi6:65: var firstBreak = curLine.length > column && leadingSpace == spaceTrimmed &&
azawawi/farabi6:66: findBreakPoint(curLine, column, wrapOn, killTrailing);
azawawi/farabi6:73: curLine = leadingSpace + text;
azawawi/farabi6:77: while (curLine.length > column) {
azawawi/farabi6:78: var bp = findBreakPoint(curLine, column, wrapOn, killTrailing);
azawawi/farabi6:82: curLine = leadingSpace + curLine.slice(bp.to);
azawawi/farabi6:5995: var curLine = from.line, cm = doc.cm, updateMaxLine;
azawawi/farabi6:5996: doc.iter(curLine, to.line + 1, function(line) {
azawawi/farabi6:5999: if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0);
azawawi/farabi6:6001: curLine == from.line ? from.ch : null,
azawawi/farabi6:6002: curLine == to.line ? to.ch : null));
azawawi/farabi6:6003: ++curLine;
azawawi/farabi6:33: 'curl cut diff echo find gawk gcc get git grep kill killall ln ls make ' +
azawawi/perl6-gtk-scintilla:474: <a class="seealso" href="#SCI_GETCURLINE">SCI_GETCURLINE</a>,
azawawi/perl6-gtk-scintilla:506: <p>See also: <code><a class="seealso" href="#SCI_GETCURLINE">SCI_GETCURLINE</a>,
azawawi/perl6-gtk-scintilla:534: <a class="seealso" href="#SCI_GETCURLINE">SCI_GETCURLINE</a>,
azawawi/perl6-gtk-scintilla:550: <a class="seealso" href="#SCI_GETCURLINE">SCI_GETCURLINE</a>,
azawawi/perl6-gtk-scintilla:1218: <a class="message" href="#SCI_GETCURLINE">SCI_GETCURLINE(int length, char *text) &rarr; int</a><br />
azawawi/perl6-gtk-scintilla:1386: <p>See also: <code><a class="seealso" href="#SCI_GETCURLINE">SCI_GETCURLINE</a>,
azawawi/perl6-gtk-scintilla:1393: <p><b id="SCI_GETCURLINE">SCI_GETCURLINE(int length, char *text NUL-terminated) &rarr; int</b><br />
azawawi/perl6-gtk-scintilla:101: <span class='S11'>curLine</span><span class='S0'>&nbsp;</span> <span class='S10'>=</span><span
azawawi/perl6-gtk-scintilla:108: class='S0'>&nbsp;</span> <span class='S11'>curLine</span><span class='S10'>);</span><span
azawawi/perl6-gtk-scintilla:111: //Platform::DebugPrintf("[CR]&nbsp;%d&nbsp;len&nbsp;=&nbsp;%d\n",&nbsp;curLine,&nbsp;lineLength);</span><span
azawawi/perl6-gtk-scintilla:114: class='S10'>(</span><span class='S11'>curLine</span><span class='S0'>&nbsp;</span> <span
azawawi/perl6-gtk-scintilla:125: class='S0'>&nbsp;</span> <span class='S11'>curLine</span><span class='S0'>&nbsp;</span> <span
azawawi/perl6-gtk-scintilla:146: class='S10'>,</span><span class='S0'>&nbsp;</span> <span class='S11'>curLine</span><span
azawawi/perl6-gtk-scintilla:289: class='S11'>SCI_GETCURLINE</span><span class='S10'>,</span><span class='S0'>&nbsp;</span> <span
azawawi/perl6-gtk-scintilla:87: #define SCI_GETCURLINE 2027
azawawi/perl6-gtk-scintilla:202: fun int GetCurLine=2027(int length, stringresult text)
azawawi/perl6-gtk-scintilla:266: Sci_Position nCurLine = styler.GetLine(i+1);
azawawi/perl6-gtk-scintilla:272: if ( styler.GetLine(nBack) != nCurLine )
azawawi/perl6-gtk-scintilla:251: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:252: int curNcLevel = curLine > 0? styler.GetLineState(curLine-1): 0;
azawawi/perl6-gtk-scintilla:259: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:260: styler.SetLineState(curLine, curNcLevel);
azawawi/perl6-gtk-scintilla:365: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:366: styler.SetLineState(curLine, curNcLevel);
azawawi/perl6-gtk-scintilla:373: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:374: styler.SetLineState(curLine, curNcLevel);
azawawi/perl6-gtk-scintilla:438: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:439: styler.SetLineState(curLine, curNcLevel);
azawawi/perl6-gtk-scintilla:123: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:124: Sci_Position curLineStart = styler.LineStart(curLine);
azawawi/perl6-gtk-scintilla:125: int prevLevel = curLine > 0 ? styler.LevelAt(curLine - 1) : SC_FOLDLEVELBASE;
azawawi/perl6-gtk-scintilla:129: int lineType = styler.StyleAt(curLineStart);
azawawi/perl6-gtk-scintilla:134: else if (lineType == SCE_DIFF_POSITION && styler[curLineStart] != '-')
azawawi/perl6-gtk-scintilla:142: styler.SetLevel(curLine-1, prevLevel & ~SC_FOLDLEVELHEADERFLAG);
azawawi/perl6-gtk-scintilla:144: styler.SetLevel(curLine, nextLevel);
azawawi/perl6-gtk-scintilla:147: curLineStart = styler.LineStart(++curLine);
azawawi/perl6-gtk-scintilla:148: } while (static_cast<Sci_Position>(startPos)+length > curLineStart);
azawawi/perl6-gtk-scintilla:48: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:49: int curLineState = curLine > 0 ? styler.GetLineState(curLine - 1) : 0;
azawawi/perl6-gtk-scintilla:50: bool isCode = (curLineState == 1);
azawawi/perl6-gtk-scintilla:74: curLine = styler.GetLine(i);
azawawi/perl6-gtk-scintilla:75: styler.SetLineState(curLine, (isCode ? 1 : 0));
azawawi/perl6-gtk-scintilla:478: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:480: getSave(curLine - 1, save);
azawawi/perl6-gtk-scintilla:522: styler.SetLevel(curLine, lev);
azawawi/perl6-gtk-scintilla:523: setSave(curLine, save);
azawawi/perl6-gtk-scintilla:524: ++curLine;
azawawi/perl6-gtk-scintilla:525: startPos = styler.LineStart(curLine);
azawawi/perl6-gtk-scintilla:528: styler.SetLevel(curLine, lev);
azawawi/perl6-gtk-scintilla:529: setSave(curLine, save);
azawawi/perl6-gtk-scintilla:530: truncSaves(curLine);
azawawi/perl6-gtk-scintilla:109: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:110: int commentDepth = curLine > 0 ? styler.GetLineState(curLine-1) : 0;
azawawi/perl6-gtk-scintilla:119: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:120: styler.SetLineState(curLine, commentDepth);
azawawi/perl6-gtk-scintilla:198: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:199: styler.SetLineState(curLine, commentDepth);
azawawi/perl6-gtk-scintilla:211: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:212: styler.SetLineState(curLine, commentDepth);
azawawi/perl6-gtk-scintilla:234: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:235: styler.SetLineState(curLine, commentDepth);
azawawi/perl6-gtk-scintilla:182: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:183: int curLevel = SC_FOLDLEVELBASE;
azawawi/perl6-gtk-scintilla:185: if( curLine > 0 )
azawawi/perl6-gtk-scintilla:186: curLevel = styler.LevelAt( curLine - 1 ) >> 16;
azawawi/perl6-gtk-scintilla:190: int nextLevel = curLevel;
azawawi/perl6-gtk-scintilla:253: Sci_Position cln = curLine;
azawawi/perl6-gtk-scintilla:254: int clv_old = curLevel;
azawawi/perl6-gtk-scintilla:296: int efectiveLevel = curLevel | nextLevel << 16;
azawawi/perl6-gtk-scintilla:299: if( curLevel < nextLevel )
azawawi/perl6-gtk-scintilla:301: if( efectiveLevel != styler.LevelAt(curLine) ) {
azawawi/perl6-gtk-scintilla:302: styler.SetLevel(curLine, efectiveLevel );
azawawi/perl6-gtk-scintilla:304: curLine++;
azawawi/perl6-gtk-scintilla:305: curLevel = nextLevel;
azawawi/perl6-gtk-scintilla:307: styler.SetLevel( curLine, ( curLevel | curLevel << 16)
azawawi/perl6-gtk-scintilla:397: // with special curly braces syntax as foldable comments too.
azawawi/perl6-gtk-scintilla:406: Sci_Position nCurLine = styler.GetLine(i+1);
azawawi/perl6-gtk-scintilla:413: if( styler.GetLine(nBack) != nCurLine )
azawawi/perl6-gtk-scintilla:41: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:43: int curLineState = curLine > 0 ? styler.GetLineState(curLine - 1) : SCE_PO_DEFAULT;
azawawi/perl6-gtk-scintilla:104: if (curLineState == SCE_PO_COMMENT)
azawawi/perl6-gtk-scintilla:105: curLineState = SCE_PO_DEFAULT;
azawawi/perl6-gtk-scintilla:127: if (curLineState == SCE_PO_MSGCTXT || curLineState == SCE_PO_MSGCTXT_TEXT)
azawawi/perl6-gtk-scintilla:129: else if (curLineState == SCE_PO_MSGID || curLineState == SCE_PO_MSGID_TEXT)
azawawi/perl6-gtk-scintilla:131: else if (curLineState == SCE_PO_MSGSTR || curLineState == SCE_PO_MSGSTR_TEXT)
azawawi/perl6-gtk-scintilla:139: curLineState = sc.state;
azawawi/perl6-gtk-scintilla:144: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:145: styler.SetLineState(curLine, curLineState);
azawawi/perl6-gtk-scintilla:168: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:169: int lineState = styler.GetLineState(curLine);
azawawi/perl6-gtk-scintilla:171: int level = styler.LevelAt(curLine) & SC_FOLDLEVELNUMBERMASK;
azawawi/perl6-gtk-scintilla:184: Sci_Position nextLine = curLine + 1;
azawawi/perl6-gtk-scintilla:199: styler.SetLevel(curLine, lvl);
azawawi/perl6-gtk-scintilla:202: curLine = nextLine;
azawawi/perl6-gtk-scintilla:172: static void ClassifyPascalWord(WordList *keywordlists[], StyleContext &sc, int &curLineState, bool bSmartHighlighting) {
azawawi/perl6-gtk-scintilla:178: if (curLineState & stateInAsm) {
azawawi/perl6-gtk-scintilla:180: curLineState &= ~stateInAsm;
azawawi/perl6-gtk-scintilla:188: curLineState |= stateInAsm;
azawawi/perl6-gtk-scintilla:191: curLineState |= stateInProperty;
azawawi/perl6-gtk-scintilla:193: curLineState |= stateInExport;
azawawi/perl6-gtk-scintilla:194: } else if (!(curLineState & (stateInProperty | stateInExport)) && strcmp(s, "index") == 0) {
azawawi/perl6-gtk-scintilla:196: } else if (!(curLineState & stateInExport) && strcmp(s, "name") == 0) {
azawawi/perl6-gtk-scintilla:198: } else if (!(curLineState & stateInProperty) &&
azawawi/perl6-gtk-scintilla:211: } else if (curLineState & stateInAsm) {
azawawi/perl6-gtk-scintilla:227: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:228: int curLineState = curLine > 0 ? styler.GetLineState(curLine - 1) : 0;
azawawi/perl6-gtk-scintilla:235: curLine = styler.GetLine(sc.currentPos);
azawawi/perl6-gtk-scintilla:236: styler.SetLineState(curLine, curLineState);
azawawi/perl6-gtk-scintilla:252: ClassifyPascalWord(keywordlists, sc, curLineState, bSmartHighlighting);
azawawi/perl6-gtk-scintilla:299: curLineState &= ~(stateInProperty | stateInExport);
azawawi/perl6-gtk-scintilla:310: if (IsADigit(sc.ch) && !(curLineState & stateInAsm)) {
azawawi/perl6-gtk-scintilla:314: } else if (sc.ch == '$' && !(curLineState & stateInAsm)) {
azawawi/perl6-gtk-scintilla:331: } else if (setOperator.Contains(sc.ch) && !(curLineState & stateInAsm)) {
azawawi/perl6-gtk-scintilla:333: } else if (curLineState & stateInAsm) {
azawawi/perl6-gtk-scintilla:340: ClassifyPascalWord(keywordlists, sc, curLineState, bSmartHighlighting);
azawawi/perl6-gtk-scintilla:402: Sci_Position curLine = styler.GetLine(startPos);
azawawi/perl6-gtk-scintilla:403: if (curLine > 0) lineState = styler.GetLineState(curLine - 1);
azawawi/perl6-gtk-scintilla:413: if (curLine > 0) {
azawawi/perl6-gtk-scintilla:414: Sci_Position endLinePrevious = styler.LineEnd(curLine - 1);
azawawi/perl6-gtk-scintilla:422: LinePPState preproc = vlls.ForLine(curLine);
azawawi/perl6-gtk-scintilla:431: std::vector<PPDefinition>::iterator itInvalid = std::find_if(ppDefineHistory.begin(), ppDefineHistory.end(), After(curLine-1));
azawawi/perl6-gtk-scintilla:446: Sci_Position lineEndNext = styler.LineEnd(curLine);
azawawi/perl6-gtk-scintilla:466: curLine++;
azawawi/perl6-gtk-scintilla:467: lineEndNext = styler.LineEnd(curLine);
azawawi/perl6-gtk-scintilla:468: vlls.Add(curLine, preproc);
azawawi/perl6-gtk-scintilla:470: styler.SetLineState(curLine, lineState);
azawawi/perl6-gtk-scintilla:477: curLine++;
azawawi/perl6-gtk-scintilla:478: lineEndNext = styler.LineEnd(curLine);
azawawi/perl6-gtk-scintilla:479: vlls.Add(curLine, preproc);
azawawi/perl6-gtk-scintilla:481: styler.SetLineState(curLine, lineState);
azawawi/perl6-gtk-scintilla:595: curLine++;
azawawi/perl6-gtk-scintilla:596: lineEndNext = styler.LineEnd(curLine);
azawawi/perl6-gtk-scintilla:597: vlls.Add(curLine, preproc);
azawawi/perl6-gtk-scintilla:599: styler.SetLineState(curLine, lineState);
azawawi/perl6-gtk-scintilla:613: styler.SetLineState(curLine, lineState);
azawawi/perl6-gtk-scintilla:618: styler.SetLineState(curLine, lineState);
azawawi/perl6-gtk-scintilla:622: styler.SetLineState(curLine, lineState);
azawawi/perl6-gtk-scintilla:689: ppDefineHistory.push_back(PPDefinition(curLine, key, value, false, args));
azawawi/perl6-gtk-scintilla:698: ppDefineHistory.push_back(PPDefinition(curLine, key, value));
azawawi/perl6-gtk-scintilla:707: ppDefineHistory.push_back(PPDefinition(curLine, itDef->first, "", true));
azawawi/perl6-gtk-scintilla:720: ppDefineHistory.push_back(PPDefinition(curLine, key, "", true));
azawawi/perl6-gtk-scintilla:73: someText = self.edit.getCurLine(100)
azawawi/perl6-gtk-scintilla:6386: case SCI_GETCURLINE: {
azawawi/perl6-gtk-scintilla:74: name not in ["GetText", "GetLine", "GetCurLine"]:
azawawi/perl6-gtk-scintilla:257: def testGetCurLine(self):
azawawi/perl6-gtk-scintilla:260: caret = self.ed.GetCurLine(len(data), data)
azawawi/perl6-gtk-scintilla:2686: const int curLine = pdoc->LineFromPosition(mainStart);
azawawi/perl6-gtk-scintilla:2687: if (curLine != pdoc->LineFromPosition(mainEnd))
azawawi/perl6-gtk-scintilla:2689: const int baseStart = pdoc->LineStart(curLine);
azawawi/perl6-gtk-scintilla:2690: const int baseEnd = pdoc->LineEnd(curLine);
azawawi/perl6-net-curl:7: remote = git://github.com/azawawi/perl6-net-curl.git
azawawi/perl6-net-curl:21: # Debian-based libcurl installation
azawawi/perl6-net-curl:23: - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y libcurl3-dev ; fi
azawawi/perl6-net-curl:25: # macOS libcurl installation
azawawi/perl6-net-curl:27: - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install curl ; fi
azawawi/perl6-net-curl:4: "description" : "Perl 6 interface to libcurl, the free and easy-to-use client-side URL transfer library",
azawawi/perl6-net-curl:7: "name" : "Net::Curl",
azawawi/perl6-net-curl:10: "Net::Curl" : "lib/Net/Curl.pm6",
azawawi/perl6-net-curl:11: "Net::Curl::Easy" : "lib/Net/Curl/Easy.pm6",
azawawi/perl6-net-curl:12: "Net::Curl::NativeCall" : "lib/Net/Curl/NativeCall.pm6"
azawawi/perl6-net-curl:14: "source-url" : "git://github.com/azawawi/perl6-net-curl.git",
azawawi/perl6-net-curl:16: "libcurl",
azawawi/perl6-net-curl:1: # Net::Curl
azawawi/perl6-net-curl:3: Net::Curl provides a Perl 6 interface to libcurl.
azawawi/perl6-net-curl:4: The plan is support the libcurl Easy interface first
azawawi/perl6-net-curl:5: and run all the libcurl website examples
azawawi/perl6-net-curl:8: libcurl is a free and easy-to-use client-side URL transfer library.
azawawi/perl6-net-curl:11: and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT,
azawawi/perl6-net-curl:20: | Linux / Mac OS X | Build Status | Travis CI |
azawawi/perl6-net-curl:21: | Windows 7 64-bit | Build status | AppVeyor |
azawawi/perl6-net-curl:25: * Since Net::Curl uses libcurl, libcurl.so must be found in /usr/lib.
azawawi/perl6-net-curl:26: To install libcurl on Debian for example, please use the following command:
azawawi/perl6-net-curl:28: $ sudo apt-get install libcurl3-dev
azawawi/perl6-net-curl:33: $ brew install curl
azawawi/perl6-net-curl:38: $ zef install Net::Curl
azawawi/perl6-net-curl:7: use Net::Curl::Easy;
azawawi/perl6-net-curl:9: given my $curl = Net::Curl::Easy.new {
azawawi/perl6-net-curl:10: .option('CURLOPT_URL', 'http://http://example.com/');
azawawi/perl6-net-curl:14: my $content-type = .get-info('CURLINFO_CONTENT_TYPE');
azawawi/perl6-net-curl:7: use Net::Curl::API;
azawawi/perl6-net-curl:9: given my $curl = Net::Curl::API.new {
azawawi/perl6-net-curl:10: .option(CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:6: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:8: my $curl = curl_easy_init;
azawawi/perl6-net-curl:9: die "Failed to curl_easy_init" unless $curl;
azawawi/perl6-net-curl:11: curl_easy_setopt($curl, CURLOPT_URL, 'http://www.google.jo/');
azawawi/perl6-net-curl:13: my $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:15: if CURLE_OK == $res {
azawawi/perl6-net-curl:20: $res = curl_easy_getinfo($curl, CURLINFO_CONTENT_TYPE, $ct);
azawawi/perl6-net-curl:22: if (CURLE_OK == $res) && $ct {
azawawi/perl6-net-curl:27: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:5: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:8: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:10: # get a curl handle
azawawi/perl6-net-curl:11: my $curl = curl_easy_init;
azawawi/perl6-net-curl:12: if $curl {
azawawi/perl6-net-curl:16: curl_easy_setopt($curl, CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:19: curl_easy_setopt($curl, CURLOPT_POSTFIELDS, 'name=daniel&project=curl');
azawawi/perl6-net-curl:22: my $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:25: if $res != CURLE_OK {
azawawi/perl6-net-curl:26: warn sprintf("curl_easy_perform failed: %s\n",
azawawi/perl6-net-curl:27: curl_easy_strerror($res));
azawawi/perl6-net-curl:31: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:34: curl_global_cleanup;
azawawi/perl6-net-curl:5: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:10: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:12: my $curl = curl_easy_init;
azawawi/perl6-net-curl:14: if $curl {
azawawi/perl6-net-curl:15: curl_easy_setopt($curl, CURLOPT_URL, "https://www.example.com/");
azawawi/perl6-net-curl:24: # default bundle, then the CURLOPT_CAPATH option might come handy for
azawawi/perl6-net-curl:26: curl_easy_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
azawawi/perl6-net-curl:32: # subjectAltName) fields, libcurl will refuse to connect. You can skip
azawawi/perl6-net-curl:34: curl_easy_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
azawawi/perl6-net-curl:38: my $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:41: if $res != CURLE_OK {
azawawi/perl6-net-curl:42: say "curl_easy_perform failed: " ~ curl_easy_strerror($res);
azawawi/perl6-net-curl:46: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:49: curl_global_cleanup;
azawawi/perl6-net-curl:7: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:9: my $res = CURLE_OK;
azawawi/perl6-net-curl:13: # HOST:PORT:ADDRESS where HOST is the name libcurl will try to resolve,
azawawi/perl6-net-curl:14: # PORT is the port number of the service where libcurl wants to connect to
azawawi/perl6-net-curl:17: my Pointer $host = curl_slist_append(Pointer.new(0), "example.com:80:127.0.0.1");
azawawi/perl6-net-curl:19: my $curl = curl_easy_init;
azawawi/perl6-net-curl:20: if $curl {
azawawi/perl6-net-curl:21: curl_easy_setopt($curl, CURLOPT_RESOLVE, $host);
azawawi/perl6-net-curl:22: curl_easy_setopt($curl, CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:23: $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:26: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:29: curl_slist_free_all($host);
azawawi/perl6-net-curl:5: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:7: my $curl = curl_easy_init;
azawawi/perl6-net-curl:8: if $curl {
azawawi/perl6-net-curl:9: curl_easy_setopt($curl, CURLOPT_URL, 'http://example.com');
azawawi/perl6-net-curl:12: my $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:16: say "Error: curl_easy_perform failed: {curl_easy_strerror($res)}";
azawawi/perl6-net-curl:20: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:6: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:8: my $curl = curl_easy_init;
azawawi/perl6-net-curl:10: if $curl {
azawawi/perl6-net-curl:14: curl_easy_setopt($curl, CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:15: curl_easy_setopt($curl, CURLOPT_POSTFIELDS, $postthis);
azawawi/perl6-net-curl:17: # if we don't provide POSTFIELDSIZE, libcurl will strlen() by itself
azawawi/perl6-net-curl:18: curl_easy_setopt($curl, CURLOPT_POSTFIELDSIZE, $postthis.chars);
azawawi/perl6-net-curl:21: my $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:24: if $res != CURLE_OK {
azawawi/perl6-net-curl:25: warn sprintf("curl_easy_perform failed: %s\n",
azawawi/perl6-net-curl:26: curl_easy_strerror($res));
azawawi/perl6-net-curl:30: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:34: #include <curl/multi.h>
azawawi/perl6-net-curl:99: static void init(CURLM *cm, int i)
azawawi/perl6-net-curl:101: CURL *eh = curl_easy_init();
azawawi/perl6-net-curl:103: curl_easy_setopt(eh, CURLOPT_WRITEFUNCTION, cb);
azawawi/perl6-net-curl:104: curl_easy_setopt(eh, CURLOPT_HEADER, 0L);
azawawi/perl6-net-curl:105: curl_easy_setopt(eh, CURLOPT_URL, urls[i]);
azawawi/perl6-net-curl:106: curl_easy_setopt(eh, CURLOPT_PRIVATE, urls[i]);
azawawi/perl6-net-curl:107: curl_easy_setopt(eh, CURLOPT_VERBOSE, 0L);
azawawi/perl6-net-curl:109: curl_multi_add_handle(cm, eh);
azawawi/perl6-net-curl:114: CURLM *cm;
azawawi/perl6-net-curl:115: CURLMsg *msg;
azawawi/perl6-net-curl:122: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:124: cm = curl_multi_init();
azawawi/perl6-net-curl:128: curl_multi_setopt(cm, CURLMOPT_MAXCONNECTS, (long)MAX);
azawawi/perl6-net-curl:135: curl_multi_perform(cm, &U);
azawawi/perl6-net-curl:142: if (curl_multi_fdset(cm, &R, &W, &E, &M)) {
azawawi/perl6-net-curl:143: fprintf(stderr, "E: curl_multi_fdset\n");
azawawi/perl6-net-curl:147: if (curl_multi_timeout(cm, &L)) {
azawawi/perl6-net-curl:148: fprintf(stderr, "E: curl_multi_timeout\n");
azawawi/perl6-net-curl:172: while ((msg = curl_multi_info_read(cm, &Q))) {
azawawi/perl6-net-curl:173: if (msg->msg == CURLMSG_DONE) {
azawawi/perl6-net-curl:175: CURL *e = msg->easy_handle;
azawawi/perl6-net-curl:176: curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url);
azawawi/perl6-net-curl:178: msg->data.result, curl_easy_strerror(msg->data.result), url);
azawawi/perl6-net-curl:179: curl_multi_remove_handle(cm, e);
azawawi/perl6-net-curl:180: curl_easy_cleanup(e);
azawawi/perl6-net-curl:183: fprintf(stderr, "E: CURLMsg (%d)\n", msg->msg);
azawawi/perl6-net-curl:193: curl_multi_cleanup(cm);
azawawi/perl6-net-curl:194: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:44: #include <curl/curl.h>
azawawi/perl6-net-curl:46: #if LIBCURL_VERSION_NUM < 0x070c03
azawawi/perl6-net-curl:47: #error "upgrade your libcurl to no less than 7.12.3"
azawawi/perl6-net-curl:59: * Since libcurl 7.12.3, using "any" auth and POST/PUT requires a set ioctl
azawawi/perl6-net-curl:66: static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp)
azawawi/perl6-net-curl:73: case CURLIOCMD_RESTARTREAD:
azawawi/perl6-net-curl:74: /* mr libcurl kindly asks as to rewind the read data stream to start */
azawawi/perl6-net-curl:77: return CURLIOE_FAILRESTART;
azawawi/perl6-net-curl:82: return CURLIOE_UNKNOWNCMD;
azawawi/perl6-net-curl:84: return CURLIOE_OK; /* success! */
azawawi/perl6-net-curl:91: curl_off_t nread;
azawawi/perl6-net-curl:97: nread = (curl_off_t)retcode;
azawawi/perl6-net-curl:99: fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
azawawi/perl6-net-curl:107: CURL *curl;
azawawi/perl6-net-curl:108: CURLcode res;
azawawi/perl6-net-curl:126: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:128: /* get a curl handle */
azawawi/perl6-net-curl:129: curl = curl_easy_init();
azawawi/perl6-net-curl:130: if(curl) {
azawawi/perl6-net-curl:132: curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
azawawi/perl6-net-curl:135: curl_easy_setopt(curl, CURLOPT_READDATA, (void*)hd);
azawawi/perl6-net-curl:138: curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, my_ioctl);
azawawi/perl6-net-curl:141: curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void*)hd);
azawawi/perl6-net-curl:144: curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L) ;
azawawi/perl6-net-curl:148: curl_easy_setopt(curl,CURLOPT_URL, url);
azawawi/perl6-net-curl:152: curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
azawawi/perl6-net-curl:153: (curl_off_t)file_info.st_size);
azawawi/perl6-net-curl:155: /* tell libcurl we can use "any" auth, which lets the lib pick one, but it
azawawi/perl6-net-curl:158: curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
azawawi/perl6-net-curl:161: curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
azawawi/perl6-net-curl:164: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:166: if(res != CURLE_OK)
azawawi/perl6-net-curl:167: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:168: curl_easy_strerror(res));
azawawi/perl6-net-curl:171: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:175: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:26: /* on a netBSD system with OPENSSL& LIBCURL installed from
azawawi/perl6-net-curl:28: * gcc -I/usr/pkg/include -L/usr/pkg/lib -lcurl -Wl,-R/usr/pkg/lib -lssl
azawawi/perl6-net-curl:29: * -lcrypto -lz -o curlcacerttest curlcacerttest.c
azawawi/perl6-net-curl:34: #include <curl/curl.h>
azawawi/perl6-net-curl:43: static CURLcode sslctx_function(CURL * curl, void * sslctx, void * parm)
azawawi/perl6-net-curl:107: return CURLE_OK ;
azawawi/perl6-net-curl:112: CURL * ch;
azawawi/perl6-net-curl:113: CURLcode rv;
azawawi/perl6-net-curl:115: rv=curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:116: ch=curl_easy_init();
azawawi/perl6-net-curl:117: rv=curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L);
azawawi/perl6-net-curl:118: rv=curl_easy_setopt(ch,CURLOPT_HEADER, 0L);
azawawi/perl6-net-curl:119: rv=curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L);
azawawi/perl6-net-curl:120: rv=curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L);
azawawi/perl6-net-curl:121: rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction);
azawawi/perl6-net-curl:122: rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout);
azawawi/perl6-net-curl:123: rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction);
azawawi/perl6-net-curl:124: rv=curl_easy_setopt(ch,CURLOPT_WRITEHEADER, stderr);
azawawi/perl6-net-curl:125: rv=curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");
azawawi/perl6-net-curl:126: rv=curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1L);
azawawi/perl6-net-curl:127: rv=curl_easy_setopt(ch, CURLOPT_URL, "https://www.example.com/");
azawawi/perl6-net-curl:131: rv=curl_easy_perform(ch);
azawawi/perl6-net-curl:132: if (rv==CURLE_OK)
azawawi/perl6-net-curl:141: rv=curl_easy_setopt(ch,CURLOPT_SSL_CTX_FUNCTION, *sslctx_function);
azawawi/perl6-net-curl:142: rv=curl_easy_perform(ch);
azawawi/perl6-net-curl:143: if (rv==CURLE_OK)
azawawi/perl6-net-curl:148: curl_easy_cleanup(ch);
azawawi/perl6-net-curl:149: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:35: CURL *curl;
azawawi/perl6-net-curl:36: CURLcode res;
azawawi/perl6-net-curl:38: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:40: curl = curl_easy_init();
azawawi/perl6-net-curl:41: if(curl) {
azawawi/perl6-net-curl:42: curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
azawawi/perl6-net-curl:44: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
azawawi/perl6-net-curl:46: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
azawawi/perl6-net-curl:47: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
azawawi/perl6-net-curl:49: curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
azawawi/perl6-net-curl:50: curl_easy_setopt(curl, CURLOPT_CERTINFO, 1L);
azawawi/perl6-net-curl:52: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:55: struct curl_certinfo *ci = NULL;
azawawi/perl6-net-curl:57: res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &ci);
azawawi/perl6-net-curl:64: struct curl_slist *slist;
azawawi/perl6-net-curl:75: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:78: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: * After successful download we use curl_easy_getinfo() calls to get the
azawawi/perl6-net-curl:37: #include <curl/curl.h>
azawawi/perl6-net-curl:61: CURL *curl_handle;
azawawi/perl6-net-curl:62: CURLcode res;
azawawi/perl6-net-curl:78: appname, CHKSPEED_VERSION, curl_version());
azawawi/perl6-net-curl:126: /* init libcurl */
azawawi/perl6-net-curl:127: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:129: /* init the curl session */
azawawi/perl6-net-curl:130: curl_handle = curl_easy_init();
azawawi/perl6-net-curl:133: curl_easy_setopt(curl_handle, CURLOPT_URL, url);
azawawi/perl6-net-curl:136: curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteCallback);
azawawi/perl6-net-curl:140: curl_easy_setopt(curl_handle, CURLOPT_USERAGENT,
azawawi/perl6-net-curl:141: "libcurl-speedchecker/" CHKSPEED_VERSION);
azawawi/perl6-net-curl:144: res = curl_easy_perform(curl_handle);
azawawi/perl6-net-curl:146: if(CURLE_OK == res) {
azawawi/perl6-net-curl:150: res = curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD, &val);
azawawi/perl6-net-curl:151: if((CURLE_OK == res) && (val>0))
azawawi/perl6-net-curl:155: res = curl_easy_getinfo(curl_handle, CURLINFO_TOTAL_TIME, &val);
azawawi/perl6-net-curl:156: if((CURLE_OK == res) && (val>0))
azawawi/perl6-net-curl:160: res = curl_easy_getinfo(curl_handle, CURLINFO_SPEED_DOWNLOAD, &val);
azawawi/perl6-net-curl:161: if((CURLE_OK == res) && (val>0))
azawawi/perl6-net-curl:166: url, curl_easy_strerror(res));
azawawi/perl6-net-curl:169: /* cleanup curl stuff */
azawawi/perl6-net-curl:170: curl_easy_cleanup(curl_handle);
azawawi/perl6-net-curl:172: /* we're done with libcurl, so clean it up */
azawawi/perl6-net-curl:173: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:30: #include <curl/curl.h>
azawawi/perl6-net-curl:33: print_cookies(CURL *curl)
azawawi/perl6-net-curl:35: CURLcode res;
azawawi/perl6-net-curl:36: struct curl_slist *cookies;
azawawi/perl6-net-curl:37: struct curl_slist *nc;
azawawi/perl6-net-curl:40: printf("Cookies, curl knows:\n");
azawawi/perl6-net-curl:41: res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies);
azawawi/perl6-net-curl:42: if (res != CURLE_OK) {
azawawi/perl6-net-curl:43: fprintf(stderr, "Curl curl_easy_getinfo failed: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:55: curl_slist_free_all(cookies);
azawawi/perl6-net-curl:61: CURL *curl;
azawawi/perl6-net-curl:62: CURLcode res;
azawawi/perl6-net-curl:64: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:65: curl = curl_easy_init();
azawawi/perl6-net-curl:66: if (curl) {
azawawi/perl6-net-curl:69: curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/");
azawawi/perl6-net-curl:70: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:71: curl_easy_setopt(curl, CURLOPT_COOKIEFILE, ""); /* just to start the cookie engine */
azawawi/perl6-net-curl:72: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:73: if (res != CURLE_OK) {
azawawi/perl6-net-curl:74: fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:78: print_cookies(curl);
azawawi/perl6-net-curl:80: printf("Erasing curl's knowledge of cookies!\n");
azawawi/perl6-net-curl:81: curl_easy_setopt(curl, CURLOPT_COOKIELIST, "ALL");
azawawi/perl6-net-curl:83: print_cookies(curl);
azawawi/perl6-net-curl:93: res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
azawawi/perl6-net-curl:94: if (res != CURLE_OK) {
azawawi/perl6-net-curl:95: fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:103: res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline);
azawawi/perl6-net-curl:104: if (res != CURLE_OK) {
azawawi/perl6-net-curl:105: fprintf(stderr, "Curl curl_easy_setopt failed: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:109: print_cookies(curl);
azawawi/perl6-net-curl:111: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:112: if (res != CURLE_OK) {
azawawi/perl6-net-curl:113: fprintf(stderr, "Curl perform failed: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:118: fprintf(stderr, "Curl init failed!\n");
azawawi/perl6-net-curl:122: curl_global_cleanup();
azawawi/perl6-net-curl:10: /* an attempt to use the curl library in concert with a gtk-threaded application */
azawawi/perl6-net-curl:15: #include <curl/curl.h>
azawawi/perl6-net-curl:44: CURL *curl;
azawawi/perl6-net-curl:45: CURLcode res;
azawawi/perl6-net-curl:49: curl = curl_easy_init();
azawawi/perl6-net-curl:50: if(curl)
azawawi/perl6-net-curl:52: outfile = fopen("test.curl", "w");
azawawi/perl6-net-curl:54: curl_easy_setopt(curl, CURLOPT_URL, url);
azawawi/perl6-net-curl:55: curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
azawawi/perl6-net-curl:56: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_write_func);
azawawi/perl6-net-curl:57: curl_easy_setopt(curl, CURLOPT_READFUNCTION, my_read_func);
azawawi/perl6-net-curl:58: curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
azawawi/perl6-net-curl:59: curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, my_progress_func);
azawawi/perl6-net-curl:60: curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, Bar);
azawawi/perl6-net-curl:62: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:66: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:77: /* Must initialize libcurl before any threads are started */
azawawi/perl6-net-curl:78: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:2: curlx.c Authors: Peter Sylvester, Jean-Paul Merlin
azawawi/perl6-net-curl:85: #include <curl/curl.h>
azawawi/perl6-net-curl:98: static const char *curlx_usage[]={
azawawi/perl6-net-curl:99: "usage: curlx args\n",
azawawi/perl6-net-curl:113: ./curlx -p12 psy.p12 -envpass XX -in request -verbose -accesstype AD_DVCS
azawawi/perl6-net-curl:134: CURL * curl;
azawawi/perl6-net-curl:199: curl_easy_setopt(p->curl, CURLOPT_URL,accessinfo);
azawawi/perl6-net-curl:206: curl_easy_setopt(p->curl, CURLOPT_URL,accessinfo);
azawawi/perl6-net-curl:215: /* This is an example of an curl SSL initialisation call back. The callback sets:
azawawi/perl6-net-curl:222: static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) {
azawawi/perl6-net-curl:251: return CURLE_OK ;
azawawi/perl6-net-curl:254: return CURLE_SSL_CERTPROBLEM;
azawawi/perl6-net-curl:279: CURLcode res;
azawawi/perl6-net-curl:280: struct curl_slist * headers=NULL;
azawawi/perl6-net-curl:288: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:340: for (pp=curlx_usage; (*pp != NULL); pp++)
azawawi/perl6-net-curl:377: if (!(p.curl = curl_easy_init())) {
azawawi/perl6-net-curl:378: BIO_printf(p.errorbio, "Cannot init curl lib\n");
azawawi/perl6-net-curl:435: curl_easy_setopt(p.curl, CURLOPT_URL, serverurl);
azawawi/perl6-net-curl:439: curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
azawawi/perl6-net-curl:440: curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
azawawi/perl6-net-curl:446: headers = curl_slist_append(headers,contenttype);
azawawi/perl6-net-curl:447: curl_easy_setopt(p.curl, CURLOPT_HTTPHEADER, headers);
azawawi/perl6-net-curl:455: curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp);
azawawi/perl6-net-curl:458: res = curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_FUNCTION, sslctxfun) ;
azawawi/perl6-net-curl:460: if (res != CURLE_OK)
azawawi/perl6-net-curl:461: BIO_printf(p.errorbio,"%d %s=%d %d\n", __LINE__, "CURLOPT_SSL_CTX_FUNCTION",CURLOPT_SSL_CTX_FUNCTION,res);
azawawi/perl6-net-curl:463: curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_DATA, &p);
azawawi/perl6-net-curl:478: curl_easy_setopt(p.curl, CURLOPT_POSTFIELDS, binaryptr);
azawawi/perl6-net-curl:479: curl_easy_setopt(p.curl, CURLOPT_POSTFIELDSIZE,(long)tabLength);
azawawi/perl6-net-curl:484: BIO_printf(p.errorbio,"%d %s %d\n", __LINE__, "curl_easy_perform",
azawawi/perl6-net-curl:485: res = curl_easy_perform(p.curl));
azawawi/perl6-net-curl:487: int result =curl_easy_getinfo(p.curl,CURLINFO_CONTENT_TYPE,&response);
azawawi/perl6-net-curl:502: curl_slist_free_all(headers);
azawawi/perl6-net-curl:505: curl_easy_cleanup(p.curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:79: int my_trace(CURL *handle, curl_infotype type,
azawawi/perl6-net-curl:88: case CURLINFO_TEXT:
azawawi/perl6-net-curl:93: case CURLINFO_HEADER_OUT:
azawawi/perl6-net-curl:96: case CURLINFO_DATA_OUT:
azawawi/perl6-net-curl:99: case CURLINFO_SSL_DATA_OUT:
azawawi/perl6-net-curl:102: case CURLINFO_HEADER_IN:
azawawi/perl6-net-curl:105: case CURLINFO_DATA_IN:
azawawi/perl6-net-curl:108: case CURLINFO_SSL_DATA_IN:
azawawi/perl6-net-curl:119: CURL *curl;
azawawi/perl6-net-curl:120: CURLcode res;
azawawi/perl6-net-curl:125: curl = curl_easy_init();
azawawi/perl6-net-curl:126: if(curl) {
azawawi/perl6-net-curl:127: curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
azawawi/perl6-net-curl:128: curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &config);
azawawi/perl6-net-curl:131: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:133: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
azawawi/perl6-net-curl:134: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:136: if(res != CURLE_OK)
azawawi/perl6-net-curl:137: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:138: curl_easy_strerror(res));
azawawi/perl6-net-curl:141: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:32: This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
azawawi/perl6-net-curl:39: curl_multi "hiper" API.
azawawi/perl6-net-curl:66: #include <curl/curl.h>
azawawi/perl6-net-curl:83: CURLM *multi;
azawawi/perl6-net-curl:92: CURL *easy;
azawawi/perl6-net-curl:95: char error[CURL_ERROR_SIZE];
azawawi/perl6-net-curl:102: curl_socket_t sockfd;
azawawi/perl6-net-curl:103: CURL *easy;
azawawi/perl6-net-curl:113: /* Update the event timer after curl_multi library calls */
azawawi/perl6-net-curl:114: static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
azawawi/perl6-net-curl:128: /* Die if we get a bad CURLMcode somewhere */
azawawi/perl6-net-curl:129: static void mcode_or_die(const char *where, CURLMcode code)
azawawi/perl6-net-curl:131: if ( CURLM_OK != code )
azawawi/perl6-net-curl:136: case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
azawawi/perl6-net-curl:137: case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
azawawi/perl6-net-curl:138: case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
azawawi/perl6-net-curl:139: case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
azawawi/perl6-net-curl:140: case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
azawawi/perl6-net-curl:141: case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
azawawi/perl6-net-curl:142: case CURLM_LAST: s="CURLM_LAST"; break;
azawawi/perl6-net-curl:143: default: s="CURLM_unknown";
azawawi/perl6-net-curl:145: case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET";
azawawi/perl6-net-curl:161: CURLMsg *msg;
azawawi/perl6-net-curl:164: CURL *easy;
azawawi/perl6-net-curl:165: CURLcode res;
azawawi/perl6-net-curl:168: while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
azawawi/perl6-net-curl:169: if (msg->msg == CURLMSG_DONE) {
azawawi/perl6-net-curl:172: curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
azawawi/perl6-net-curl:173: curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
azawawi/perl6-net-curl:175: curl_multi_remove_handle(g->multi, easy);
azawawi/perl6-net-curl:177: curl_easy_cleanup(easy);
azawawi/perl6-net-curl:190: CURLMcode rc;
azawawi/perl6-net-curl:192: int action = (revents&EV_READ?CURL_POLL_IN:0)|
azawawi/perl6-net-curl:193: (revents&EV_WRITE?CURL_POLL_OUT:0);
azawawi/perl6-net-curl:194: rc = curl_multi_socket_action(g->multi, w->fd, action, &g->still_running);
azawawi/perl6-net-curl:195: mcode_or_die("event_cb: curl_multi_socket_action", rc);
azawawi/perl6-net-curl:210: CURLMcode rc;
azawawi/perl6-net-curl:212: rc = curl_multi_socket_action(g->multi, CURL_SOCKET_TIMEOUT, 0, &g->still_running);
azawawi/perl6-net-curl:213: mcode_or_die("timer_cb: curl_multi_socket_action", rc);
azawawi/perl6-net-curl:232: static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
azawawi/perl6-net-curl:236: int kind = (act&CURL_POLL_IN?EV_READ:0)|(act&CURL_POLL_OUT?EV_WRITE:0);
azawawi/perl6-net-curl:252: static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
azawawi/perl6-net-curl:258: curl_multi_assign(g->multi, s, fdp);
azawawi/perl6-net-curl:261: /* CURLMOPT_SOCKETFUNCTION */
azawawi/perl6-net-curl:262: static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
azawawi/perl6-net-curl:273: if ( what == CURL_POLL_REMOVE )
azawawi/perl6-net-curl:295: /* CURLOPT_WRITEFUNCTION */
azawawi/perl6-net-curl:306: /* CURLOPT_PROGRESSFUNCTION */
azawawi/perl6-net-curl:319: /* Create a new easy handle, and add it to the global curl_multi */
azawawi/perl6-net-curl:323: CURLMcode rc;
azawawi/perl6-net-curl:329: conn->easy = curl_easy_init();
azawawi/perl6-net-curl:332: fprintf(MSG_OUT, "curl_easy_init() failed, exiting!\n");
azawawi/perl6-net-curl:337: curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
azawawi/perl6-net-curl:338: curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
azawawi/perl6-net-curl:339: curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);
azawawi/perl6-net-curl:340: curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:341: curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
azawawi/perl6-net-curl:342: curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
azawawi/perl6-net-curl:343: curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 0L);
azawawi/perl6-net-curl:344: curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
azawawi/perl6-net-curl:345: curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
azawawi/perl6-net-curl:346: curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 3L);
azawawi/perl6-net-curl:347: curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 10L);
azawawi/perl6-net-curl:351: rc = curl_multi_add_handle(g->multi, conn->easy);
azawawi/perl6-net-curl:352: mcode_or_die("new_conn: curl_multi_add_handle", rc);
azawawi/perl6-net-curl:383: curl_socket_t sockfd;
azawawi/perl6-net-curl:418: CURLMcode rc;
azawawi/perl6-net-curl:426: g.multi = curl_multi_init();
azawawi/perl6-net-curl:431: curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
azawawi/perl6-net-curl:432: curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
azawawi/perl6-net-curl:433: curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
azawawi/perl6-net-curl:434: curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
azawawi/perl6-net-curl:436: /* we don't call any curl_multi_socket*() function yet as we have no handles
azawawi/perl6-net-curl:440: curl_multi_cleanup(g.multi);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: * socket to libcurl to use. This example also handles the connect itself.
azawawi/perl6-net-curl:29: #include <curl/curl.h>
azawawi/perl6-net-curl:56: static curl_socket_t opensocket(void *clientp,
azawawi/perl6-net-curl:57: curlsocktype purpose,
azawawi/perl6-net-curl:58: struct curl_sockaddr *address)
azawawi/perl6-net-curl:60: curl_socket_t sockfd;
azawawi/perl6-net-curl:63: sockfd = *(curl_socket_t *)clientp;
azawawi/perl6-net-curl:69: static int sockopt_callback(void *clientp, curl_socket_t curlfd,
azawawi/perl6-net-curl:70: curlsocktype purpose)
azawawi/perl6-net-curl:73: (void)curlfd;
azawawi/perl6-net-curl:75: /* This return code was added in libcurl 7.21.5 */
azawawi/perl6-net-curl:76: return CURL_SOCKOPT_ALREADY_CONNECTED;
azawawi/perl6-net-curl:81: CURL *curl;
azawawi/perl6-net-curl:82: CURLcode res;
azawawi/perl6-net-curl:84: curl_socket_t sockfd;
azawawi/perl6-net-curl:96: curl = curl_easy_init();
azawawi/perl6-net-curl:97: if(curl) {
azawawi/perl6-net-curl:99: * Note that libcurl will internally think that you connect to the host
azawawi/perl6-net-curl:102: curl_easy_setopt(curl, CURLOPT_URL, "http://99.99.99.99:9999");
azawawi/perl6-net-curl:105: if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) == CURL_SOCKET_BAD ) {
azawawi/perl6-net-curl:125: curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
azawawi/perl6-net-curl:128: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
azawawi/perl6-net-curl:131: curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, opensocket);
azawawi/perl6-net-curl:132: curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, &sockfd);
azawawi/perl6-net-curl:135: curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, sockopt_callback);
azawawi/perl6-net-curl:137: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
azawawi/perl6-net-curl:139: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:141: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:144: printf("libcurl error: %d\n", res);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:29: CURL *curl;
azawawi/perl6-net-curl:30: CURLcode res;
azawawi/perl6-net-curl:47: curl = curl_easy_init();
azawawi/perl6-net-curl:48: if(curl) {
azawawi/perl6-net-curl:50: curl_easy_setopt(curl, CURLOPT_URL,
azawawi/perl6-net-curl:51: "file:///home/dast/src/curl/debug/new");
azawawi/perl6-net-curl:54: curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
azawawi/perl6-net-curl:57: curl_easy_setopt(curl, CURLOPT_READDATA, fd);
azawawi/perl6-net-curl:60: curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
azawawi/perl6-net-curl:61: (curl_off_t)file_info.st_size);
azawawi/perl6-net-curl:64: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:66: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:68: if(res != CURLE_OK) {
azawawi/perl6-net-curl:69: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:70: curl_easy_strerror(res));
azawawi/perl6-net-curl:75: curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
azawawi/perl6-net-curl:76: curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
azawawi/perl6-net-curl:83: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:19: * reference to original curl example code
azawawi/perl6-net-curl:43: * This example requires libcurl 7.9.7 or later.
azawawi/perl6-net-curl:54: #include <curl/curl.h>
azawawi/perl6-net-curl:56: enum fcurl_type_e {
azawawi/perl6-net-curl:59: CFTYPE_CURL=2
azawawi/perl6-net-curl:62: struct fcurl_data
azawawi/perl6-net-curl:64: enum fcurl_type_e type; /* type of handle */
azawawi/perl6-net-curl:66: CURL *curl;
azawawi/perl6-net-curl:76: typedef struct fcurl_data URL_FILE;
azawawi/perl6-net-curl:87: CURLM *multi_handle;
azawawi/perl6-net-curl:89: /* curl calls this routine to get more data */
azawawi/perl6-net-curl:141: long curl_timeo = -1;
azawawi/perl6-net-curl:151: curl_multi_timeout(multi_handle, &curl_timeo);
azawawi/perl6-net-curl:152: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:153: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:157: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:161: curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:179: curl_multi_perform(multi_handle, &file->still_running);
azawawi/perl6-net-curl:228: file->type = CFTYPE_CURL; /* marked as URL */
azawawi/perl6-net-curl:229: file->handle.curl = curl_easy_init();
azawawi/perl6-net-curl:231: curl_easy_setopt(file->handle.curl, CURLOPT_URL, url);
azawawi/perl6-net-curl:232: curl_easy_setopt(file->handle.curl, CURLOPT_WRITEDATA, file);
azawawi/perl6-net-curl:233: curl_easy_setopt(file->handle.curl, CURLOPT_VERBOSE, 0L);
azawawi/perl6-net-curl:234: curl_easy_setopt(file->handle.curl, CURLOPT_WRITEFUNCTION, write_callback);
azawawi/perl6-net-curl:237: multi_handle = curl_multi_init();
azawawi/perl6-net-curl:239: curl_multi_add_handle(multi_handle, file->handle.curl);
azawawi/perl6-net-curl:242: curl_multi_perform(multi_handle, &file->still_running);
azawawi/perl6-net-curl:248: curl_multi_remove_handle(multi_handle, file->handle.curl);
azawawi/perl6-net-curl:251: curl_easy_cleanup(file->handle.curl);
azawawi/perl6-net-curl:270: case CFTYPE_CURL:
azawawi/perl6-net-curl:272: curl_multi_remove_handle(multi_handle, file->handle.curl);
azawawi/perl6-net-curl:275: curl_easy_cleanup(file->handle.curl);
azawawi/perl6-net-curl:301: case CFTYPE_CURL:
azawawi/perl6-net-curl:323: case CFTYPE_CURL:
azawawi/perl6-net-curl:364: case CFTYPE_CURL:
azawawi/perl6-net-curl:409: case CFTYPE_CURL:
azawawi/perl6-net-curl:411: curl_multi_remove_handle(multi_handle, file->handle.curl);
azawawi/perl6-net-curl:414: curl_multi_add_handle(multi_handle, file->handle.curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:22: #include <curl/curl.h>
azawawi/perl6-net-curl:29: static long file_is_comming(struct curl_fileinfo *finfo,
azawawi/perl6-net-curl:40: int rc = CURLE_OK;
azawawi/perl6-net-curl:42: /* curl easy handle */
azawawi/perl6-net-curl:43: CURL *handle;
azawawi/perl6-net-curl:49: rc = curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:54: handle = curl_easy_init();
azawawi/perl6-net-curl:56: curl_global_cleanup();
azawawi/perl6-net-curl:57: return CURLE_OUT_OF_MEMORY;
azawawi/perl6-net-curl:61: curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L);
azawawi/perl6-net-curl:64: curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_comming);
azawawi/perl6-net-curl:67: curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded);
azawawi/perl6-net-curl:70: curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it);
azawawi/perl6-net-curl:73: curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data);
azawawi/perl6-net-curl:74: curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data);
azawawi/perl6-net-curl:76: /* curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L); */
azawawi/perl6-net-curl:80: curl_easy_setopt(handle, CURLOPT_URL, argv[1]);
azawawi/perl6-net-curl:82: curl_easy_setopt(handle, CURLOPT_URL, "ftp://example.com/test/\*");
azawawi/perl6-net-curl:85: rc = curl_easy_perform(handle);
azawawi/perl6-net-curl:87: curl_easy_cleanup(handle);
azawawi/perl6-net-curl:88: curl_global_cleanup();
azawawi/perl6-net-curl:92: static long file_is_comming(struct curl_fileinfo *finfo,
azawawi/perl6-net-curl:100: case CURLFILETYPE_DIRECTORY:
azawawi/perl6-net-curl:103: case CURLFILETYPE_FILE:
azawawi/perl6-net-curl:111: if(finfo->filetype == CURLFILETYPE_FILE) {
azawawi/perl6-net-curl:115: return CURL_CHUNK_BGN_FUNC_SKIP;
azawawi/perl6-net-curl:120: return CURL_CHUNK_BGN_FUNC_FAIL;
azawawi/perl6-net-curl:124: return CURL_CHUNK_BGN_FUNC_OK;
azawawi/perl6-net-curl:134: return CURL_CHUNK_END_FUNC_OK;
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:53: CURL *curl;
azawawi/perl6-net-curl:54: CURLcode res;
azawawi/perl6-net-curl:56: "curl.tar.gz", /* name to store the file as if succesful */
azawawi/perl6-net-curl:60: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:62: curl = curl_easy_init();
azawawi/perl6-net-curl:63: if(curl) {
azawawi/perl6-net-curl:67: curl_easy_setopt(curl, CURLOPT_URL,
azawawi/perl6-net-curl:68: "ftp://ftp.example.com/pub/www/utilities/curl/curl-7.9.2.tar.gz");
azawawi/perl6-net-curl:70: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
azawawi/perl6-net-curl:72: curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
azawawi/perl6-net-curl:75: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:77: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:80: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:82: if(CURLE_OK != res) {
azawawi/perl6-net-curl:84: fprintf(stderr, "curl told us %d\n", res);
azawawi/perl6-net-curl:91: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:25: #include <curl/curl.h>
azawawi/perl6-net-curl:44: CURL *curl;
azawawi/perl6-net-curl:45: CURLcode res;
azawawi/perl6-net-curl:50: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:52: curl = curl_easy_init();
azawawi/perl6-net-curl:53: if(curl) {
azawawi/perl6-net-curl:54: curl_easy_setopt(curl, CURLOPT_URL, ftpurl);
azawawi/perl6-net-curl:56: curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
azawawi/perl6-net-curl:58: curl_easy_setopt(curl, CURLOPT_FILETIME, 1L);
azawawi/perl6-net-curl:60: curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, throw_away);
azawawi/perl6-net-curl:61: curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
azawawi/perl6-net-curl:63: /* curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); */
azawawi/perl6-net-curl:65: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:67: if(CURLE_OK == res) {
azawawi/perl6-net-curl:68: /* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
azawawi/perl6-net-curl:69: res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
azawawi/perl6-net-curl:70: if((CURLE_OK == res) && filetime)
azawawi/perl6-net-curl:72: res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &filesize);
azawawi/perl6-net-curl:73: if((CURLE_OK == res) && (filesize>0))
azawawi/perl6-net-curl:77: fprintf(stderr, "curl told us %d\n", res);
azawawi/perl6-net-curl:81: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:84: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:30: * This functionality was introduced in libcurl 7.9.3.
azawawi/perl6-net-curl:42: CURL *curl;
azawawi/perl6-net-curl:43: CURLcode res;
azawawi/perl6-net-curl:53: curl = curl_easy_init();
azawawi/perl6-net-curl:54: if(curl) {
azawawi/perl6-net-curl:56: curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/");
azawawi/perl6-net-curl:57: curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
azawawi/perl6-net-curl:58: /* If you intend to use this on windows with a libcurl DLL, you must use
azawawi/perl6-net-curl:59: CURLOPT_WRITEFUNCTION as well */
azawawi/perl6-net-curl:60: curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
azawawi/perl6-net-curl:61: curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile);
azawawi/perl6-net-curl:62: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:64: if(res != CURLE_OK)
azawawi/perl6-net-curl:65: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:66: curl_easy_strerror(res));
azawawi/perl6-net-curl:69: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:25: #include <curl/curl.h>
azawawi/perl6-net-curl:55: CURL *curl;
azawawi/perl6-net-curl:56: CURLcode res;
azawawi/perl6-net-curl:62: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:64: curl = curl_easy_init();
azawawi/perl6-net-curl:65: if(curl) {
azawawi/perl6-net-curl:71: curl_easy_setopt(curl, CURLOPT_URL,
azawawi/perl6-net-curl:74: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
azawawi/perl6-net-curl:76: curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
azawawi/perl6-net-curl:79: curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
azawawi/perl6-net-curl:82: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:84: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:87: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:89: if(CURLE_OK != res) {
azawawi/perl6-net-curl:91: fprintf(stderr, "curl told us %d\n", res);
azawawi/perl6-net-curl:98: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:25: #include <curl/curl.h>
azawawi/perl6-net-curl:48: /* NOTE: if you want this example to work on Windows with libcurl as a
azawawi/perl6-net-curl:49: DLL, you MUST also provide a read callback with CURLOPT_READFUNCTION.
azawawi/perl6-net-curl:54: curl_off_t nread;
azawawi/perl6-net-curl:60: nread = (curl_off_t)retcode;
azawawi/perl6-net-curl:62: fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
azawawi/perl6-net-curl:69: CURL *curl;
azawawi/perl6-net-curl:70: CURLcode res;
azawawi/perl6-net-curl:73: curl_off_t fsize;
azawawi/perl6-net-curl:75: struct curl_slist *headerlist=NULL;
azawawi/perl6-net-curl:84: fsize = (curl_off_t)file_info.st_size;
azawawi/perl6-net-curl:86: printf("Local file size: %" CURL_FORMAT_CURL_OFF_T " bytes.\n", fsize);
azawawi/perl6-net-curl:92: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:94: /* get a curl handle */
azawawi/perl6-net-curl:95: curl = curl_easy_init();
azawawi/perl6-net-curl:96: if(curl) {
azawawi/perl6-net-curl:97: /* build a list of commands to pass to libcurl */
azawawi/perl6-net-curl:98: headerlist = curl_slist_append(headerlist, buf_1);
azawawi/perl6-net-curl:99: headerlist = curl_slist_append(headerlist, buf_2);
azawawi/perl6-net-curl:102: curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
azawawi/perl6-net-curl:105: curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
azawawi/perl6-net-curl:108: curl_easy_setopt(curl,CURLOPT_URL, REMOTE_URL);
azawawi/perl6-net-curl:111: curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
azawawi/perl6-net-curl:114: curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
azawawi/perl6-net-curl:118: curl_off_t. If you use CURLOPT_INFILESIZE (without _LARGE) you must
azawawi/perl6-net-curl:120: curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
azawawi/perl6-net-curl:121: (curl_off_t)fsize);
azawawi/perl6-net-curl:124: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:126: if(res != CURLE_OK)
azawawi/perl6-net-curl:127: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:128: curl_easy_strerror(res));
azawawi/perl6-net-curl:131: curl_slist_free_all (headerlist);
azawawi/perl6-net-curl:134: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:138: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:26: * -lcurl -lmsvcr70
azawawi/perl6-net-curl:34: #include <curl/curl.h>
azawawi/perl6-net-curl:75: return CURL_READFUNC_ABORT;
azawawi/perl6-net-curl:83: int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
azawawi/perl6-net-curl:88: CURLcode r = CURLE_GOT_NOTHING;
azawawi/perl6-net-curl:97: curl_easy_setopt(curlhandle, CURLOPT_UPLOAD, 1L);
azawawi/perl6-net-curl:99: curl_easy_setopt(curlhandle, CURLOPT_URL, remotepath);
azawawi/perl6-net-curl:102: curl_easy_setopt(curlhandle, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout);
azawawi/perl6-net-curl:104: curl_easy_setopt(curlhandle, CURLOPT_HEADERFUNCTION, getcontentlengthfunc);
azawawi/perl6-net-curl:105: curl_easy_setopt(curlhandle, CURLOPT_HEADERDATA, &uploaded_len);
azawawi/perl6-net-curl:107: curl_easy_setopt(curlhandle, CURLOPT_WRITEFUNCTION, discardfunc);
azawawi/perl6-net-curl:109: curl_easy_setopt(curlhandle, CURLOPT_READFUNCTION, readfunc);
azawawi/perl6-net-curl:110: curl_easy_setopt(curlhandle, CURLOPT_READDATA, f);
azawawi/perl6-net-curl:112: curl_easy_setopt(curlhandle, CURLOPT_FTPPORT, "-"); /* disable passive mode */
azawawi/perl6-net-curl:113: curl_easy_setopt(curlhandle, CURLOPT_FTP_CREATE_MISSING_DIRS, 1L);
azawawi/perl6-net-curl:115: curl_easy_setopt(curlhandle, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:117: for (c = 0; (r != CURLE_OK) && (c < tries); c++) {
azawawi/perl6-net-curl:123: * With NOBODY and NOHEADER, libcurl will issue a SIZE
azawawi/perl6-net-curl:130: curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 1L);
azawawi/perl6-net-curl:131: curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L);
azawawi/perl6-net-curl:133: r = curl_easy_perform(curlhandle);
azawawi/perl6-net-curl:134: if (r != CURLE_OK)
azawawi/perl6-net-curl:137: curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 0L);
azawawi/perl6-net-curl:138: curl_easy_setopt(curlhandle, CURLOPT_HEADER, 0L);
azawawi/perl6-net-curl:142: curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L);
azawawi/perl6-net-curl:145: curl_easy_setopt(curlhandle, CURLOPT_APPEND, 0L);
azawawi/perl6-net-curl:148: r = curl_easy_perform(curlhandle);
azawawi/perl6-net-curl:153: if (r == CURLE_OK)
azawawi/perl6-net-curl:156: fprintf(stderr, "%s\n", curl_easy_strerror(r));
azawawi/perl6-net-curl:163: CURL *curlhandle = NULL;
azawawi/perl6-net-curl:165: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:166: curlhandle = curl_easy_init();
azawawi/perl6-net-curl:168: upload(curlhandle, "ftp://user:pass@example.com/path/file", "C:\\file", 0, 3);
azawawi/perl6-net-curl:170: curl_easy_cleanup(curlhandle);
azawawi/perl6-net-curl:171: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:30: #include <curl/curl.h>
azawawi/perl6-net-curl:61: CURL *curl_handle;
azawawi/perl6-net-curl:68: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:70: /* init the curl session */
azawawi/perl6-net-curl:71: curl_handle = curl_easy_init();
azawawi/perl6-net-curl:74: curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.example.com/");
azawawi/perl6-net-curl:77: curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
azawawi/perl6-net-curl:80: curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
azawawi/perl6-net-curl:84: curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
azawawi/perl6-net-curl:87: curl_easy_perform(curl_handle);
azawawi/perl6-net-curl:89: /* cleanup curl stuff */
azawawi/perl6-net-curl:90: curl_easy_cleanup(curl_handle);
azawawi/perl6-net-curl:108: /* we're done with libcurl, so clean it up */
azawawi/perl6-net-curl:109: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:29: This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
azawawi/perl6-net-curl:36: curl_multi "hiper" API.
azawawi/perl6-net-curl:61: #include <curl/curl.h>
azawawi/perl6-net-curl:65: #define SHOW_VERBOSE 0 /* Set to non-zero for libcurl messages */
azawawi/perl6-net-curl:72: CURLM *multi;
azawawi/perl6-net-curl:81: CURL *easy;
azawawi/perl6-net-curl:84: char error[CURL_ERROR_SIZE];
azawawi/perl6-net-curl:90: curl_socket_t sockfd;
azawawi/perl6-net-curl:91: CURL *easy;
azawawi/perl6-net-curl:102: /* Die if we get a bad CURLMcode somewhere */
azawawi/perl6-net-curl:103: static void mcode_or_die(const char *where, CURLMcode code) {
azawawi/perl6-net-curl:104: if ( CURLM_OK != code ) {
azawawi/perl6-net-curl:107: case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
azawawi/perl6-net-curl:108: case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
azawawi/perl6-net-curl:109: case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
azawawi/perl6-net-curl:110: case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
azawawi/perl6-net-curl:111: case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
azawawi/perl6-net-curl:112: case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET"; break;
azawawi/perl6-net-curl:113: case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
azawawi/perl6-net-curl:114: case CURLM_LAST: s="CURLM_LAST"; break;
azawawi/perl6-net-curl:115: default: s="CURLM_unknown";
azawawi/perl6-net-curl:128: CURLMsg *msg;
azawawi/perl6-net-curl:131: CURL *easy;
azawawi/perl6-net-curl:132: CURLcode res;
azawawi/perl6-net-curl:135: while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
azawawi/perl6-net-curl:136: if (msg->msg == CURLMSG_DONE) {
azawawi/perl6-net-curl:139: curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
azawawi/perl6-net-curl:140: curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
azawawi/perl6-net-curl:142: curl_multi_remove_handle(g->multi, easy);
azawawi/perl6-net-curl:144: curl_easy_cleanup(easy);
azawawi/perl6-net-curl:156: CURLMcode rc;
azawawi/perl6-net-curl:158: rc = curl_multi_socket_action(g->multi,
azawawi/perl6-net-curl:159: CURL_SOCKET_TIMEOUT, 0, &g->still_running);
azawawi/perl6-net-curl:160: mcode_or_die("timer_cb: curl_multi_socket_action", rc);
azawawi/perl6-net-curl:167: /* Update the event timer after curl_multi library calls */
azawawi/perl6-net-curl:168: static int update_timeout_cb(CURLM *multi, long timeout_ms, void *userp)
azawawi/perl6-net-curl:189: CURLMcode rc;
azawawi/perl6-net-curl:193: (condition & G_IO_IN ? CURL_CSELECT_IN : 0) |
azawawi/perl6-net-curl:194: (condition & G_IO_OUT ? CURL_CSELECT_OUT : 0);
azawawi/perl6-net-curl:196: rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running);
azawawi/perl6-net-curl:197: mcode_or_die("event_cb: curl_multi_socket_action", rc);
azawawi/perl6-net-curl:222: static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
azawawi/perl6-net-curl:225: (act&CURL_POLL_IN?G_IO_IN:0)|(act&CURL_POLL_OUT?G_IO_OUT:0);
azawawi/perl6-net-curl:238: static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
azawawi/perl6-net-curl:245: curl_multi_assign(g->multi, s, fdp);
azawawi/perl6-net-curl:250: /* CURLMOPT_SOCKETFUNCTION */
azawawi/perl6-net-curl:251: static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
azawawi/perl6-net-curl:258: if (what == CURL_POLL_REMOVE) {
azawawi/perl6-net-curl:264: what&CURL_POLL_IN?"READ":"",
azawawi/perl6-net-curl:265: what&CURL_POLL_OUT?"WRITE":"" );
azawawi/perl6-net-curl:279: /* CURLOPT_WRITEFUNCTION */
azawawi/perl6-net-curl:291: /* CURLOPT_PROGRESSFUNCTION */
azawawi/perl6-net-curl:301: /* Create a new easy handle, and add it to the global curl_multi */
azawawi/perl6-net-curl:305: CURLMcode rc;
azawawi/perl6-net-curl:311: conn->easy = curl_easy_init();
azawawi/perl6-net-curl:313: MSG_OUT("curl_easy_init() failed, exiting!\n");
azawawi/perl6-net-curl:318: curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
azawawi/perl6-net-curl:319: curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
azawawi/perl6-net-curl:320: curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
azawawi/perl6-net-curl:321: curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, (long)SHOW_VERBOSE);
azawawi/perl6-net-curl:322: curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
azawawi/perl6-net-curl:323: curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
azawawi/perl6-net-curl:324: curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, SHOW_PROGRESS?0L:1L);
azawawi/perl6-net-curl:325: curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
azawawi/perl6-net-curl:326: curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
azawawi/perl6-net-curl:327: curl_easy_setopt(conn->easy, CURLOPT_FOLLOWLOCATION, 1L);
azawawi/perl6-net-curl:328: curl_easy_setopt(conn->easy, CURLOPT_CONNECTTIMEOUT, 30L);
azawawi/perl6-net-curl:329: curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 1L);
azawawi/perl6-net-curl:330: curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 30L);
azawawi/perl6-net-curl:333: rc =curl_multi_add_handle(g->multi, conn->easy);
azawawi/perl6-net-curl:334: mcode_or_die("new_conn: curl_multi_add_handle", rc);
azawawi/perl6-net-curl:430: CURLMcode rc;
azawawi/perl6-net-curl:440: g->multi = curl_multi_init();
azawawi/perl6-net-curl:441: curl_multi_setopt(g->multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
azawawi/perl6-net-curl:442: curl_multi_setopt(g->multi, CURLMOPT_SOCKETDATA, g);
azawawi/perl6-net-curl:443: curl_multi_setopt(g->multi, CURLMOPT_TIMERFUNCTION, update_timeout_cb);
azawawi/perl6-net-curl:444: curl_multi_setopt(g->multi, CURLMOPT_TIMERDATA, g);
azawawi/perl6-net-curl:446: /* we don't call any curl_multi_socket*() function yet as we have no handles
azawawi/perl6-net-curl:450: curl_multi_cleanup(g->multi);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:29: This is an adaptation of libcurl's "hipev.c" and libevent's "event-test.c"
azawawi/perl6-net-curl:36: curl_multi "hiper" API.
azawawi/perl6-net-curl:63: #include <curl/curl.h>
azawawi/perl6-net-curl:77: CURLM *multi;
azawawi/perl6-net-curl:85: CURL *easy;
azawawi/perl6-net-curl:88: char error[CURL_ERROR_SIZE];
azawawi/perl6-net-curl:94: curl_socket_t sockfd;
azawawi/perl6-net-curl:95: CURL *easy;
azawawi/perl6-net-curl:105: /* Update the event timer after curl_multi library calls */
azawawi/perl6-net-curl:106: static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
azawawi/perl6-net-curl:118: /* Die if we get a bad CURLMcode somewhere */
azawawi/perl6-net-curl:119: static void mcode_or_die(const char *where, CURLMcode code)
azawawi/perl6-net-curl:121: if ( CURLM_OK != code ) {
azawawi/perl6-net-curl:124: case CURLM_CALL_MULTI_PERFORM: s="CURLM_CALL_MULTI_PERFORM"; break;
azawawi/perl6-net-curl:125: case CURLM_BAD_HANDLE: s="CURLM_BAD_HANDLE"; break;
azawawi/perl6-net-curl:126: case CURLM_BAD_EASY_HANDLE: s="CURLM_BAD_EASY_HANDLE"; break;
azawawi/perl6-net-curl:127: case CURLM_OUT_OF_MEMORY: s="CURLM_OUT_OF_MEMORY"; break;
azawawi/perl6-net-curl:128: case CURLM_INTERNAL_ERROR: s="CURLM_INTERNAL_ERROR"; break;
azawawi/perl6-net-curl:129: case CURLM_UNKNOWN_OPTION: s="CURLM_UNKNOWN_OPTION"; break;
azawawi/perl6-net-curl:130: case CURLM_LAST: s="CURLM_LAST"; break;
azawawi/perl6-net-curl:131: default: s="CURLM_unknown";
azawawi/perl6-net-curl:133: case CURLM_BAD_SOCKET: s="CURLM_BAD_SOCKET";
azawawi/perl6-net-curl:149: CURLMsg *msg;
azawawi/perl6-net-curl:152: CURL *easy;
azawawi/perl6-net-curl:153: CURLcode res;
azawawi/perl6-net-curl:156: while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
azawawi/perl6-net-curl:157: if (msg->msg == CURLMSG_DONE) {
azawawi/perl6-net-curl:160: curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
azawawi/perl6-net-curl:161: curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
azawawi/perl6-net-curl:163: curl_multi_remove_handle(g->multi, easy);
azawawi/perl6-net-curl:165: curl_easy_cleanup(easy);
azawawi/perl6-net-curl:177: CURLMcode rc;
azawawi/perl6-net-curl:180: (kind & EV_READ ? CURL_CSELECT_IN : 0) |
azawawi/perl6-net-curl:181: (kind & EV_WRITE ? CURL_CSELECT_OUT : 0);
azawawi/perl6-net-curl:183: rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running);
azawawi/perl6-net-curl:184: mcode_or_die("event_cb: curl_multi_socket_action", rc);
azawawi/perl6-net-curl:201: CURLMcode rc;
azawawi/perl6-net-curl:205: rc = curl_multi_socket_action(g->multi,
azawawi/perl6-net-curl:206: CURL_SOCKET_TIMEOUT, 0, &g->still_running);
azawawi/perl6-net-curl:207: mcode_or_die("timer_cb: curl_multi_socket_action", rc);
azawawi/perl6-net-curl:226: static void setsock(SockInfo*f, curl_socket_t s, CURL*e, int act, GlobalInfo*g)
azawawi/perl6-net-curl:229: (act&CURL_POLL_IN?EV_READ:0)|(act&CURL_POLL_OUT?EV_WRITE:0)|EV_PERSIST;
azawawi/perl6-net-curl:244: static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g) {
azawawi/perl6-net-curl:249: curl_multi_assign(g->multi, s, fdp);
azawawi/perl6-net-curl:252: /* CURLMOPT_SOCKETFUNCTION */
azawawi/perl6-net-curl:253: static int sock_cb(CURL *e, curl_socket_t s, int what, void *cbp, void *sockp)
azawawi/perl6-net-curl:261: if (what == CURL_POLL_REMOVE) {
azawawi/perl6-net-curl:282: /* CURLOPT_WRITEFUNCTION */
azawawi/perl6-net-curl:293: /* CURLOPT_PROGRESSFUNCTION */
azawawi/perl6-net-curl:306: /* Create a new easy handle, and add it to the global curl_multi */
azawawi/perl6-net-curl:310: CURLMcode rc;
azawawi/perl6-net-curl:316: conn->easy = curl_easy_init();
azawawi/perl6-net-curl:318: fprintf(MSG_OUT, "curl_easy_init() failed, exiting!\n");
azawawi/perl6-net-curl:323: curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
azawawi/perl6-net-curl:324: curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
azawawi/perl6-net-curl:325: curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
azawawi/perl6-net-curl:326: curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:327: curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
azawawi/perl6-net-curl:328: curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
azawawi/perl6-net-curl:329: curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 0L);
azawawi/perl6-net-curl:330: curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
azawawi/perl6-net-curl:331: curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
azawawi/perl6-net-curl:334: rc = curl_multi_add_handle(g->multi, conn->easy);
azawawi/perl6-net-curl:335: mcode_or_die("new_conn: curl_multi_add_handle", rc);
azawawi/perl6-net-curl:366: curl_socket_t sockfd;
azawawi/perl6-net-curl:403: g.multi = curl_multi_init();
azawawi/perl6-net-curl:407: curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
azawawi/perl6-net-curl:408: curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
azawawi/perl6-net-curl:409: curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
azawawi/perl6-net-curl:410: curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
azawawi/perl6-net-curl:412: /* we don't call any curl_multi_socket*() function yet as we have no handles
azawawi/perl6-net-curl:416: curl_multi_cleanup(g.multi);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:33: #include <curl/curl.h>
azawawi/perl6-net-curl:56: CURL *curl;
azawawi/perl6-net-curl:64: curl = curl_easy_init();
azawawi/perl6-net-curl:74: curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
azawawi/perl6-net-curl:75: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
azawawi/perl6-net-curl:76: curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
azawawi/perl6-net-curl:77: curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
azawawi/perl6-net-curl:79: curl_easy_perform(curl);
azawawi/perl6-net-curl:81: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:27: * gcc -Wall -I/usr/local/include tidycurl.c -lcurl -ltidy -o tidycurl
azawawi/perl6-net-curl:34: #include <curl/curl.h>
azawawi/perl6-net-curl:36: /* curl write callback, to fill tidy's input buffer... */
azawawi/perl6-net-curl:80: CURL *curl;
azawawi/perl6-net-curl:81: char curl_errbuf[CURL_ERROR_SIZE];
azawawi/perl6-net-curl:87: curl = curl_easy_init();
azawawi/perl6-net-curl:88: curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
azawawi/perl6-net-curl:89: curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_errbuf);
azawawi/perl6-net-curl:90: curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
azawawi/perl6-net-curl:91: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:92: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_cb);
azawawi/perl6-net-curl:100: curl_easy_setopt(curl, CURLOPT_WRITEDATA, &docbuf);
azawawi/perl6-net-curl:101: err=curl_easy_perform(curl);
azawawi/perl6-net-curl:116: fprintf(stderr, "%s\n", curl_errbuf);
azawawi/perl6-net-curl:119: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:27: CURL *curl;
azawawi/perl6-net-curl:28: CURLcode res;
azawawi/perl6-net-curl:30: curl = curl_easy_init();
azawawi/perl6-net-curl:31: if(curl) {
azawawi/perl6-net-curl:32: struct curl_slist *chunk = NULL;
azawawi/perl6-net-curl:34: chunk = curl_slist_append(chunk, "Accept: moo");
azawawi/perl6-net-curl:35: chunk = curl_slist_append(chunk, "Another: yes");
azawawi/perl6-net-curl:38: curl_easy_setopt(curl, CURLOPT_URL, "localhost");
azawawi/perl6-net-curl:39: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:40: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:42: if(res != CURLE_OK)
azawawi/perl6-net-curl:43: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:44: curl_easy_strerror(res));
azawawi/perl6-net-curl:47: res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
azawawi/perl6-net-curl:48: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:50: if(res != CURLE_OK)
azawawi/perl6-net-curl:51: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:52: curl_easy_strerror(res));
azawawi/perl6-net-curl:55: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:58: curl_slist_free_all(chunk);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:27: #include <curl/curl.h>
azawawi/perl6-net-curl:42: curl_off_t nread;
azawawi/perl6-net-curl:49: nread = (curl_off_t)retcode;
azawawi/perl6-net-curl:51: fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
azawawi/perl6-net-curl:59: CURL *curl;
azawawi/perl6-net-curl:60: CURLcode res;
azawawi/perl6-net-curl:85: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:87: /* get a curl handle */
azawawi/perl6-net-curl:88: curl = curl_easy_init();
azawawi/perl6-net-curl:89: if(curl) {
azawawi/perl6-net-curl:91: curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
azawawi/perl6-net-curl:94: curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
azawawi/perl6-net-curl:97: curl_easy_setopt(curl, CURLOPT_PUT, 1L);
azawawi/perl6-net-curl:101: curl_easy_setopt(curl, CURLOPT_URL, url);
azawawi/perl6-net-curl:104: curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
azawawi/perl6-net-curl:107: to curl_off_t since we must be sure to use the correct data size */
azawawi/perl6-net-curl:108: curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
azawawi/perl6-net-curl:109: (curl_off_t)file_info.st_size);
azawawi/perl6-net-curl:112: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:114: if(res != CURLE_OK)
azawawi/perl6-net-curl:115: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:116: curl_easy_strerror(res));
azawawi/perl6-net-curl:119: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:123: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:27: CURL *curl;
azawawi/perl6-net-curl:28: CURLcode res = CURLE_OK;
azawawi/perl6-net-curl:30: curl = curl_easy_init();
azawawi/perl6-net-curl:31: if(curl) {
azawawi/perl6-net-curl:33: curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
azawawi/perl6-net-curl:36: curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/foobar");
azawawi/perl6-net-curl:38: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:41: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:31: /* curl stuff */
azawawi/perl6-net-curl:32: #include <curl/curl.h>
azawawi/perl6-net-curl:44: CURL *handles[HANDLECOUNT];
azawawi/perl6-net-curl:45: CURLM *multi_handle;
azawawi/perl6-net-curl:50: CURLMsg *msg; /* for picking up messages with the transfer status */
azawawi/perl6-net-curl:53: /* Allocate one CURL handle per transfer */
azawawi/perl6-net-curl:55: handles[i] = curl_easy_init();
azawawi/perl6-net-curl:58: curl_easy_setopt(handles[HTTP_HANDLE], CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:60: curl_easy_setopt(handles[FTP_HANDLE], CURLOPT_URL, "ftp://example.com");
azawawi/perl6-net-curl:61: curl_easy_setopt(handles[FTP_HANDLE], CURLOPT_UPLOAD, 1L);
azawawi/perl6-net-curl:64: multi_handle = curl_multi_init();
azawawi/perl6-net-curl:68: curl_multi_add_handle(multi_handle, handles[i]);
azawawi/perl6-net-curl:71: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:82: long curl_timeo = -1;
azawawi/perl6-net-curl:92: curl_multi_timeout(multi_handle, &curl_timeo);
azawawi/perl6-net-curl:93: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:94: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:98: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:102: curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:118: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:124: while ((msg = curl_multi_info_read(multi_handle, &msgs_left))) {
azawawi/perl6-net-curl:125: if (msg->msg == CURLMSG_DONE) {
azawawi/perl6-net-curl:146: curl_multi_cleanup(multi_handle);
azawawi/perl6-net-curl:148: /* Free the CURL handles */
azawawi/perl6-net-curl:150: curl_easy_cleanup(handles[i]);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:31: /* curl stuff */
azawawi/perl6-net-curl:32: #include <curl/curl.h>
azawawi/perl6-net-curl:87: int my_trace(CURL *handle, curl_infotype type,
azawawi/perl6-net-curl:97: case CURLINFO_TEXT:
azawawi/perl6-net-curl:102: case CURLINFO_HEADER_OUT:
azawawi/perl6-net-curl:105: case CURLINFO_DATA_OUT:
azawawi/perl6-net-curl:108: case CURLINFO_HEADER_IN:
azawawi/perl6-net-curl:111: case CURLINFO_DATA_IN:
azawawi/perl6-net-curl:125: CURL *http_handle;
azawawi/perl6-net-curl:126: CURLM *multi_handle;
azawawi/perl6-net-curl:130: http_handle = curl_easy_init();
azawawi/perl6-net-curl:133: curl_easy_setopt(http_handle, CURLOPT_URL, "http://www.example.com/");
azawawi/perl6-net-curl:135: curl_easy_setopt(http_handle, CURLOPT_DEBUGFUNCTION, my_trace);
azawawi/perl6-net-curl:136: curl_easy_setopt(http_handle, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:139: multi_handle = curl_multi_init();
azawawi/perl6-net-curl:142: curl_multi_add_handle(multi_handle, http_handle);
azawawi/perl6-net-curl:145: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:156: long curl_timeo = -1;
azawawi/perl6-net-curl:166: curl_multi_timeout(multi_handle, &curl_timeo);
azawawi/perl6-net-curl:167: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:168: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:172: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:176: curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:195: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:200: curl_multi_cleanup(multi_handle);
azawawi/perl6-net-curl:202: curl_easy_cleanup(http_handle);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:29: /* curl stuff */
azawawi/perl6-net-curl:30: #include <curl/curl.h>
azawawi/perl6-net-curl:37: CURL *http_handle;
azawawi/perl6-net-curl:38: CURL *http_handle2;
azawawi/perl6-net-curl:39: CURLM *multi_handle;
azawawi/perl6-net-curl:43: http_handle = curl_easy_init();
azawawi/perl6-net-curl:44: http_handle2 = curl_easy_init();
azawawi/perl6-net-curl:47: curl_easy_setopt(http_handle, CURLOPT_URL, "http://www.example.com/");
azawawi/perl6-net-curl:50: curl_easy_setopt(http_handle2, CURLOPT_URL, "http://localhost/");
azawawi/perl6-net-curl:53: multi_handle = curl_multi_init();
azawawi/perl6-net-curl:56: curl_multi_add_handle(multi_handle, http_handle);
azawawi/perl6-net-curl:57: curl_multi_add_handle(multi_handle, http_handle2);
azawawi/perl6-net-curl:60: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:71: long curl_timeo = -1;
azawawi/perl6-net-curl:81: curl_multi_timeout(multi_handle, &curl_timeo);
azawawi/perl6-net-curl:82: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:83: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:87: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:91: curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:108: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:113: curl_multi_cleanup(multi_handle);
azawawi/perl6-net-curl:115: curl_easy_cleanup(http_handle);
azawawi/perl6-net-curl:116: curl_easy_cleanup(http_handle2);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:28: #include <curl/curl.h>
azawawi/perl6-net-curl:32: CURL *curl;
azawawi/perl6-net-curl:34: CURLM *multi_handle;
azawawi/perl6-net-curl:37: struct curl_httppost *formpost=NULL;
azawawi/perl6-net-curl:38: struct curl_httppost *lastptr=NULL;
azawawi/perl6-net-curl:39: struct curl_slist *headerlist=NULL;
azawawi/perl6-net-curl:42: /* Fill in the file upload field. This makes libcurl load data from
azawawi/perl6-net-curl:43: the given file name when curl_easy_perform() is called. */
azawawi/perl6-net-curl:44: curl_formadd(&formpost,
azawawi/perl6-net-curl:46: CURLFORM_COPYNAME, "sendfile",
azawawi/perl6-net-curl:47: CURLFORM_FILE, "postit2.c",
azawawi/perl6-net-curl:48: CURLFORM_END);
azawawi/perl6-net-curl:51: curl_formadd(&formpost,
azawawi/perl6-net-curl:53: CURLFORM_COPYNAME, "filename",
azawawi/perl6-net-curl:54: CURLFORM_COPYCONTENTS, "postit2.c",
azawawi/perl6-net-curl:55: CURLFORM_END);
azawawi/perl6-net-curl:58: curl_formadd(&formpost,
azawawi/perl6-net-curl:60: CURLFORM_COPYNAME, "submit",
azawawi/perl6-net-curl:61: CURLFORM_COPYCONTENTS, "send",
azawawi/perl6-net-curl:62: CURLFORM_END);
azawawi/perl6-net-curl:64: curl = curl_easy_init();
azawawi/perl6-net-curl:65: multi_handle = curl_multi_init();
azawawi/perl6-net-curl:69: headerlist = curl_slist_append(headerlist, buf);
azawawi/perl6-net-curl:70: if(curl && multi_handle) {
azawawi/perl6-net-curl:73: curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.com/upload.cgi");
azawawi/perl6-net-curl:74: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:76: curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
azawawi/perl6-net-curl:77: curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
azawawi/perl6-net-curl:79: curl_multi_add_handle(multi_handle, curl);
azawawi/perl6-net-curl:81: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:92: long curl_timeo = -1;
azawawi/perl6-net-curl:102: curl_multi_timeout(multi_handle, &curl_timeo);
azawawi/perl6-net-curl:103: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:104: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:108: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:112: curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:130: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:136: curl_multi_cleanup(multi_handle);
azawawi/perl6-net-curl:139: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:142: curl_formfree(formpost);
azawawi/perl6-net-curl:145: curl_slist_free_all (headerlist);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:31: /* curl stuff */
azawawi/perl6-net-curl:32: #include <curl/curl.h>
azawawi/perl6-net-curl:39: CURL *http_handle;
azawawi/perl6-net-curl:40: CURLM *multi_handle;
azawawi/perl6-net-curl:44: http_handle = curl_easy_init();
azawawi/perl6-net-curl:47: curl_easy_setopt(http_handle, CURLOPT_URL, "http://www.example.com/");
azawawi/perl6-net-curl:50: multi_handle = curl_multi_init();
azawawi/perl6-net-curl:53: curl_multi_add_handle(multi_handle, http_handle);
azawawi/perl6-net-curl:56: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:67: long curl_timeo = -1;
azawawi/perl6-net-curl:77: curl_multi_timeout(multi_handle, &curl_timeo);
azawawi/perl6-net-curl:78: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:79: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:83: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:87: curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:106: curl_multi_perform(multi_handle, &still_running);
azawawi/perl6-net-curl:111: curl_multi_cleanup(multi_handle);
azawawi/perl6-net-curl:113: curl_easy_cleanup(http_handle);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:27: #include <curl/curl.h>
azawawi/perl6-net-curl:41: "http://curl.haxx.se/",
azawawi/perl6-net-curl:49: CURL *curl;
azawawi/perl6-net-curl:51: curl = curl_easy_init();
azawawi/perl6-net-curl:52: curl_easy_setopt(curl, CURLOPT_URL, url);
azawawi/perl6-net-curl:53: curl_easy_perform(curl); /* ignores error */
azawawi/perl6-net-curl:54: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:72: /* Must initialize libcurl before any threads are started */
azawawi/perl6-net-curl:73: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: * libcurl built to use OpenSSL.
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:28: CURL *curl;
azawawi/perl6-net-curl:29: CURLcode res;
azawawi/perl6-net-curl:31: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:33: curl = curl_easy_init();
azawawi/perl6-net-curl:34: if(curl) {
azawawi/perl6-net-curl:35: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:36: curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
azawawi/perl6-net-curl:39: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
azawawi/perl6-net-curl:42: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:44: if(res != CURLE_OK)
azawawi/perl6-net-curl:45: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:46: curl_easy_strerror(res));
azawawi/perl6-net-curl:50: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/docs/");
azawawi/perl6-net-curl:53: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:55: if(res != CURLE_OK)
azawawi/perl6-net-curl:56: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:57: curl_easy_strerror(res));
azawawi/perl6-net-curl:60: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:27: CURL *curl;
azawawi/perl6-net-curl:28: CURLcode res;
azawawi/perl6-net-curl:30: curl = curl_easy_init();
azawawi/perl6-net-curl:31: if(curl) {
azawawi/perl6-net-curl:33: curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
azawawi/perl6-net-curl:36: curl_easy_setopt(curl, CURLOPT_URL, "pop3s://user@pop.example.com/1");
azawawi/perl6-net-curl:46: * default bundle, then the CURLOPT_CAPATH option might come handy for
azawawi/perl6-net-curl:49: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
azawawi/perl6-net-curl:56: * subjectAltName) fields, libcurl will refuse to connect. You can skip
azawawi/perl6-net-curl:59: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
azawawi/perl6-net-curl:63: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:65: if(res != CURLE_OK)
azawawi/perl6-net-curl:66: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:67: curl_easy_strerror(res));
azawawi/perl6-net-curl:70: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:27: CURL *curl;
azawawi/perl6-net-curl:28: CURLcode res;
azawawi/perl6-net-curl:30: curl = curl_easy_init();
azawawi/perl6-net-curl:31: if(curl) {
azawawi/perl6-net-curl:33: curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
azawawi/perl6-net-curl:36: curl_easy_setopt(curl, CURLOPT_URL, "pop3s://user@pop.example.com/");
azawawi/perl6-net-curl:46: * default bundle, then the CURLOPT_CAPATH option might come handy for
azawawi/perl6-net-curl:49: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
azawawi/perl6-net-curl:56: * subjectAltName) fields, libcurl will refuse to connect. You can skip
azawawi/perl6-net-curl:59: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
azawawi/perl6-net-curl:63: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:65: if(res != CURLE_OK)
azawawi/perl6-net-curl:66: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:67: curl_easy_strerror(res));
azawawi/perl6-net-curl:70: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:27: #include <curl/curl.h>
azawawi/perl6-net-curl:55: CURL *curl;
azawawi/perl6-net-curl:56: CURLcode res;
azawawi/perl6-net-curl:64: res = curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:66: if(res != CURLE_OK) {
azawawi/perl6-net-curl:67: fprintf(stderr, "curl_global_init() failed: %s\n",
azawawi/perl6-net-curl:68: curl_easy_strerror(res));
azawawi/perl6-net-curl:72: /* get a curl handle */
azawawi/perl6-net-curl:73: curl = curl_easy_init();
azawawi/perl6-net-curl:74: if(curl) {
azawawi/perl6-net-curl:76: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/index.cgi");
azawawi/perl6-net-curl:79: curl_easy_setopt(curl, CURLOPT_POST, 1L);
azawawi/perl6-net-curl:82: curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
azawawi/perl6-net-curl:85: curl_easy_setopt(curl, CURLOPT_READDATA, &pooh);
azawawi/perl6-net-curl:88: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:94: CURLOPT_HTTPHEADER. With HTTP 1.0 or without chunked transfer, you must
azawawi/perl6-net-curl:99: struct curl_slist *chunk = NULL;
azawawi/perl6-net-curl:101: chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked");
azawawi/perl6-net-curl:102: res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
azawawi/perl6-net-curl:103: /* use curl_slist_free_all() after the *perform() call to free this
azawawi/perl6-net-curl:108: consider CURLOPT_POSTFIELDSIZE_LARGE */
azawawi/perl6-net-curl:109: curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
azawawi/perl6-net-curl:115: header. You can disable this header with CURLOPT_HTTPHEADER as usual.
azawawi/perl6-net-curl:117: since you can only set one list of headers with CURLOPT_HTTPHEADER. */
azawawi/perl6-net-curl:122: struct curl_slist *chunk = NULL;
azawawi/perl6-net-curl:124: chunk = curl_slist_append(chunk, "Expect:");
azawawi/perl6-net-curl:125: res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
azawawi/perl6-net-curl:126: /* use curl_slist_free_all() after the *perform() call to free this
azawawi/perl6-net-curl:132: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:134: if(res != CURLE_OK)
azawawi/perl6-net-curl:135: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:136: curl_easy_strerror(res));
azawawi/perl6-net-curl:139: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:141: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:39: #include <curl/curl.h>
azawawi/perl6-net-curl:43: CURL *curl;
azawawi/perl6-net-curl:44: CURLcode res;
azawawi/perl6-net-curl:46: struct curl_httppost *formpost=NULL;
azawawi/perl6-net-curl:47: struct curl_httppost *lastptr=NULL;
azawawi/perl6-net-curl:48: struct curl_slist *headerlist=NULL;
azawawi/perl6-net-curl:51: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:54: curl_formadd(&formpost,
azawawi/perl6-net-curl:56: CURLFORM_COPYNAME, "sendfile",
azawawi/perl6-net-curl:57: CURLFORM_FILE, "postit2.c",
azawawi/perl6-net-curl:58: CURLFORM_END);
azawawi/perl6-net-curl:61: curl_formadd(&formpost,
azawawi/perl6-net-curl:63: CURLFORM_COPYNAME, "filename",
azawawi/perl6-net-curl:64: CURLFORM_COPYCONTENTS, "postit2.c",
azawawi/perl6-net-curl:65: CURLFORM_END);
azawawi/perl6-net-curl:69: curl_formadd(&formpost,
azawawi/perl6-net-curl:71: CURLFORM_COPYNAME, "submit",
azawawi/perl6-net-curl:72: CURLFORM_COPYCONTENTS, "send",
azawawi/perl6-net-curl:73: CURLFORM_END);
azawawi/perl6-net-curl:75: curl = curl_easy_init();
azawawi/perl6-net-curl:78: headerlist = curl_slist_append(headerlist, buf);
azawawi/perl6-net-curl:79: if(curl) {
azawawi/perl6-net-curl:81: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/examplepost.cgi");
azawawi/perl6-net-curl:84: curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
azawawi/perl6-net-curl:85: curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
azawawi/perl6-net-curl:88: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:90: if(res != CURLE_OK)
azawawi/perl6-net-curl:91: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:92: curl_easy_strerror(res));
azawawi/perl6-net-curl:95: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:98: curl_formfree(formpost);
azawawi/perl6-net-curl:100: curl_slist_free_all (headerlist);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:23: #include <curl/curl.h>
azawawi/perl6-net-curl:30: CURL *curl;
azawawi/perl6-net-curl:38: CURL *curl = myp->curl;
azawawi/perl6-net-curl:41: curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &curtime);
azawawi/perl6-net-curl:61: CURL *curl;
azawawi/perl6-net-curl:62: CURLcode res=0;
azawawi/perl6-net-curl:65: curl = curl_easy_init();
azawawi/perl6-net-curl:66: if(curl) {
azawawi/perl6-net-curl:68: prog.curl = curl;
azawawi/perl6-net-curl:70: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
azawawi/perl6-net-curl:71: curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress);
azawawi/perl6-net-curl:73: curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &prog);
azawawi/perl6-net-curl:74: curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
azawawi/perl6-net-curl:75: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:78: fprintf(stderr, "%s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:81: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:55: #include <curl/curl.h>
azawawi/perl6-net-curl:60: #define my_curl_easy_setopt(A, B, C) \
azawawi/perl6-net-curl:61: if ((res = curl_easy_setopt((A), (B), (C))) != CURLE_OK) \
azawawi/perl6-net-curl:62: fprintf(stderr, "curl_easy_setopt(%s, %s, %s) failed: %d\n", \
azawawi/perl6-net-curl:65: #define my_curl_easy_perform(A) \
azawawi/perl6-net-curl:66: if ((res = curl_easy_perform((A))) != CURLE_OK) \
azawawi/perl6-net-curl:67: fprintf(stderr, "curl_easy_perform(%s) failed: %d\n", #A, res);
azawawi/perl6-net-curl:71: static void rtsp_options(CURL *curl, const char *uri)
azawawi/perl6-net-curl:73: CURLcode res = CURLE_OK;
azawawi/perl6-net-curl:75: my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri);
azawawi/perl6-net-curl:76: my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_OPTIONS);
azawawi/perl6-net-curl:77: my_curl_easy_perform(curl);
azawawi/perl6-net-curl:82: static void rtsp_describe(CURL *curl, const char *uri,
azawawi/perl6-net-curl:85: CURLcode res = CURLE_OK;
azawawi/perl6-net-curl:95: my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, sdp_fp);
azawawi/perl6-net-curl:96: my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_DESCRIBE);
azawawi/perl6-net-curl:97: my_curl_easy_perform(curl);
azawawi/perl6-net-curl:98: my_curl_easy_setopt(curl, CURLOPT_WRITEDATA, stdout);
azawawi/perl6-net-curl:105: static void rtsp_setup(CURL *curl, const char *uri, const char *transport)
azawawi/perl6-net-curl:107: CURLcode res = CURLE_OK;
azawawi/perl6-net-curl:110: my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri);
azawawi/perl6-net-curl:111: my_curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, transport);
azawawi/perl6-net-curl:112: my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_SETUP);
azawawi/perl6-net-curl:113: my_curl_easy_perform(curl);
azawawi/perl6-net-curl:118: static void rtsp_play(CURL *curl, const char *uri, const char *range)
azawawi/perl6-net-curl:120: CURLcode res = CURLE_OK;
azawawi/perl6-net-curl:122: my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri);
azawawi/perl6-net-curl:123: my_curl_easy_setopt(curl, CURLOPT_RANGE, range);
azawawi/perl6-net-curl:124: my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_PLAY);
azawawi/perl6-net-curl:125: my_curl_easy_perform(curl);
azawawi/perl6-net-curl:130: static void rtsp_teardown(CURL *curl, const char *uri)
azawawi/perl6-net-curl:132: CURLcode res = CURLE_OK;
azawawi/perl6-net-curl:134: my_curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, (long)CURL_RTSPREQ_TEARDOWN);
azawawi/perl6-net-curl:135: my_curl_easy_perform(curl);
azawawi/perl6-net-curl:185: printf(" Requires cURL V7.20 or greater\n\n");
azawawi/perl6-net-curl:209: CURLcode res;
azawawi/perl6-net-curl:215: /* initialize curl */
azawawi/perl6-net-curl:216: res = curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:217: if (res == CURLE_OK) {
azawawi/perl6-net-curl:218: curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
azawawi/perl6-net-curl:219: CURL *curl;
azawawi/perl6-net-curl:220: fprintf(stderr, " cURL V%s loaded\n", data->version);
azawawi/perl6-net-curl:222: /* initialize this curl session */
azawawi/perl6-net-curl:223: curl = curl_easy_init();
azawawi/perl6-net-curl:224: if (curl != NULL) {
azawawi/perl6-net-curl:225: my_curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
azawawi/perl6-net-curl:226: my_curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
azawawi/perl6-net-curl:227: my_curl_easy_setopt(curl, CURLOPT_WRITEHEADER, stdout);
azawawi/perl6-net-curl:228: my_curl_easy_setopt(curl, CURLOPT_URL, url);
azawawi/perl6-net-curl:232: rtsp_options(curl, uri);
azawawi/perl6-net-curl:235: rtsp_describe(curl, uri, sdp_filename);
azawawi/perl6-net-curl:242: rtsp_setup(curl, uri, transport);
azawawi/perl6-net-curl:246: rtsp_play(curl, uri, range);
azawawi/perl6-net-curl:252: rtsp_teardown(curl, uri);
azawawi/perl6-net-curl:255: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:256: curl = NULL;
azawawi/perl6-net-curl:258: fprintf(stderr, "curl_easy_init() failed\n");
azawawi/perl6-net-curl:260: curl_global_cleanup();
azawawi/perl6-net-curl:262: fprintf(stderr, "curl_global_init(%s) failed: %d\n",
azawawi/perl6-net-curl:263: "CURL_GLOBAL_ALL", res);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:25: using the built-in iconv functions in libcurl.
azawawi/perl6-net-curl:40: #include <curl/curl.h>
azawawi/perl6-net-curl:42: CURLcode my_conv_from_ascii_to_ebcdic(char *buffer, size_t length)
azawawi/perl6-net-curl:50: return(CURLE_OK);
azawawi/perl6-net-curl:52: return(CURLE_CONV_FAILED);
azawawi/perl6-net-curl:56: CURLcode my_conv_from_ebcdic_to_ascii(char *buffer, size_t length)
azawawi/perl6-net-curl:64: return(CURLE_OK);
azawawi/perl6-net-curl:66: return(CURLE_CONV_FAILED);
azawawi/perl6-net-curl:70: CURLcode my_conv_from_utf8_to_ebcdic(char *buffer, size_t length)
azawawi/perl6-net-curl:78: return(CURLE_OK);
azawawi/perl6-net-curl:80: return(CURLE_CONV_FAILED);
azawawi/perl6-net-curl:86: CURL *curl;
azawawi/perl6-net-curl:87: CURLcode res;
azawawi/perl6-net-curl:89: curl = curl_easy_init();
azawawi/perl6-net-curl:90: if(curl) {
azawawi/perl6-net-curl:91: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:94: curl_easy_setopt(curl, CURLOPT_CONV_FROM_NETWORK_FUNCTION,
azawawi/perl6-net-curl:96: curl_easy_setopt(curl, CURLOPT_CONV_TO_NETWORK_FUNCTION,
azawawi/perl6-net-curl:98: curl_easy_setopt(curl, CURLOPT_CONV_FROM_UTF8_FUNCTION,
azawawi/perl6-net-curl:101: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:104: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:22: /* An example of curl_easy_send() and curl_easy_recv() usage. */
azawawi/perl6-net-curl:26: #include <curl/curl.h>
azawawi/perl6-net-curl:29: static int wait_on_socket(curl_socket_t sockfd, int for_recv, long timeout_ms)
azawawi/perl6-net-curl:60: CURL *curl;
azawawi/perl6-net-curl:61: CURLcode res;
azawawi/perl6-net-curl:64: curl_socket_t sockfd; /* socket */
azawawi/perl6-net-curl:67: curl_off_t nread;
azawawi/perl6-net-curl:69: curl = curl_easy_init();
azawawi/perl6-net-curl:70: if(curl) {
azawawi/perl6-net-curl:71: curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:73: curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
azawawi/perl6-net-curl:74: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:76: if(CURLE_OK != res)
azawawi/perl6-net-curl:82: /* Extract the socket from the curl handle - we'll need it for waiting.
azawawi/perl6-net-curl:84: * curl_socket_t for sockets otherwise.
azawawi/perl6-net-curl:86: res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &sockextr);
azawawi/perl6-net-curl:88: if(CURLE_OK != res)
azawawi/perl6-net-curl:90: printf("Error: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:106: res = curl_easy_send(curl, request, strlen(request), &iolen);
azawawi/perl6-net-curl:108: if(CURLE_OK != res)
azawawi/perl6-net-curl:110: printf("Error: %s\n", curl_easy_strerror(res));
azawawi/perl6-net-curl:121: res = curl_easy_recv(curl, buf, 1024, &iolen);
azawawi/perl6-net-curl:123: if(CURLE_OK != res)
azawawi/perl6-net-curl:126: nread = (curl_off_t)iolen;
azawawi/perl6-net-curl:128: printf("Received %" CURL_FORMAT_CURL_OFF_T " bytes.\n", nread);
azawawi/perl6-net-curl:132: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:26: #include <curl/curl.h>
azawawi/perl6-net-curl:36: CURL *curl_handle;
azawawi/perl6-net-curl:42: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:44: /* init the curl session */
azawawi/perl6-net-curl:45: curl_handle = curl_easy_init();
azawawi/perl6-net-curl:48: curl_easy_setopt(curl_handle, CURLOPT_URL, "http://example.com");
azawawi/perl6-net-curl:51: curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L);
azawawi/perl6-net-curl:54: curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
azawawi/perl6-net-curl:59: curl_easy_cleanup(curl_handle);
azawawi/perl6-net-curl:64: curl_easy_cleanup(curl_handle);
azawawi/perl6-net-curl:69: curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, headerfile);
azawawi/perl6-net-curl:73: * stdout, you should consider using the CURLOPT_WRITEDATA option. */
azawawi/perl6-net-curl:76: curl_easy_perform(curl_handle);
azawawi/perl6-net-curl:81: /* cleanup curl stuff */
azawawi/perl6-net-curl:82: curl_easy_cleanup(curl_handle);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:25: #include <curl/curl.h>
azawawi/perl6-net-curl:58: CURL *curl;
azawawi/perl6-net-curl:59: CURLcode res;
azawawi/perl6-net-curl:65: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:67: curl = curl_easy_init();
azawawi/perl6-net-curl:68: if(curl) {
azawawi/perl6-net-curl:72: curl_easy_setopt(curl, CURLOPT_URL,
azawawi/perl6-net-curl:75: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
azawawi/perl6-net-curl:77: curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
azawawi/perl6-net-curl:83: curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_AGENT);
azawawi/perl6-net-curl:87: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:89: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:92: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:94: if(CURLE_OK != res) {
azawawi/perl6-net-curl:96: fprintf(stderr, "curl told us %d\n", res);
azawawi/perl6-net-curl:103: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:28: CURL *curl;
azawawi/perl6-net-curl:29: CURLcode res;
azawawi/perl6-net-curl:30: struct curl_slist *recipients = NULL;
azawawi/perl6-net-curl:38: curl = curl_easy_init();
azawawi/perl6-net-curl:39: if(curl) {
azawawi/perl6-net-curl:42: curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.net.");
azawawi/perl6-net-curl:45: * libcurl will sent the MAIL FROM command with no sender data. All
azawawi/perl6-net-curl:50: curl_easy_setopt(curl, CURLOPT_MAIL_FROM, from);
azawawi/perl6-net-curl:52: /* Note that the CURLOPT_MAIL_RCPT takes a list, not a char array. */
azawawi/perl6-net-curl:53: recipients = curl_slist_append(recipients, to);
azawawi/perl6-net-curl:54: curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
azawawi/perl6-net-curl:59: * CURLOPT_READFUNCTION option; or
azawawi/perl6-net-curl:64: curl_easy_setopt(curl, CURLOPT_READDATA, stdin);
azawawi/perl6-net-curl:67: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:69: if(res != CURLE_OK)
azawawi/perl6-net-curl:70: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:71: curl_easy_strerror(res));
azawawi/perl6-net-curl:74: curl_slist_free_all(recipients);
azawawi/perl6-net-curl:76: /* curl won't send the QUIT command until you call cleanup, so you should be
azawawi/perl6-net-curl:78: * CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT as required, and calling
azawawi/perl6-net-curl:79: * curl_easy_perform() again. It may not be a good idea to keep the
azawawi/perl6-net-curl:84: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:40: **** This example only works with libcurl 7.9.3 and later! ****
azawawi/perl6-net-curl:46: CURL *curl;
azawawi/perl6-net-curl:47: CURLcode res;
azawawi/perl6-net-curl:71: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:73: curl = curl_easy_init();
azawawi/perl6-net-curl:74: if(curl) {
azawawi/perl6-net-curl:76: curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
azawawi/perl6-net-curl:77: curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
azawawi/perl6-net-curl:83: if (curl_easy_setopt(curl, CURLOPT_SSLENGINE,pEngine) != CURLE_OK)
azawawi/perl6-net-curl:88: if (curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT,1L) != CURLE_OK)
azawawi/perl6-net-curl:91: a engine in a curl object... */
azawawi/perl6-net-curl:98: curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM");
azawawi/perl6-net-curl:101: curl_easy_setopt(curl,CURLOPT_SSLCERT,pCertFile);
azawawi/perl6-net-curl:106: curl_easy_setopt(curl,CURLOPT_KEYPASSWD,pPassphrase);
azawawi/perl6-net-curl:110: curl_easy_setopt(curl,CURLOPT_SSLKEYTYPE,pKeyType);
azawawi/perl6-net-curl:113: curl_easy_setopt(curl,CURLOPT_SSLKEY,pKeyName);
azawawi/perl6-net-curl:116: curl_easy_setopt(curl,CURLOPT_CAINFO,pCACertFile);
azawawi/perl6-net-curl:119: curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,1L);
azawawi/perl6-net-curl:122: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:124: if(res != CURLE_OK)
azawawi/perl6-net-curl:125: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:126: curl_easy_strerror(res));
azawawi/perl6-net-curl:131: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:134: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:26: * libcurl.
azawawi/perl6-net-curl:29: * gcc -ggdb `pkg-config --cflags --libs gtk+-2.0` -lcurl -lssl -lcrypto
azawawi/perl6-net-curl:39: #include <curl/curl.h>
azawawi/perl6-net-curl:67: CURL *curl;
azawawi/perl6-net-curl:68: CURLcode res;
azawawi/perl6-net-curl:84: curl = curl_easy_init();
azawawi/perl6-net-curl:85: if(curl)
azawawi/perl6-net-curl:92: curl_easy_setopt(curl, CURLOPT_URL, http);
azawawi/perl6-net-curl:95: curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
azawawi/perl6-net-curl:96: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_file);
azawawi/perl6-net-curl:101: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:106: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:180: /* Must initialize libcurl before any threads are started */
azawawi/perl6-net-curl:181: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:27: #include <curl/curl.h>
azawawi/perl6-net-curl:49: " Hello, this is CURL email SMTP\n",
azawawi/perl6-net-curl:95: CURL *curl;
azawawi/perl6-net-curl:96: CURLM *mcurl;
azawawi/perl6-net-curl:100: struct curl_slist* rcpt_list = NULL;
azawawi/perl6-net-curl:104: curl_global_init(CURL_GLOBAL_DEFAULT);
azawawi/perl6-net-curl:106: curl = curl_easy_init();
azawawi/perl6-net-curl:107: if(!curl)
azawawi/perl6-net-curl:110: mcurl = curl_multi_init();
azawawi/perl6-net-curl:111: if(!mcurl)
azawawi/perl6-net-curl:114: rcpt_list = curl_slist_append(rcpt_list, RECIPIENT);
azawawi/perl6-net-curl:116: rcpt_list = curl_slist_append(rcpt_list, "<others@example.com>");
azawawi/perl6-net-curl:119: curl_easy_setopt(curl, CURLOPT_URL, "smtp://" SMTPSERVER SMTPPORT);
azawawi/perl6-net-curl:120: curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME);
azawawi/perl6-net-curl:121: curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD);
azawawi/perl6-net-curl:122: curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
azawawi/perl6-net-curl:123: curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM);
azawawi/perl6-net-curl:124: curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list);
azawawi/perl6-net-curl:125: curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
azawawi/perl6-net-curl:126: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
azawawi/perl6-net-curl:127: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
azawawi/perl6-net-curl:128: curl_easy_setopt(curl, CURLOPT_READDATA, &pooh);
azawawi/perl6-net-curl:129: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:130: curl_easy_setopt(curl, CURLOPT_SSLVERSION, 0L);
azawawi/perl6-net-curl:131: curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
azawawi/perl6-net-curl:132: curl_multi_add_handle(mcurl, curl);
azawawi/perl6-net-curl:137: curl_multi_perform(mcurl, &still_running);
azawawi/perl6-net-curl:148: long curl_timeo = -1;
azawawi/perl6-net-curl:158: curl_multi_timeout(mcurl, &curl_timeo);
azawawi/perl6-net-curl:159: if(curl_timeo >= 0) {
azawawi/perl6-net-curl:160: timeout.tv_sec = curl_timeo / 1000;
azawawi/perl6-net-curl:164: timeout.tv_usec = (curl_timeo % 1000) * 1000;
azawawi/perl6-net-curl:168: curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd);
azawawi/perl6-net-curl:190: curl_multi_perform(mcurl, &still_running);
azawawi/perl6-net-curl:195: curl_slist_free_all(rcpt_list);
azawawi/perl6-net-curl:196: curl_multi_remove_handle(mcurl, curl);
azawawi/perl6-net-curl:197: curl_multi_cleanup(mcurl);
azawawi/perl6-net-curl:198: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:199: curl_global_cleanup();
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:24: #include <curl/curl.h>
azawawi/perl6-net-curl:26: /* This is a simple example showing how to send mail using libcurl's SMTP
azawawi/perl6-net-curl:77: CURL *curl;
azawawi/perl6-net-curl:78: CURLcode res;
azawawi/perl6-net-curl:79: struct curl_slist *recipients = NULL;
azawawi/perl6-net-curl:84: curl = curl_easy_init();
azawawi/perl6-net-curl:85: if (curl) {
azawawi/perl6-net-curl:90: curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587");
azawawi/perl6-net-curl:94: * of using CURLUSESSL_TRY here, because if TLS upgrade fails, the transfer
azawawi/perl6-net-curl:95: * will continue anyway - see the security discussion in the libcurl
azawawi/perl6-net-curl:97: curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
azawawi/perl6-net-curl:101: * CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST options to 0 (false).
azawawi/perl6-net-curl:102: * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
azawawi/perl6-net-curl:103: * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
azawawi/perl6-net-curl:108: * that are known to libcurl using CURLOPT_CAINFO and/or CURLOPT_CAPATH. See
azawawi/perl6-net-curl:111: curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
azawawi/perl6-net-curl:116: curl_easy_setopt(curl, CURLOPT_USERNAME, "user@example.net");
azawawi/perl6-net-curl:117: curl_easy_setopt(curl, CURLOPT_PASSWORD, "P@ssw0rd");
azawawi/perl6-net-curl:120: curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
azawawi/perl6-net-curl:124: recipients = curl_slist_append(recipients, TO);
azawawi/perl6-net-curl:125: recipients = curl_slist_append(recipients, CC);
azawawi/perl6-net-curl:126: curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
azawawi/perl6-net-curl:129: * could just use the CURLOPT_READDATA option to specify a FILE pointer to
azawawi/perl6-net-curl:132: curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
azawawi/perl6-net-curl:133: curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
azawawi/perl6-net-curl:136: * information within libcurl to see what is happening during the transfer.
azawawi/perl6-net-curl:138: curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:141: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:143: if(res != CURLE_OK)
azawawi/perl6-net-curl:144: fprintf(stderr, "curl_easy_perform() failed: %s\n",
azawawi/perl6-net-curl:145: curl_easy_strerror(res));
azawawi/perl6-net-curl:148: curl_slist_free_all(recipients);
azawawi/perl6-net-curl:149: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:25: * You can achieve the same result as synctime using curl, awk and date.
azawawi/perl6-net-curl:29: * # date -s "`curl -sI http://nist.time.gov/timezone.cgi?UTC/s/0 \
azawawi/perl6-net-curl:33: * $ curl -sI http://nist.time.gov/timezone.cgi?UTC/s/0 \
azawawi/perl6-net-curl:69: * Written by: Frank (contributed to libcurl)
azawawi/perl6-net-curl:89: #include <curl/curl.h>
azawawi/perl6-net-curl:123: size_t SyncTime_CURL_WriteOutput(void *ptr, size_t size, size_t nmemb,
azawawi/perl6-net-curl:130: size_t SyncTime_CURL_WriteHeader(void *ptr, size_t size, size_t nmemb,
azawawi/perl6-net-curl:180: void SyncTime_CURL_Init(CURL *curl, char *proxy_port,
azawawi/perl6-net-curl:184: curl_easy_setopt(curl, CURLOPT_PROXY, proxy_port);
azawawi/perl6-net-curl:187: curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, proxy_user_password);
azawawi/perl6-net-curl:190: curl_easy_setopt(curl, CURLOPT_USERAGENT,
azawawi/perl6-net-curl:192: curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, *SyncTime_CURL_WriteOutput);
azawawi/perl6-net-curl:193: curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, *SyncTime_CURL_WriteHeader);
azawawi/perl6-net-curl:196: int SyncTime_CURL_Fetch(CURL *curl, char *URL_Str, char *OutFileName,
azawawi/perl6-net-curl:200: CURLcode res;
azawawi/perl6-net-curl:204: curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
azawawi/perl6-net-curl:207: curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
azawawi/perl6-net-curl:210: curl_easy_setopt(curl, CURLOPT_URL, URL_Str);
azawawi/perl6-net-curl:211: res = curl_easy_perform(curl);
azawawi/perl6-net-curl:214: return res; /* (CURLE_OK) */
azawawi/perl6-net-curl:250: CURL *curl;
azawawi/perl6-net-curl:299: /* Init CURL before usage */
azawawi/perl6-net-curl:300: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:301: curl = curl_easy_init();
azawawi/perl6-net-curl:302: if (curl) {
azawawi/perl6-net-curl:303: SyncTime_CURL_Init(curl, conf->http_proxy, conf->proxy_user);
azawawi/perl6-net-curl:332: SyncTime_CURL_Fetch(curl, conf->timeserver, "index.htm",
azawawi/perl6-net-curl:363: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:36: #include <curl/curl.h>
azawawi/perl6-net-curl:115: CURL *curl;
azawawi/perl6-net-curl:117: curl = curl_easy_init();
azawawi/perl6-net-curl:118: curl_easy_setopt(curl, CURLOPT_URL, url);
azawawi/perl6-net-curl:121: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
azawawi/perl6-net-curl:122: curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
azawawi/perl6-net-curl:123: curl_easy_perform(curl); /* ignores error */
azawawi/perl6-net-curl:124: curl_easy_cleanup(curl);
azawawi/perl6-net-curl:137: /* Must initialize libcurl before any threads are started */
azawawi/perl6-net-curl:138: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:12: * are also available at http://curl.haxx.se/docs/copyright.html.
azawawi/perl6-net-curl:26: #include <curl/curl.h>
azawawi/perl6-net-curl:36: CURL *curl_handle;
azawawi/perl6-net-curl:45: curl_global_init(CURL_GLOBAL_ALL);
azawawi/perl6-net-curl:47: /* init the curl session */
azawawi/perl6-net-curl:48: curl_handle = curl_easy_init();
azawawi/perl6-net-curl:51: curl_easy_setopt(curl_handle, CURLOPT_URL, argv[1]);
azawawi/perl6-net-curl:54: curl_easy_setopt(curl_handle, CURLOPT_VERBOSE, 1L);
azawawi/perl6-net-curl:57: curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1L);
azawawi/perl6-net-curl:60: curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);
azawawi/perl6-net-curl:66: /* write the page body to this file handle. CURLOPT_FILE is also known as
azawawi/perl6-net-curl:67: CURLOPT_WRITEDATA*/
azawawi/perl6-net-curl:68: curl_easy_setopt(curl_handle, CURLOPT_FILE, pagefile);
azawawi/perl6-net-curl:71: curl_easy_perform(curl_handle);
azawawi/perl6-net-curl:77: /* cleanup curl stuff */
azawawi/perl6-net-curl:78: curl_easy_cleanup(curl_handle);
azawawi/perl6-net-curl:4: unit module Net::Curl;
azawawi/perl6-net-curl:8: constant LIB = "curl";
azawawi/perl6-net-curl:10: constant CURLINFO_STRING = 0x100000;
azawawi/perl6-net-curl:11: constant CURLOPT_URL is export = 10002;
azawawi/perl6-net-curl:12: constant CURLE_OK is export = 0;
azawawi/perl6-net-curl:13: constant CURLINFO_CONTENT_TYPE is export = CURLINFO_STRING + 18;
azawawi/perl6-net-curl:14: constant CURL_GLOBAL_DEFAULT is export = 0x3;
azawawi/perl6-net-curl:15: constant CURLOPT_FILE is export = 10001;
azawawi/perl6-net-curl:16: constant CURLOPT_WRITEDATA is export = 10001;
azawawi/perl6-net-curl:17: constant CURLOPT_PORT is export = 3;
azawawi/perl6-net-curl:18: constant CURLOPT_PROXY is export = 10004;
azawawi/perl6-net-curl:19: constant CURLOPT_USERPWD is export = 10005;
azawawi/perl6-net-curl:20: constant CURLOPT_PROXYUSERPWD is export = 10006;
azawawi/perl6-net-curl:21: constant CURLOPT_RANGE is export = 10007;
azawawi/perl6-net-curl:22: constant CURLOPT_INFILE is export = 10009;
azawawi/perl6-net-curl:23: constant CURLOPT_ERRORBUFFER is export = 10010;
azawawi/perl6-net-curl:24: constant CURLOPT_WRITEFUNCTION is export = 20011;
azawawi/perl6-net-curl:25: constant CURLOPT_READFUNCTION is export = 20012;
azawawi/perl6-net-curl:26: constant CURLOPT_TIMEOUT is export = 13;
azawawi/perl6-net-curl:27: constant CURLOPT_INFILESIZE is export = 14;
azawawi/perl6-net-curl:28: constant CURLOPT_POSTFIELDS is export = 10015;
azawawi/perl6-net-curl:29: constant CURLOPT_REFERER is export = 10016;
azawawi/perl6-net-curl:30: constant CURLOPT_FTPPORT is export = 10017;
azawawi/perl6-net-curl:31: constant CURLOPT_USERAGENT is export = 10018;
azawawi/perl6-net-curl:32: constant CURLOPT_LOW_SPEED_LIMIT is export = 19;
azawawi/perl6-net-curl:33: constant CURLOPT_LOW_SPEED_TIME is export = 20;
azawawi/perl6-net-curl:34: constant CURLOPT_RESUME_FROM is export = 21;
azawawi/perl6-net-curl:35: constant CURLOPT_COOKIE is export = 10022;
azawawi/perl6-net-curl:36: constant CURLOPT_HTTPHEADER is export = 10023;
azawawi/perl6-net-curl:37: constant CURLOPT_HTTPPOST is export = 10024;
azawawi/perl6-net-curl:38: constant CURLOPT_SSLCERT is export = 10025;
azawawi/perl6-net-curl:39: constant CURLOPT_KEYPASSWD is export = 10026;
azawawi/perl6-net-curl:40: constant CURLOPT_CRLF is export = 27;
azawawi/perl6-net-curl:41: constant CURLOPT_QUOTE is export = 10028;
azawawi/perl6-net-curl:42: constant CURLOPT_WRITEHEADER is export = 10029;
azawawi/perl6-net-curl:43: constant CURLOPT_COOKIEFILE is export = 10031;
azawawi/perl6-net-curl:44: constant CURLOPT_SSLVERSION is export = 32;
azawawi/perl6-net-curl:45: constant CURLOPT_TIMECONDITION is export = 33;
azawawi/perl6-net-curl:46: constant CURLOPT_TIMEVALUE is export = 34;
azawawi/perl6-net-curl:47: constant CURLOPT_CUSTOMREQUEST is export = 10036;
azawawi/perl6-net-curl:48: constant CURLOPT_STDERR is export = 10037;
azawawi/perl6-net-curl:49: constant CURLOPT_POSTQUOTE is export = 10039;
azawawi/perl6-net-curl:50: constant CURLOPT_WRITEINFO is export = 10040;
azawawi/perl6-net-curl:51: constant CURLOPT_VERBOSE is export = 41;
azawawi/perl6-net-curl:52: constant CURLOPT_HEADER is export = 42;
azawawi/perl6-net-curl:53: constant CURLOPT_NOPROGRESS is export = 43;
azawawi/perl6-net-curl:54: constant CURLOPT_NOBODY is export = 44;
azawawi/perl6-net-curl:55: constant CURLOPT_FAILONERROR is export = 45;
azawawi/perl6-net-curl:56: constant CURLOPT_UPLOAD is export = 46;
azawawi/perl6-net-curl:57: constant CURLOPT_POST is export = 47;
azawawi/perl6-net-curl:58: constant CURLOPT_DIRLISTONLY is export = 48;
azawawi/perl6-net-curl:59: constant CURLOPT_APPEND is export = 50;
azawawi/perl6-net-curl:60: constant CURLOPT_NETRC is export = 51;
azawawi/perl6-net-curl:61: constant CURLOPT_FOLLOWLOCATION is export = 52;
azawawi/perl6-net-curl:62: constant CURLOPT_TRANSFERTEXT is export = 53;
azawawi/perl6-net-curl:63: constant CURLOPT_PUT is export = 54;
azawawi/perl6-net-curl:64: constant CURLOPT_PROGRESSFUNCTION is export = 20056;
azawawi/perl6-net-curl:65: constant CURLOPT_PROGRESSDATA is export = 10057;
azawawi/perl6-net-curl:66: constant CURLOPT_AUTOREFERER is export = 58;
azawawi/perl6-net-curl:67: constant CURLOPT_PROXYPORT is export = 59;
azawawi/perl6-net-curl:68: constant CURLOPT_POSTFIELDSIZE is export = 60;
azawawi/perl6-net-curl:69: constant CURLOPT_HTTPPROXYTUNNEL is export = 61;
azawawi/perl6-net-curl:70: constant CURLOPT_INTERFACE is export = 10062;
azawawi/perl6-net-curl:71: constant CURLOPT_KRBLEVEL is export = 10063;
azawawi/perl6-net-curl:72: constant CURLOPT_SSL_VERIFYPEER is export = 64;
azawawi/perl6-net-curl:73: constant CURLOPT_SSL_VERIFYHOST is export = 81;
azawawi/perl6-net-curl:74: constant CURLOPT_CAINFO is export = 10065;
azawawi/perl6-net-curl:75: constant CURLOPT_MAXREDIRS is export = 68;
azawawi/perl6-net-curl:76: constant CURLOPT_FILETIME is export = 69;
azawawi/perl6-net-curl:77: constant CURLOPT_TELNETOPTIONS is export = 10070;
azawawi/perl6-net-curl:78: constant CURLOPT_MAXCONNECTS is export = 71;
azawawi/perl6-net-curl:79: constant CURLOPT_CLOSEPOLICY is export = 72;
azawawi/perl6-net-curl:80: constant CURLOPT_FRESH_CONNECT is export = 74;
azawawi/perl6-net-curl:81: constant CURLOPT_FORBID_REUSE is export = 75;
azawawi/perl6-net-curl:82: constant CURLOPT_RANDOM_FILE is export = 10076;
azawawi/perl6-net-curl:83: constant CURLOPT_EGDSOCKET is export = 10077;
azawawi/perl6-net-curl:84: constant CURLOPT_CONNECTTIMEOUT is export = 78;
azawawi/perl6-net-curl:85: constant CURLOPT_HEADERFUNCTION is export = 20079;
azawawi/perl6-net-curl:86: constant CURLOPT_HTTPGET is export = 80;
azawawi/perl6-net-curl:87: constant CURLOPT_COOKIEJAR is export = 10082;
azawawi/perl6-net-curl:88: constant CURLOPT_SSL_CIPHER_LIST is export = 10083;
azawawi/perl6-net-curl:89: constant CURLOPT_HTTP_VERSION is export = 84;
azawawi/perl6-net-curl:90: constant CURLOPT_FTP_USE_EPSV is export = 85;
azawawi/perl6-net-curl:91: constant CURLOPT_SSLCERTTYPE is export = 10086;
azawawi/perl6-net-curl:92: constant CURLOPT_SSLKEY is export = 10087;
azawawi/perl6-net-curl:93: constant CURLOPT_SSLKEYTYPE is export = 10088;
azawawi/perl6-net-curl:94: constant CURLOPT_SSLENGINE is export = 10089;
azawawi/perl6-net-curl:95: constant CURLOPT_SSLENGINE_DEFAULT is export = 90;
azawawi/perl6-net-curl:96: constant CURLOPT_DNS_USE_GLOBAL_CACHE is export = 91;
azawawi/perl6-net-curl:97: constant CURLOPT_DNS_CACHE_TIMEOUT is export = 92;
azawawi/perl6-net-curl:98: constant CURLOPT_PREQUOTE is export = 10093;
azawawi/perl6-net-curl:99: constant CURLOPT_DEBUGFUNCTION is export = 20094;
azawawi/perl6-net-curl:100: constant CURLOPT_DEBUGDATA is export = 10095;
azawawi/perl6-net-curl:101: constant CURLOPT_COOKIESESSION is export = 96;
azawawi/perl6-net-curl:102: constant CURLOPT_CAPATH is export = 10097;
azawawi/perl6-net-curl:103: constant CURLOPT_BUFFERSIZE is export = 98;
azawawi/perl6-net-curl:104: constant CURLOPT_NOSIGNAL is export = 99;
azawawi/perl6-net-curl:105: constant CURLOPT_SHARE is export = 10100;
azawawi/perl6-net-curl:106: constant CURLOPT_PROXYTYPE is export = 101;
azawawi/perl6-net-curl:107: constant CURLOPT_ACCEPT_ENCODING is export = 10102;
azawawi/perl6-net-curl:108: constant CURLOPT_PRIVATE is export = 10103;
azawawi/perl6-net-curl:109: constant CURLOPT_HTTP200ALIASES is export = 10104;
azawawi/perl6-net-curl:110: constant CURLOPT_UNRESTRICTED_AUTH is export = 105;
azawawi/perl6-net-curl:111: constant CURLOPT_FTP_USE_EPRT is export = 106;
azawawi/perl6-net-curl:112: constant CURLOPT_HTTPAUTH is export = 107;
azawawi/perl6-net-curl:113: constant CURLOPT_SSL_CTX_FUNCTION is export = 20108;
azawawi/perl6-net-curl:114: constant CURLOPT_SSL_CTX_DATA is export = 10109;
azawawi/perl6-net-curl:115: constant CURLOPT_PROXYAUTH is export = 111;
azawawi/perl6-net-curl:116: constant CURLOPT_FTP_RESPONSE_TIMEOUT is export = 112;
azawawi/perl6-net-curl:117: constant CURLOPT_IPRESOLVE is export = 113;
azawawi/perl6-net-curl:118: constant CURLOPT_MAXFILESIZE is export = 114;
azawawi/perl6-net-curl:119: constant CURLOPT_INFILESIZE_LARGE is export = 30115;
azawawi/perl6-net-curl:120: constant CURLOPT_RESUME_FROM_LARGE is export = 30116;
azawawi/perl6-net-curl:121: constant CURLOPT_MAXFILESIZE_LARGE is export = 30117;
azawawi/perl6-net-curl:122: constant CURLOPT_NETRC_FILE is export = 10118;
azawawi/perl6-net-curl:123: constant CURLOPT_USE_SSL is export = 119;
azawawi/perl6-net-curl:124: constant CURLOPT_POSTFIELDSIZE_LARGE is export = 30120;
azawawi/perl6-net-curl:125: constant CURLOPT_TCP_NODELAY is export = 121;
azawawi/perl6-net-curl:126: constant CURLOPT_FTPSSLAUTH is export = 129;
azawawi/perl6-net-curl:127: constant CURLOPT_IOCTLFUNCTION is export = 20130;
azawawi/perl6-net-curl:128: constant CURLOPT_IOCTLDATA is export = 10131;
azawawi/perl6-net-curl:129: constant CURLOPT_FTP_ACCOUNT is export = 10134;
azawawi/perl6-net-curl:130: constant CURLOPT_COOKIELIST is export = 10135;
azawawi/perl6-net-curl:131: constant CURLOPT_IGNORE_CONTENT_LENGTH is export= 136;
azawawi/perl6-net-curl:132: constant CURLOPT_FTP_SKIP_PASV_IP is export = 137;
azawawi/perl6-net-curl:133: constant CURLOPT_FTP_FILEMETHOD is export = 138;
azawawi/perl6-net-curl:134: constant CURLOPT_LOCALPORT is export = 139;
azawawi/perl6-net-curl:135: constant CURLOPT_LOCALPORTRANGE is export = 140;
azawawi/perl6-net-curl:136: constant CURLOPT_CONNECT_ONLY is export = 141;
azawawi/perl6-net-curl:137: constant CURLOPT_FTP_CREATE_MISSING_DIRS is export = 110;
azawawi/perl6-net-curl:138: constant CURLOPT_CONV_FROM_NETWORK_FUNCTION is export = 20142;
azawawi/perl6-net-curl:139: constant CURLOPT_CONV_TO_NETWORK_FUNCTION is export = 20143;
azawawi/perl6-net-curl:140: constant CURLOPT_CONV_FROM_UTF8_FUNCTION is export = 20144;
azawawi/perl6-net-curl:141: constant CURLOPT_MAX_SEND_SPEED_LARGE is export = 30145;
azawawi/perl6-net-curl:142: constant CURLOPT_MAX_RECV_SPEED_LARGE is export = 30146;
azawawi/perl6-net-curl:143: constant CURLOPT_FTP_ALTERNATIVE_TO_USER is export = 10147;
azawawi/perl6-net-curl:144: constant CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 is export = 10162;
azawawi/perl6-net-curl:145: constant CURLOPT_HTTP_TRANSFER_DECODING is export = 157;
azawawi/perl6-net-curl:146: constant CURLOPT_SOCKOPTFUNCTION is export = 20148;
azawawi/perl6-net-curl:147: constant CURLOPT_SOCKOPTDATA is export = 10149;
azawawi/perl6-net-curl:148: constant CURLOPT_SSL_SESSIONID_CACHE is export = 150;
azawawi/perl6-net-curl:149: constant CURLOPT_SSH_AUTH_TYPES is export = 151;
azawawi/perl6-net-curl:150: constant CURLOPT_SSH_PUBLIC_KEYFILE is export = 10152;
azawawi/perl6-net-curl:151: constant CURLOPT_SSH_PRIVATE_KEYFILE is export = 10153;
azawawi/perl6-net-curl:152: constant CURLOPT_FTP_SSL_CCC is export = 154;
azawawi/perl6-net-curl:153: constant CURLOPT_TIMEOUT_MS is export = 155;
azawawi/perl6-net-curl:154: constant CURLOPT_CONNECTTIMEOUT_MS is export = 156;
azawawi/perl6-net-curl:155: constant CURLOPT_HTTP_CONTENT_DECODING is export= 158;
azawawi/perl6-net-curl:156: constant CURLOPT_NEW_FILE_PERMS is export = 159;
azawawi/perl6-net-curl:157: constant CURLOPT_NEW_DIRECTORY_PERMS is export = 160;
azawawi/perl6-net-curl:158: constant CURLOPT_POSTREDIR is export = 161;
azawawi/perl6-net-curl:159: constant CURLOPT_OPENSOCKETFUNCTION is export = 20163;
azawawi/perl6-net-curl:160: constant CURLOPT_OPENSOCKETDATA is export = 10164;
azawawi/perl6-net-curl:161: constant CURLOPT_COPYPOSTFIELDS is export = 10165;
azawawi/perl6-net-curl:162: constant CURLOPT_PROXY_TRANSFER_MODE is export = 166;
azawawi/perl6-net-curl:163: constant CURLOPT_SEEKFUNCTION is export = 20167;
azawawi/perl6-net-curl:164: constant CURLOPT_SEEKDATA is export = 10168;
azawawi/perl6-net-curl:165: constant CURLOPT_CRLFILE is export = 10169;
azawawi/perl6-net-curl:166: constant CURLOPT_ISSUERCERT is export = 10170;
azawawi/perl6-net-curl:167: constant CURLOPT_ADDRESS_SCOPE is export = 171;
azawawi/perl6-net-curl:168: constant CURLOPT_CERTINFO is export = 172;
azawawi/perl6-net-curl:169: constant CURLOPT_USERNAME is export = 10173;
azawawi/perl6-net-curl:170: constant CURLOPT_PASSWORD is export = 10174;
azawawi/perl6-net-curl:171: constant CURLOPT_PROXYUSERNAME is export = 10175;
azawawi/perl6-net-curl:172: constant CURLOPT_PROXYPASSWORD is export = 10176;
azawawi/perl6-net-curl:173: constant CURLOPT_NOPROXY is export = 10177;
azawawi/perl6-net-curl:174: constant CURLOPT_TFTP_BLKSIZE is export = 178;
azawawi/perl6-net-curl:175: constant CURLOPT_SOCKS5_GSSAPI_SERVICE is export= 10179;
azawawi/perl6-net-curl:176: constant CURLOPT_SOCKS5_GSSAPI_NEC is export = 180;
azawawi/perl6-net-curl:177: constant CURLOPT_PROTOCOLS is export = 181;
azawawi/perl6-net-curl:178: constant CURLOPT_REDIR_PROTOCOLS is export = 182;
azawawi/perl6-net-curl:179: constant CURLOPT_SSH_KNOWNHOSTS is export = 10183;
azawawi/perl6-net-curl:180: constant CURLOPT_SSH_KEYFUNCTION is export = 20184;
azawawi/perl6-net-curl:181: constant CURLOPT_SSH_KEYDATA is export = 10185;
azawawi/perl6-net-curl:182: constant CURLOPT_MAIL_FROM is export = 10186;
azawawi/perl6-net-curl:183: constant CURLOPT_MAIL_RCPT is export = 10187;
azawawi/perl6-net-curl:184: constant CURLOPT_FTP_USE_PRET is export = 188;
azawawi/perl6-net-curl:185: constant CURLOPT_RTSP_REQUEST is export = 189;
azawawi/perl6-net-curl:186: constant CURLOPT_RTSP_SESSION_ID is export = 10190;
azawawi/perl6-net-curl:187: constant CURLOPT_RTSP_STREAM_URI is export = 10191;
azawawi/perl6-net-curl:188: constant CURLOPT_RTSP_TRANSPORT is export = 10192;
azawawi/perl6-net-curl:189: constant CURLOPT_RTSP_CLIENT_CSEQ is export = 193;
azawawi/perl6-net-curl:190: constant CURLOPT_RTSP_SERVER_CSEQ is export = 194;
azawawi/perl6-net-curl:191: constant CURLOPT_INTERLEAVEDATA is export = 10195;
azawawi/perl6-net-curl:192: constant CURLOPT_INTERLEAVEFUNCTION is export = 20196;
azawawi/perl6-net-curl:193: constant CURLOPT_WILDCARDMATCH is export = 197;
azawawi/perl6-net-curl:194: constant CURLOPT_CHUNK_BGN_FUNCTION is export = 20198;
azawawi/perl6-net-curl:195: constant CURLOPT_CHUNK_END_FUNCTION is export = 20199;
azawawi/perl6-net-curl:196: constant CURLOPT_FNMATCH_FUNCTION is export = 20200;
azawawi/perl6-net-curl:197: constant CURLOPT_CHUNK_DATA is export = 10201;
azawawi/perl6-net-curl:198: constant CURLOPT_FNMATCH_DATA is export = 10202;
azawawi/perl6-net-curl:199: constant CURLOPT_RESOLVE is export = 10203;
azawawi/perl6-net-curl:200: constant CURLOPT_TLSAUTH_USERNAME is export = 10204;
azawawi/perl6-net-curl:201: constant CURLOPT_TLSAUTH_PASSWORD is export = 10205;
azawawi/perl6-net-curl:202: constant CURLOPT_TLSAUTH_TYPE is export = 10206;
azawawi/perl6-net-curl:203: constant CURLOPT_TRANSFER_ENCODING is export = 207;
azawawi/perl6-net-curl:204: constant CURLOPT_CLOSESOCKETFUNCTION is export = 20208;
azawawi/perl6-net-curl:205: constant CURLOPT_CLOSESOCKETDATA is export = 10209;
azawawi/perl6-net-curl:206: constant CURLOPT_GSSAPI_DELEGATION is export = 210;
azawawi/perl6-net-curl:207: constant CURLOPT_DNS_SERVERS is export = 10211;
azawawi/perl6-net-curl:208: constant CURLOPT_ACCEPTTIMEOUT_MS is export = 212;
azawawi/perl6-net-curl:209: constant CURLOPT_TCP_KEEPALIVE is export = 213;
azawawi/perl6-net-curl:210: constant CURLOPT_TCP_KEEPIDLE is export = 214;
azawawi/perl6-net-curl:211: constant CURLOPT_TCP_KEEPINTVL is export = 215;
azawawi/perl6-net-curl:212: constant CURLOPT_SSL_OPTIONS is export = 216;
azawawi/perl6-net-curl:213: constant CURLOPT_MAIL_AUTH is export = 10217;
azawawi/perl6-net-curl:215: # Start a libcurl easy session
azawawi/perl6-net-curl:216: sub curl_easy_init
azawawi/perl6-net-curl:221: # End a libcurl easy session
azawawi/perl6-net-curl:222: sub curl_easy_cleanup(OpaquePointer)
azawawi/perl6-net-curl:226: sub _curl_easy_setopt(OpaquePointer, uint32, Str)
azawawi/perl6-net-curl:229: is symbol('curl_easy_setopt')
azawawi/perl6-net-curl:232: sub _curl_easy_setopt_int32(OpaquePointer, uint32, int32)
azawawi/perl6-net-curl:235: is symbol('curl_easy_setopt')
azawawi/perl6-net-curl:239: my sub _curl_easy_setopt_cb(OpaquePointer, uint32, &cb (Pointer $ptr, uint32 $size, uint32 $nmemb, OpaquePointer $stream --> uint32))
azawawi/perl6-net-curl:242: is symbol('curl_easy_setopt') { ... }
azawawi/perl6-net-curl:244: # Pass an empty buffer or string and returns it with data filled after curl_easy_perform
azawawi/perl6-net-curl:247: # curl_easy_setopt( $curl, CURLOPT_WRITEDATA, Str $body is rw );
azawawi/perl6-net-curl:248: # curl_easy_setopt( $curl, CURLOPT_WRITEDATA, Buf $body is rw );
azawawi/perl6-net-curl:249: # curl_easy_setopt( $curl, CURLOPT_WRITEDATA, IO::Handle $body is rw ); # you must close your FH
azawawi/perl6-net-curl:251: multi sub curl_easy_setopt(OpaquePointer $point, CURLOPT_WRITEDATA, $value is rw) returns int32 is export {
azawawi/perl6-net-curl:285: return _curl_easy_setopt_cb($point, CURLOPT_WRITEFUNCTION, &callback);
azawawi/perl6-net-curl:288: # CURLcode curl_easy_setopt(CURL *handle, CURLoption option, parameter);
azawawi/perl6-net-curl:289: # CURLcode - status codes
azawawi/perl6-net-curl:290: multi sub curl_easy_setopt(OpaquePointer $point, Int:D $code, Str $value) returns int32 is export {
azawawi/perl6-net-curl:292: return _curl_easy_setopt($point, $code, $value);
azawawi/perl6-net-curl:295: multi sub curl_easy_setopt(OpaquePointer $point, Int:D $code, Int:D $value) returns int32 is export {
azawawi/perl6-net-curl:296: return _curl_easy_setopt_int32($point, $code, $value);
azawawi/perl6-net-curl:301: sub curl_easy_perform(OpaquePointer)
azawawi/perl6-net-curl:307: # const char *curl_easy_strerror(CURLcode errornum);
azawawi/perl6-net-curl:308: sub curl_easy_strerror(uint8)
azawawi/perl6-net-curl:313: # Return the libcurl version string
azawawi/perl6-net-curl:314: sub curl_easy_version
azawawi/perl6-net-curl:319: # Extract information from a curl handle
azawawi/perl6-net-curl:320: # CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ... );
azawawi/perl6-net-curl:321: sub curl_easy_getinfo(OpaquePointer, uint8, CArray[Str])
azawawi/perl6-net-curl:326: # CURLcode curl_global_init(long flags );
azawawi/perl6-net-curl:327: sub curl_global_init(int32)
azawawi/perl6-net-curl:332: sub curl_global_cleanup
azawawi/perl6-net-curl:3: use Net::Curl::NativeCall;
azawawi/perl6-net-curl:5: unit class Net::Curl::Easy;
azawawi/perl6-net-curl:11: my $curl = curl_easy_init;
azawawi/perl6-net-curl:14: if $curl {
azawawi/perl6-net-curl:15: curl_easy_setopt($curl, CURLOPT_URL, $.url);
azawawi/perl6-net-curl:16: curl_easy_setopt($curl, CURLOPT_WRITEDATA, $body);
azawawi/perl6-net-curl:17: curl_easy_setopt($curl, CURLOPT_FOLLOWLOCATION, 0);
azawawi/perl6-net-curl:20: my $res = curl_easy_perform($curl);
azawawi/perl6-net-curl:23: if $res != CURLE_OK {
azawawi/perl6-net-curl:24: say "Error: curl_easy_perform() failed: " ~
azawawi/perl6-net-curl:25: curl_easy_strerror($res);
azawawi/perl6-net-curl:29: curl_easy_cleanup($curl);
azawawi/perl6-net-curl:3: unit module Net::Curl::NativeCall;
azawawi/perl6-net-curl:7: ## Generated using gptrixie --all /usr/include/curl/curl.h -I /usr/include/curl/ > Generated.pm6
azawawi/perl6-net-curl:10: constant LIB = "curl";
azawawi/perl6-net-curl:12: constant curl_socket_t is export = uint32;
azawawi/perl6-net-curl:14: constant CURL_GLOBAL_SSL is export = (1 +< 0);
azawawi/perl6-net-curl:15: constant CURL_GLOBAL_WIN32 is export = (1 +< 1);
azawawi/perl6-net-curl:16: constant CURL_GLOBAL_ALL is export = (CURL_GLOBAL_SSL +| CURL_GLOBAL_WIN32);
azawawi/perl6-net-curl:17: constant CURL_GLOBAL_NOTHING is export = 0;
azawawi/perl6-net-curl:18: constant CURL_GLOBAL_DEFAULT is export = CURL_GLOBAL_ALL;
azawawi/perl6-net-curl:19: constant CURL_GLOBAL_ACK_EINTR is export = (1 +< 2);
azawawi/perl6-net-curl:23: # == /usr/include/curl/multi.h ==
azawawi/perl6-net-curl:25: enum CURLMcode is export (
azawawi/perl6-net-curl:26: CURLM_CALL_MULTI_PERFORM => -1,
azawawi/perl6-net-curl:27: CURLM_OK => 0,
azawawi/perl6-net-curl:28: CURLM_BAD_HANDLE => 1,
azawawi/perl6-net-curl:29: CURLM_BAD_EASY_HANDLE => 2,
azawawi/perl6-net-curl:30: CURLM_OUT_OF_MEMORY => 3,
azawawi/perl6-net-curl:31: CURLM_INTERNAL_ERROR => 4,
azawawi/perl6-net-curl:32: CURLM_BAD_SOCKET => 5,
azawawi/perl6-net-curl:33: CURLM_UNKNOWN_OPTION => 6,
azawawi/perl6-net-curl:34: CURLM_ADDED_ALREADY => 7,
azawawi/perl6-net-curl:35: CURLM_LAST => 8
azawawi/perl6-net-curl:37: enum CURLMSG is export (
azawawi/perl6-net-curl:38: CURLMSG_NONE => 0,
azawawi/perl6-net-curl:39: CURLMSG_DONE => 1,
azawawi/perl6-net-curl:40: CURLMSG_LAST => 2
azawawi/perl6-net-curl:42: enum CURLMoption is export (
azawawi/perl6-net-curl:43: CURLMOPT_SOCKETFUNCTION => 20001,
azawawi/perl6-net-curl:44: CURLMOPT_SOCKETDATA => 10002,
azawawi/perl6-net-curl:45: CURLMOPT_PIPELINING => 3,
azawawi/perl6-net-curl:46: CURLMOPT_TIMERFUNCTION => 20004,
azawawi/perl6-net-curl:47: CURLMOPT_TIMERDATA => 10005,
azawawi/perl6-net-curl:48: CURLMOPT_MAXCONNECTS => 6,
azawawi/perl6-net-curl:49: CURLMOPT_MAX_HOST_CONNECTIONS => 7,
azawawi/perl6-net-curl:50: CURLMOPT_MAX_PIPELINE_LENGTH => 8,
azawawi/perl6-net-curl:51: CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE => 30009,
azawawi/perl6-net-curl:52: CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE => 30010,
azawawi/perl6-net-curl:53: CURLMOPT_PIPELINING_SITE_BL => 10011,
azawawi/perl6-net-curl:54: CURLMOPT_PIPELINING_SERVER_BL => 10012,
azawawi/perl6-net-curl:55: CURLMOPT_MAX_TOTAL_CONNECTIONS => 13,
azawawi/perl6-net-curl:56: CURLMOPT_LASTENTRY => 14
azawawi/perl6-net-curl:59: # == /usr/include/curl/curl.h ==
azawawi/perl6-net-curl:61: enum curlfiletype is export (
azawawi/perl6-net-curl:62: CURLFILETYPE_FILE => 0,
azawawi/perl6-net-curl:63: CURLFILETYPE_DIRECTORY => 1,
azawawi/perl6-net-curl:64: CURLFILETYPE_SYMLINK => 2,
azawawi/perl6-net-curl:65: CURLFILETYPE_DEVICE_BLOCK => 3,
azawawi/perl6-net-curl:66: CURLFILETYPE_DEVICE_CHAR => 4,
azawawi/perl6-net-curl:67: CURLFILETYPE_NAMEDPIPE => 5,
azawawi/perl6-net-curl:68: CURLFILETYPE_SOCKET => 6,
azawawi/perl6-net-curl:69: CURLFILETYPE_DOOR => 7,
azawawi/perl6-net-curl:70: CURLFILETYPE_UNKNOWN => 8
azawawi/perl6-net-curl:72: enum curlsocktype is export (
azawawi/perl6-net-curl:73: CURLSOCKTYPE_IPCXN => 0,
azawawi/perl6-net-curl:74: CURLSOCKTYPE_ACCEPT => 1,
azawawi/perl6-net-curl:75: CURLSOCKTYPE_LAST => 2
azawawi/perl6-net-curl:77: enum curlioerr is export (
azawawi/perl6-net-curl:78: CURLIOE_OK => 0,
azawawi/perl6-net-curl:79: CURLIOE_UNKNOWNCMD => 1,
azawawi/perl6-net-curl:80: CURLIOE_FAILRESTART => 2,
azawawi/perl6-net-curl:81: CURLIOE_LAST => 3
azawawi/perl6-net-curl:83: enum curliocmd is export (
azawawi/perl6-net-curl:84: CURLIOCMD_NOP => 0,
azawawi/perl6-net-curl:85: CURLIOCMD_RESTARTREAD => 1,
azawawi/perl6-net-curl:86: CURLIOCMD_LAST => 2
azawawi/perl6-net-curl:88: enum curl_infotype is export (
azawawi/perl6-net-curl:89: CURLINFO_TEXT => 0,
azawawi/perl6-net-curl:90: CURLINFO_HEADER_IN => 1,
azawawi/perl6-net-curl:91: CURLINFO_HEADER_OUT => 2,
azawawi/perl6-net-curl:92: CURLINFO_DATA_IN => 3,
azawawi/perl6-net-curl:93: CURLINFO_DATA_OUT => 4,
azawawi/perl6-net-curl:94: CURLINFO_SSL_DATA_IN => 5,
azawawi/perl6-net-curl:95: CURLINFO_SSL_DATA_OUT => 6,
azawawi/perl6-net-curl:96: CURLINFO_END => 7
azawawi/perl6-net-curl:98: enum CURLcode is export (
azawawi/perl6-net-curl:99: CURLE_OK => 0,
azawawi/perl6-net-curl:100: CURLE_UNSUPPORTED_PROTOCOL => 1,
azawawi/perl6-net-curl:101: CURLE_FAILED_INIT => 2,
azawawi/perl6-net-curl:102: CURLE_URL_MALFORMAT => 3,
azawawi/perl6-net-curl:103: CURLE_NOT_BUILT_IN => 4,
azawawi/perl6-net-curl:104: CURLE_COULDNT_RESOLVE_PROXY => 5,
azawawi/perl6-net-curl:105: CURLE_COULDNT_RESOLVE_HOST => 6,
azawawi/perl6-net-curl:106: CURLE_COULDNT_CONNECT => 7,
azawawi/perl6-net-curl:107: CURLE_FTP_WEIRD_SERVER_REPLY => 8,
azawawi/perl6-net-curl:108: CURLE_REMOTE_ACCESS_DENIED => 9,
azawawi/perl6-net-curl:109: CURLE_FTP_ACCEPT_FAILED => 10,
azawawi/perl6-net-curl:110: CURLE_FTP_WEIRD_PASS_REPLY => 11,
azawawi/perl6-net-curl:111: CURLE_FTP_ACCEPT_TIMEOUT => 12,
azawawi/perl6-net-curl:112: CURLE_FTP_WEIRD_PASV_REPLY => 13,
azawawi/perl6-net-curl:113: CURLE_FTP_WEIRD_227_FORMAT => 14,
azawawi/perl6-net-curl:114: CURLE_FTP_CANT_GET_HOST => 15,
azawawi/perl6-net-curl:115: CURLE_OBSOLETE16 => 16,
azawawi/perl6-net-curl:116: CURLE_FTP_COULDNT_SET_TYPE => 17,
azawawi/perl6-net-curl:117: CURLE_PARTIAL_FILE => 18,
azawawi/perl6-net-curl:118: CURLE_FTP_COULDNT_RETR_FILE => 19,
azawawi/perl6-net-curl:119: CURLE_OBSOLETE20 => 20,
azawawi/perl6-net-curl:120: CURLE_QUOTE_ERROR => 21,
azawawi/perl6-net-curl:121: CURLE_HTTP_RETURNED_ERROR => 22,
azawawi/perl6-net-curl:122: CURLE_WRITE_ERROR => 23,
azawawi/perl6-net-curl:123: CURLE_OBSOLETE24 => 24,
azawawi/perl6-net-curl:124: CURLE_UPLOAD_FAILED => 25,
azawawi/perl6-net-curl:125: CURLE_READ_ERROR => 26,
azawawi/perl6-net-curl:126: CURLE_OUT_OF_MEMORY => 27,
azawawi/perl6-net-curl:127: CURLE_OPERATION_TIMEDOUT => 28,
azawawi/perl6-net-curl:128: CURLE_OBSOLETE29 => 29,
azawawi/perl6-net-curl:129: CURLE_FTP_PORT_FAILED => 30,
azawawi/perl6-net-curl:130: CURLE_FTP_COULDNT_USE_REST => 31,
azawawi/perl6-net-curl:131: CURLE_OBSOLETE32 => 32,
azawawi/perl6-net-curl:132: CURLE_RANGE_ERROR => 33,
azawawi/perl6-net-curl:133: CURLE_HTTP_POST_ERROR => 34,
azawawi/perl6-net-curl:134: CURLE_SSL_CONNECT_ERROR => 35,
azawawi/perl6-net-curl:135: CURLE_BAD_DOWNLOAD_RESUME => 36,
azawawi/perl6-net-curl:136: CURLE_FILE_COULDNT_READ_FILE => 37,
azawawi/perl6-net-curl:137: CURLE_LDAP_CANNOT_BIND => 38,
azawawi/perl6-net-curl:138: CURLE_LDAP_SEARCH_FAILED => 39,
azawawi/perl6-net-curl:139: CURLE_OBSOLETE40 => 40,
azawawi/perl6-net-curl:140: CURLE_FUNCTION_NOT_FOUND => 41,
azawawi/perl6-net-curl:141: CURLE_ABORTED_BY_CALLBACK => 42,
azawawi/perl6-net-curl:142: CURLE_BAD_FUNCTION_ARGUMENT => 43,
azawawi/perl6-net-curl:143: CURLE_OBSOLETE44 => 44,
azawawi/perl6-net-curl:144: CURLE_INTERFACE_FAILED => 45,
azawawi/perl6-net-curl:145: CURLE_OBSOLETE46 => 46,
azawawi/perl6-net-curl:146: CURLE_TOO_MANY_REDIRECTS => 47,
azawawi/perl6-net-curl:147: CURLE_UNKNOWN_OPTION => 48,
azawawi/perl6-net-curl:148: CURLE_TELNET_OPTION_SYNTAX => 49,
azawawi/perl6-net-curl:149: CURLE_OBSOLETE50 => 50,
azawawi/perl6-net-curl:150: CURLE_PEER_FAILED_VERIFICATION => 51,
azawawi/perl6-net-curl:151: CURLE_GOT_NOTHING => 52,
azawawi/perl6-net-curl:152: CURLE_SSL_ENGINE_NOTFOUND => 53,
azawawi/perl6-net-curl:153: CURLE_SSL_ENGINE_SETFAILED => 54,
azawawi/perl6-net-curl:154: CURLE_SEND_ERROR => 55,
azawawi/perl6-net-curl:155: CURLE_RECV_ERROR => 56,
azawawi/perl6-net-curl:156: CURLE_OBSOLETE57 => 57,
azawawi/perl6-net-curl:157: CURLE_SSL_CERTPROBLEM => 58,
azawawi/perl6-net-curl:158: CURLE_SSL_CIPHER => 59,
azawawi/perl6-net-curl:159: CURLE_SSL_CACERT => 60,
azawawi/perl6-net-curl:160: CURLE_BAD_CONTENT_ENCODING => 61,
azawawi/perl6-net-curl:161: CURLE_LDAP_INVALID_URL => 62,
azawawi/perl6-net-curl:162: CURLE_FILESIZE_EXCEEDED => 63,
azawawi/perl6-net-curl:163: CURLE_USE_SSL_FAILED => 64,
azawawi/perl6-net-curl:164: CURLE_SEND_FAIL_REWIND => 65,
azawawi/perl6-net-curl:165: CURLE_SSL_ENGINE_INITFAILED => 66,
azawawi/perl6-net-curl:166: CURLE_LOGIN_DENIED => 67,
azawawi/perl6-net-curl:167: CURLE_TFTP_NOTFOUND => 68,
azawawi/perl6-net-curl:168: CURLE_TFTP_PERM => 69,
azawawi/perl6-net-curl:169: CURLE_REMOTE_DISK_FULL => 70,
azawawi/perl6-net-curl:170: CURLE_TFTP_ILLEGAL => 71,
azawawi/perl6-net-curl:171: CURLE_TFTP_UNKNOWNID => 72,
azawawi/perl6-net-curl:172: CURLE_REMOTE_FILE_EXISTS => 73,
azawawi/perl6-net-curl:173: CURLE_TFTP_NOSUCHUSER => 74,
azawawi/perl6-net-curl:174: CURLE_CONV_FAILED => 75,
azawawi/perl6-net-curl:175: CURLE_CONV_REQD => 76,
azawawi/perl6-net-curl:176: CURLE_SSL_CACERT_BADFILE => 77,
azawawi/perl6-net-curl:177: CURLE_REMOTE_FILE_NOT_FOUND => 78,
azawawi/perl6-net-curl:178: CURLE_SSH => 79,
azawawi/perl6-net-curl:179: CURLE_SSL_SHUTDOWN_FAILED => 80,
azawawi/perl6-net-curl:180: CURLE_AGAIN => 81,
azawawi/perl6-net-curl:181: CURLE_SSL_CRL_BADFILE => 82,
azawawi/perl6-net-curl:182: CURLE_SSL_ISSUER_ERROR => 83,
azawawi/perl6-net-curl:183: CURLE_FTP_PRET_FAILED => 84,
azawawi/perl6-net-curl:184: CURLE_RTSP_CSEQ_ERROR => 85,
azawawi/perl6-net-curl:185: CURLE_RTSP_SESSION_ERROR => 86,
azawawi/perl6-net-curl:186: CURLE_FTP_BAD_FILE_LIST => 87,
azawawi/perl6-net-curl:187: CURLE_CHUNK_FAILED => 88,
azawawi/perl6-net-curl:188: CURLE_NO_CONNECTION_AVAILABLE => 89,
azawawi/perl6-net-curl:189: CURL_LAST => 90
azawawi/perl6-net-curl:191: enum curl_proxytype is export (
azawawi/perl6-net-curl:192: CURLPROXY_HTTP => 0,
azawawi/perl6-net-curl:193: CURLPROXY_HTTP_1_0 => 1,
azawawi/perl6-net-curl:194: CURLPROXY_SOCKS4 => 4,
azawawi/perl6-net-curl:195: CURLPROXY_SOCKS5 => 5,
azawawi/perl6-net-curl:196: CURLPROXY_SOCKS4A => 6,
azawawi/perl6-net-curl:197: CURLPROXY_SOCKS5_HOSTNAME => 7
azawawi/perl6-net-curl:199: enum curl_khtype is export (
azawawi/perl6-net-curl:200: CURLKHTYPE_UNKNOWN => 0,
azawawi/perl6-net-curl:201: CURLKHTYPE_RSA1 => 1,
azawawi/perl6-net-curl:202: CURLKHTYPE_RSA => 2,
azawawi/perl6-net-curl:203: CURLKHTYPE_DSS => 3
azawawi/perl6-net-curl:205: enum curl_khstat is export (
azawawi/perl6-net-curl:206: CURLKHSTAT_FINE_ADD_TO_FILE => 0,
azawawi/perl6-net-curl:207: CURLKHSTAT_FINE => 1,
azawawi/perl6-net-curl:208: CURLKHSTAT_REJECT => 2,
azawawi/perl6-net-curl:209: CURLKHSTAT_DEFER => 3,
azawawi/perl6-net-curl:210: CURLKHSTAT_LAST => 4
azawawi/perl6-net-curl:212: enum curl_khmatch is export (
azawawi/perl6-net-curl:213: CURLKHMATCH_OK => 0,
azawawi/perl6-net-curl:214: CURLKHMATCH_MISMATCH => 1,
azawawi/perl6-net-curl:215: CURLKHMATCH_MISSING => 2,
azawawi/perl6-net-curl:216: CURLKHMATCH_LAST => 3
azawawi/perl6-net-curl:218: enum curl_usessl is export (
azawawi/perl6-net-curl:219: CURLUSESSL_NONE => 0,
azawawi/perl6-net-curl:220: CURLUSESSL_TRY => 1,
azawawi/perl6-net-curl:221: CURLUSESSL_CONTROL => 2,
azawawi/perl6-net-curl:222: CURLUSESSL_ALL => 3,
azawawi/perl6-net-curl:223: CURLUSESSL_LAST => 4
azawawi/perl6-net-curl:225: enum curl_ftpccc is export (
azawawi/perl6-net-curl:226: CURLFTPSSL_CCC_NONE => 0,
azawawi/perl6-net-curl:227: CURLFTPSSL_CCC_PASSIVE => 1,
azawawi/perl6-net-curl:228: CURLFTPSSL_CCC_ACTIVE => 2,
azawawi/perl6-net-curl:229: CURLFTPSSL_CCC_LAST => 3
azawawi/perl6-net-curl:231: enum curl_ftpauth is export (
azawawi/perl6-net-curl:232: CURLFTPAUTH_DEFAULT => 0,
azawawi/perl6-net-curl:233: CURLFTPAUTH_SSL => 1,
azawawi/perl6-net-curl:234: CURLFTPAUTH_TLS => 2,
azawawi/perl6-net-curl:235: CURLFTPAUTH_LAST => 3
azawawi/perl6-net-curl:237: enum curl_ftpcreatedir is export (
azawawi/perl6-net-curl:238: CURLFTP_CREATE_DIR_NONE => 0,
azawawi/perl6-net-curl:239: CURLFTP_CREATE_DIR => 1,
azawawi/perl6-net-curl:240: CURLFTP_CREATE_DIR_RETRY => 2,
azawawi/perl6-net-curl:241: CURLFTP_CREATE_DIR_LAST => 3
azawawi/perl6-net-curl:243: enum curl_ftpmethod is export (
azawawi/perl6-net-curl:244: CURLFTPMETHOD_DEFAULT => 0,
azawawi/perl6-net-curl:245: CURLFTPMETHOD_MULTICWD => 1,
azawawi/perl6-net-curl:246: CURLFTPMETHOD_NOCWD => 2,
azawawi/perl6-net-curl:247: CURLFTPMETHOD_SINGLECWD => 3,
azawawi/perl6-net-curl:248: CURLFTPMETHOD_LAST => 4
azawawi/perl6-net-curl:250: enum CURLoption is export (
azawawi/perl6-net-curl:251: CURLOPT_FILE => 10001,
azawawi/perl6-net-curl:252: CURLOPT_URL => 10002,
azawawi/perl6-net-curl:253: CURLOPT_PORT => 3,
azawawi/perl6-net-curl:254: CURLOPT_PROXY => 10004,
azawawi/perl6-net-curl:255: CURLOPT_USERPWD => 10005,
azawawi/perl6-net-curl:256: CURLOPT_PROXYUSERPWD => 10006,
azawawi/perl6-net-curl:257: CURLOPT_RANGE => 10007,
azawawi/perl6-net-curl:258: CURLOPT_INFILE => 10009,
azawawi/perl6-net-curl:259: CURLOPT_ERRORBUFFER => 10010,
azawawi/perl6-net-curl:260: CURLOPT_WRITEFUNCTION => 20011,
azawawi/perl6-net-curl:261: CURLOPT_READFUNCTION => 20012,
azawawi/perl6-net-curl:262: CURLOPT_TIMEOUT => 13,
azawawi/perl6-net-curl:263: CURLOPT_INFILESIZE => 14,
azawawi/perl6-net-curl:264: CURLOPT_POSTFIELDS => 10015,
azawawi/perl6-net-curl:265: CURLOPT_REFERER => 10016,
azawawi/perl6-net-curl:266: CURLOPT_FTPPORT => 10017,
azawawi/perl6-net-curl:267: CURLOPT_USERAGENT => 10018,
azawawi/perl6-net-curl:268: CURLOPT_LOW_SPEED_LIMIT => 19,
azawawi/perl6-net-curl:269: CURLOPT_LOW_SPEED_TIME => 20,
azawawi/perl6-net-curl:270: CURLOPT_RESUME_FROM => 21,
azawawi/perl6-net-curl:271: CURLOPT_COOKIE => 10022,
azawawi/perl6-net-curl:272: CURLOPT_HTTPHEADER => 10023,
azawawi/perl6-net-curl:273: CURLOPT_HTTPPOST => 10024,
azawawi/perl6-net-curl:274: CURLOPT_SSLCERT => 10025,
azawawi/perl6-net-curl:275: CURLOPT_KEYPASSWD => 10026,
azawawi/perl6-net-curl:276: CURLOPT_CRLF => 27,
azawawi/perl6-net-curl:277: CURLOPT_QUOTE => 10028,
azawawi/perl6-net-curl:278: CURLOPT_WRITEHEADER => 10029,
azawawi/perl6-net-curl:279: CURLOPT_COOKIEFILE => 10031,
azawawi/perl6-net-curl:280: CURLOPT_SSLVERSION => 32,
azawawi/perl6-net-curl:281: CURLOPT_TIMECONDITION => 33,
azawawi/perl6-net-curl:282: CURLOPT_TIMEVALUE => 34,
azawawi/perl6-net-curl:283: CURLOPT_CUSTOMREQUEST => 10036,
azawawi/perl6-net-curl:284: CURLOPT_STDERR => 10037,
azawawi/perl6-net-curl:285: CURLOPT_POSTQUOTE => 10039,
azawawi/perl6-net-curl:286: CURLOPT_WRITEINFO => 10040,
azawawi/perl6-net-curl:287: CURLOPT_VERBOSE => 41,
azawawi/perl6-net-curl:288: CURLOPT_HEADER => 42,
azawawi/perl6-net-curl:289: CURLOPT_NOPROGRESS => 43,
azawawi/perl6-net-curl:290: CURLOPT_NOBODY => 44,
azawawi/perl6-net-curl:291: CURLOPT_FAILONERROR => 45,
azawawi/perl6-net-curl:292: CURLOPT_UPLOAD => 46,
azawawi/perl6-net-curl:293: CURLOPT_POST => 47,
azawawi/perl6-net-curl:294: CURLOPT_DIRLISTONLY => 48,
azawawi/perl6-net-curl:295: CURLOPT_APPEND => 50,
azawawi/perl6-net-curl:296: CURLOPT_NETRC => 51,
azawawi/perl6-net-curl:297: CURLOPT_FOLLOWLOCATION => 52,
azawawi/perl6-net-curl:298: CURLOPT_TRANSFERTEXT => 53,
azawawi/perl6-net-curl:299: CURLOPT_PUT => 54,
azawawi/perl6-net-curl:300: CURLOPT_PROGRESSFUNCTION => 20056,
azawawi/perl6-net-curl:301: CURLOPT_PROGRESSDATA => 10057,
azawawi/perl6-net-curl:302: CURLOPT_AUTOREFERER => 58,
azawawi/perl6-net-curl:303: CURLOPT_PROXYPORT => 59,
azawawi/perl6-net-curl:304: CURLOPT_POSTFIELDSIZE => 60,
azawawi/perl6-net-curl:305: CURLOPT_HTTPPROXYTUNNEL => 61,
azawawi/perl6-net-curl:306: CURLOPT_INTERFACE => 10062,
azawawi/perl6-net-curl:307: CURLOPT_KRBLEVEL => 10063,
azawawi/perl6-net-curl:308: CURLOPT_SSL_VERIFYPEER => 64,
azawawi/perl6-net-curl:309: CURLOPT_CAINFO => 10065,
azawawi/perl6-net-curl:310: CURLOPT_MAXREDIRS => 68,
azawawi/perl6-net-curl:311: CURLOPT_FILETIME => 69,
azawawi/perl6-net-curl:312: CURLOPT_TELNETOPTIONS => 10070,
azawawi/perl6-net-curl:313: CURLOPT_MAXCONNECTS => 71,
azawawi/perl6-net-curl:314: CURLOPT_CLOSEPOLICY => 72,
azawawi/perl6-net-curl:315: CURLOPT_FRESH_CONNECT => 74,
azawawi/perl6-net-curl:316: CURLOPT_FORBID_REUSE => 75,
azawawi/perl6-net-curl:317: CURLOPT_RANDOM_FILE => 10076,
azawawi/perl6-net-curl:318: CURLOPT_EGDSOCKET => 10077,
azawawi/perl6-net-curl:319: CURLOPT_CONNECTTIMEOUT => 78,
azawawi/perl6-net-curl:320: CURLOPT_HEADERFUNCTION => 20079,
azawawi/perl6-net-curl:321: CURLOPT_HTTPGET => 80,
azawawi/perl6-net-curl:322: CURLOPT_SSL_VERIFYHOST => 81,
azawawi/perl6-net-curl:323: CURLOPT_COOKIEJAR => 10082,
azawawi/perl6-net-curl:324: CURLOPT_SSL_CIPHER_LIST => 10083,
azawawi/perl6-net-curl:325: CURLOPT_HTTP_VERSION => 84,
azawawi/perl6-net-curl:326: CURLOPT_FTP_USE_EPSV => 85,
azawawi/perl6-net-curl:327: CURLOPT_SSLCERTTYPE => 10086,
azawawi/perl6-net-curl:328: CURLOPT_SSLKEY => 10087,
azawawi/perl6-net-curl:329: CURLOPT_SSLKEYTYPE => 10088,
azawawi/perl6-net-curl:330: CURLOPT_SSLENGINE => 10089,
azawawi/perl6-net-curl:331: CURLOPT_SSLENGINE_DEFAULT => 90,
azawawi/perl6-net-curl:332: CURLOPT_DNS_USE_GLOBAL_CACHE => 91,
azawawi/perl6-net-curl:333: CURLOPT_DNS_CACHE_TIMEOUT => 92,
azawawi/perl6-net-curl:334: CURLOPT_PREQUOTE => 10093,
azawawi/perl6-net-curl:335: CURLOPT_DEBUGFUNCTION => 20094,
azawawi/perl6-net-curl:336: CURLOPT_DEBUGDATA => 10095,
azawawi/perl6-net-curl:337: CURLOPT_COOKIESESSION => 96,
azawawi/perl6-net-curl:338: CURLOPT_CAPATH => 10097,
azawawi/perl6-net-curl:339: CURLOPT_BUFFERSIZE => 98,
azawawi/perl6-net-curl:340: CURLOPT_NOSIGNAL => 99,
azawawi/perl6-net-curl:341: CURLOPT_SHARE => 10100,
azawawi/perl6-net-curl:342: CURLOPT_PROXYTYPE => 101,
azawawi/perl6-net-curl:343: CURLOPT_ACCEPT_ENCODING => 10102,
azawawi/perl6-net-curl:344: CURLOPT_PRIVATE => 10103,
azawawi/perl6-net-curl:345: CURLOPT_HTTP200ALIASES => 10104,
azawawi/perl6-net-curl:346: CURLOPT_UNRESTRICTED_AUTH => 105,
azawawi/perl6-net-curl:347: CURLOPT_FTP_USE_EPRT => 106,
azawawi/perl6-net-curl:348: CURLOPT_HTTPAUTH => 107,
azawawi/perl6-net-curl:349: CURLOPT_SSL_CTX_FUNCTION => 20108,
azawawi/perl6-net-curl:350: CURLOPT_SSL_CTX_DATA => 10109,
azawawi/perl6-net-curl:351: CURLOPT_FTP_CREATE_MISSING_DIRS => 110,
azawawi/perl6-net-curl:352: CURLOPT_PROXYAUTH => 111,
azawawi/perl6-net-curl:353: CURLOPT_FTP_RESPONSE_TIMEOUT => 112,
azawawi/perl6-net-curl:354: CURLOPT_IPRESOLVE => 113,
azawawi/perl6-net-curl:355: CURLOPT_MAXFILESIZE => 114,
azawawi/perl6-net-curl:356: CURLOPT_INFILESIZE_LARGE => 30115,
azawawi/perl6-net-curl:357: CURLOPT_RESUME_FROM_LARGE => 30116,
azawawi/perl6-net-curl:358: CURLOPT_MAXFILESIZE_LARGE => 30117,
azawawi/perl6-net-curl:359: CURLOPT_NETRC_FILE => 10118,
azawawi/perl6-net-curl:360: CURLOPT_USE_SSL => 119,
azawawi/perl6-net-curl:361: CURLOPT_POSTFIELDSIZE_LARGE => 30120,
azawawi/perl6-net-curl:362: CURLOPT_TCP_NODELAY => 121,
azawawi/perl6-net-curl:363: CURLOPT_FTPSSLAUTH => 129,
azawawi/perl6-net-curl:364: CURLOPT_IOCTLFUNCTION => 20130,
azawawi/perl6-net-curl:365: CURLOPT_IOCTLDATA => 10131,
azawawi/perl6-net-curl:366: CURLOPT_FTP_ACCOUNT => 10134,
azawawi/perl6-net-curl:367: CURLOPT_COOKIELIST => 10135,
azawawi/perl6-net-curl:368: CURLOPT_IGNORE_CONTENT_LENGTH => 136,
azawawi/perl6-net-curl:369: CURLOPT_FTP_SKIP_PASV_IP => 137,
azawawi/perl6-net-curl:370: CURLOPT_FTP_FILEMETHOD => 138,
azawawi/perl6-net-curl:371: CURLOPT_LOCALPORT => 139,
azawawi/perl6-net-curl:372: CURLOPT_LOCALPORTRANGE => 140,
azawawi/perl6-net-curl:373: CURLOPT_CONNECT_ONLY => 141,
azawawi/perl6-net-curl:374: CURLOPT_CONV_FROM_NETWORK_FUNCTION => 20142,
azawawi/perl6-net-curl:375: CURLOPT_CONV_TO_NETWORK_FUNCTION => 20143,
azawawi/perl6-net-curl:376: CURLOPT_CONV_FROM_UTF8_FUNCTION => 20144,
azawawi/perl6-net-curl:377: CURLOPT_MAX_SEND_SPEED_LARGE => 30145,
azawawi/perl6-net-curl:378: CURLOPT_MAX_RECV_SPEED_LARGE => 30146,
azawawi/perl6-net-curl:379: CURLOPT_FTP_ALTERNATIVE_TO_USER => 10147,
azawawi/perl6-net-curl:380: CURLOPT_SOCKOPTFUNCTION => 20148,
azawawi/perl6-net-curl:381: CURLOPT_SOCKOPTDATA => 10149,
azawawi/perl6-net-curl:382: CURLOPT_SSL_SESSIONID_CACHE => 150,
azawawi/perl6-net-curl:383: CURLOPT_SSH_AUTH_TYPES => 151,
azawawi/perl6-net-curl:384: CURLOPT_SSH_PUBLIC_KEYFILE => 10152,
azawawi/perl6-net-curl:385: CURLOPT_SSH_PRIVATE_KEYFILE => 10153,
azawawi/perl6-net-curl:386: CURLOPT_FTP_SSL_CCC => 154,
azawawi/perl6-net-curl:387: CURLOPT_TIMEOUT_MS => 155,
azawawi/perl6-net-curl:388: CURLOPT_CONNECTTIMEOUT_MS => 156,
azawawi/perl6-net-curl:389: CURLOPT_HTTP_TRANSFER_DECODING => 157,
azawawi/perl6-net-curl:390: CURLOPT_HTTP_CONTENT_DECODING => 158,
azawawi/perl6-net-curl:391: CURLOPT_NEW_FILE_PERMS => 159,
azawawi/perl6-net-curl:392: CURLOPT_NEW_DIRECTORY_PERMS => 160,
azawawi/perl6-net-curl:393: CURLOPT_POSTREDIR => 161,
azawawi/perl6-net-curl:394: CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 => 10162,
azawawi/perl6-net-curl:395: CURLOPT_OPENSOCKETFUNCTION => 20163,
azawawi/perl6-net-curl:396: CURLOPT_OPENSOCKETDATA => 10164,
azawawi/perl6-net-curl:397: CURLOPT_COPYPOSTFIELDS => 10165,
azawawi/perl6-net-curl:398: CURLOPT_PROXY_TRANSFER_MODE => 166,
azawawi/perl6-net-curl:399: CURLOPT_SEEKFUNCTION => 20167,
azawawi/perl6-net-curl:400: CURLOPT_SEEKDATA => 10168,
azawawi/perl6-net-curl:401: CURLOPT_CRLFILE => 10169,
azawawi/perl6-net-curl:402: CURLOPT_ISSUERCERT => 10170,
azawawi/perl6-net-curl:403: CURLOPT_ADDRESS_SCOPE => 171,
azawawi/perl6-net-curl:404: CURLOPT_CERTINFO => 172,
azawawi/perl6-net-curl:405: CURLOPT_USERNAME => 10173,
azawawi/perl6-net-curl:406: CURLOPT_PASSWORD => 10174,
azawawi/perl6-net-curl:407: CURLOPT_PROXYUSERNAME => 10175,
azawawi/perl6-net-curl:408: CURLOPT_PROXYPASSWORD => 10176,
azawawi/perl6-net-curl:409: CURLOPT_NOPROXY => 10177,
azawawi/perl6-net-curl:410: CURLOPT_TFTP_BLKSIZE => 178,
azawawi/perl6-net-curl:411: CURLOPT_SOCKS5_GSSAPI_SERVICE => 10179,
azawawi/perl6-net-curl:412: CURLOPT_SOCKS5_GSSAPI_NEC => 180,
azawawi/perl6-net-curl:413: CURLOPT_PROTOCOLS => 181,
azawawi/perl6-net-curl:414: CURLOPT_REDIR_PROTOCOLS => 182,
azawawi/perl6-net-curl:415: CURLOPT_SSH_KNOWNHOSTS => 10183,
azawawi/perl6-net-curl:416: CURLOPT_SSH_KEYFUNCTION => 20184,
azawawi/perl6-net-curl:417: CURLOPT_SSH_KEYDATA => 10185,
azawawi/perl6-net-curl:418: CURLOPT_MAIL_FROM => 10186,
azawawi/perl6-net-curl:419: CURLOPT_MAIL_RCPT => 10187,
azawawi/perl6-net-curl:420: CURLOPT_FTP_USE_PRET => 188,
azawawi/perl6-net-curl:421: CURLOPT_RTSP_REQUEST => 189,
azawawi/perl6-net-curl:422: CURLOPT_RTSP_SESSION_ID => 10190,
azawawi/perl6-net-curl:423: CURLOPT_RTSP_STREAM_URI => 10191,
azawawi/perl6-net-curl:424: CURLOPT_RTSP_TRANSPORT => 10192,
azawawi/perl6-net-curl:425: CURLOPT_RTSP_CLIENT_CSEQ => 193,
azawawi/perl6-net-curl:426: CURLOPT_RTSP_SERVER_CSEQ => 194,
azawawi/perl6-net-curl:427: CURLOPT_INTERLEAVEDATA => 10195,
azawawi/perl6-net-curl:428: CURLOPT_INTERLEAVEFUNCTION => 20196,
azawawi/perl6-net-curl:429: CURLOPT_WILDCARDMATCH => 197,
azawawi/perl6-net-curl:430: CURLOPT_CHUNK_BGN_FUNCTION => 20198,
azawawi/perl6-net-curl:431: CURLOPT_CHU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment