Skip to content

Instantly share code, notes, and snippets.

@psandin
Created January 3, 2015 19:37
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 psandin/bf10abca6cec45b1261a to your computer and use it in GitHub Desktop.
Save psandin/bf10abca6cec45b1261a to your computer and use it in GitHub Desktop.
my $tx = $ua->post($login_url => form => {email => $user,password => $pass});
die "failed to login" unless $tx->success;
die "No session cookie set" unless $ua->cookie_jar->all;
$tx = $ua->get($search_base . $search_term);
die "no cookies sent" unless @{$tx->req->cookies};
die "no results :(" unless $tx->success;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment