9 my $url = 'http://localhost:3000/data/edit';
12 my $t = Mojo::Client->new;
13 $t->max_redirects( 1 );
15 foreach my $c ( glob '/tmp/changes/*.data.edit' ) {
19 my $params = retrieve $c;
21 my $tx = $t->post_form( $url => $params->to_hash );
22 if ( my $res = $tx->success) { print $res->body }
24 my ($code, $message) = $tx->error;
25 die "Error: $message";
28 # last if $max-- == 0;