Permalink
Browse files

test works again.

  • Loading branch information...
1 parent 742327e commit 863dc980e74068c2fd1a0c41900fb0562c47b14c Timothy Totten committed Jul 24, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 test.p6
View
@@ -7,15 +7,20 @@ use Test;
use WWW::Curl::Easy;
use WWW::Curl::Symbols::Options;
+use NativeCall;
+
my $c = WWW::Curl::Easy.new;
-my $string;
+#my $string = '';
$c.setopt(CURLOPT_VERBOSE, 1);
$c.setopt(CURLOPT_HEADER, 1);
$c.setopt(CURLOPT_URL, 'https://my.huri.net/test.txt');
-$c.setopt(CURLOPT_WRITEDATA, \$string);
+#$c.setopt(CURLOPT_WRITEFUNCTION, sub ($text, $size, $nmemb, $userdata) {
+# $string ~= $text;
+#});
+#$c.setopt(CURLOPT_WRITEDATA, $string);
$c.perform;
$c.cleanup;

0 comments on commit 863dc98

Please sign in to comment.