9 my $url = 'http://localhost:3000/data/edit';
14 my $t = Mojo::Client->new;
15 $t->max_redirects( 1 );
17 foreach my $c ( @changes ) {
21 my $params = retrieve $c;
23 my $tx = $t->post_form( $url => $params->to_hash );
24 if ( my $res = $tx->success) { print $res->body }
26 my ($code, $message) = $tx->error;
27 die "Error: $message";
30 # last if $max-- == 0;