Help for this page

Select Code to Download


  1. or download this
    sub post_json {
        my ($mech, $json, $url) = @_;
    ...
        $req->content($json);
        return $mech->request($req);
    }
    
  2. or download this
    for my $key (keys %ff_header) {
        $mech->delete_header($key);
        $mech->add_header($key => $ff_header{$key});
    }