print "PREVIEW $$ $time - $timetext\n\n";
if ($options{'verbose'} ne '') {
print "OPTIONS:\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%options);
+ write_data_file(
+ \*STDOUT, \%options, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
print "\n";
}
}
}
}
if ($options{'verbose'} ne '') {
- write_data_file(\*STDOUT, 'console_out', 0, \%data);
+ write_data_file(
+ \*STDOUT, \%data, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
print "\n";
}
%post = prepare_post(\%options, \%data);
if ($options{'verbose'} ne '') {
print "POST\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%post);
+ write_data_file(
+ \*STDOUT, \%post, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
print "\n";
}
print "POST BOT $$ $time - $timetext\n\n";
if ($options{'verbose'} ne '') {
print "OPTIONS:\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%options);
+ write_data_file(
+ \*STDOUT, \%options, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
print "\n";
}
}
}
}
if ($options{'verbose'} ne '') {
- write_data_file(\*STDOUT, 'console_out', 0, \%data);
+ write_data_file(
+ \*STDOUT, \%data, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
print "\n";
}
my %post = prepare_post(\%options, \%data);
if ($options{'verbose'} ne '') {
print "POST\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%post);
+ write_data_file(
+ \*STDOUT, \%post, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
print "\n";
}
print "GET edit page";
if ($cmd_options->{'verbose'} ne '') {
print ": $edit_url SAVE $tmp_path\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%wget_options);
+ write_data_file(
+ \*STDOUT, \%wget_options, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
}
else {
print "\n";
%header = read_header_file($fh, ENCODING_MIRROR());
if ($cmd_options->{'verbose'} ne '') {
print "HEADER\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%header);
+ write_data_file(
+ \*STDOUT, \%header, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
}
if ($header{':status-code'} != 200) {
}
if ($cmd_options->{'verbose'} ne '') {
print "PREVIOUS POST\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%previous_post);
+ write_data_file(
+ \*STDOUT, \%previous_post, 'console_out',
+ 0, 0, 0
+ '>>', 1
+ );
print "\n";
}
}
unless ($cmd_options->{'quiet'} ne '') {
if ($cmd_options->{'verbose'} ne '') {
print "POST DATA\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%post_data);
+ write_data_file(
+ \*STDOUT, \%post_data, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
}
print "SUBMIT post";
if ($cmd_options->{'verbose'} ne '') {
print ": $post_url SAVE $tmp_path\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%wget_options);
+ write_data_file(
+ \*STDOUT, \%wget_options, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
+
}
else {
print "\n";
%header = read_header_file($fh, ENCODING_MIRROR());
if ($cmd_options->{'verbose'} ne '') {
print "HEADER\n";
- write_data_file(\*STDOUT, 'console_out', 0, \%header);
+ write_data_file(
+ \*STDOUT, \%header, 'console_out',
+ 0, 0, 0,
+ '>>', 1
+ );
}
if ($header{':status-code'} != 200) {