Changeset 2500 for trunk/tools
- Timestamp:
- Sep 5, 2008, 12:08:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/piwigo_remote.pl
r2463 r2500 65 65 }; 66 66 67 $result= $ua->post(67 my $response = $ua->post( 68 68 $conf{base_url}.'/ws.php?partner='.$conf{partner_key}.'&format=json', 69 69 $form 70 70 ); 71 72 print "-" x 50, "\n"; 73 printf("response code : %u\n", $response->code); 74 printf("response message : %s\n", $response->message); 75 print "-" x 50, "\n"; 76 print "\n"; 77 78 # use Data::Dumper; 79 # print Dumper($response); 80 81 if ($response->is_success) { 82 print "upload successful\n"; 83 } 84 else { 85 warn 'A problem has occured during upload', "\n"; 86 warn $response->decoded_content, "\n"; 87 die $response->status_line; 88 } 71 89 } 72 90
Note: See TracChangeset
for help on using the changeset viewer.