Skip to content

Instantly share code, notes, and snippets.

@semifor
Created September 30, 2010 18:17
Show Gist options
  • Select an option

  • Save semifor/605045 to your computer and use it in GitHub Desktop.

Select an option

Save semifor/605045 to your computer and use it in GitHub Desktop.
#!perl
# Dumping a Twitter request/response
my $nt = Net::Twitter->new(%options);
my $res;
$nt->ua->add_handler(response_done => sub { $res = shift });
print "Request:\n",
$res->request->as_string,
"\n\nResponse\n",
$res->as_string;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment