use botm_common (
'read_data_file', 'write_data_file',
'merge_url',
- 'make_temp_path'
+ 'make_temp_path',
+ 'system_encoded'
);
###PERL_ENCODING_FILE: use constant ENCODING_FILE => 'UTF-8';
###PERL_DEFAULT_SUBJECT: use constant DEFAULT_SUBJECT => 'Re: 1190: "Time"';
###PERL_DEFAULT_USERNAME: use constant DEFAULT_USERNAME => 'username';
-###PERL_TMP_PATH: use constant TMP_PATH => '/botm/tmp/post';
+###PERL_WGET: use constant WGET => '/usr/bin/wget';
+
+###PERL_TMP_PATH: use constant TMP_PATH => '/botm/tmp/post';
###PERL_MIRROR_URL: use constant MIRROR_URL => 'https://1190.bicyclesonthemoon.info/ott';
my $cookie_path = make_temp_path(TMP_PATH, 'sendpost.cookie.txt');
my $postdata_path = make_temp_path(TMP_PATH, 'sendpost.postdata.txt');
+ wget($post_url, $tmp_path);
+
+
+}
+
+sub wget {
+ (my $url, my $path, my $postdata) = @_;
+
+ my @arg = (WGET, '-q', $url, '-O', $path);
+ system_encoded(WGET, @arg);
+
- print $post_url."\n";
- print $tmp_path."\n";
- print $cookie_path."\n";
- print $postdata_path."\n";
+ return 1;
}
PERL_MIRROR_URL = @_PERL_CONSTANT_STR( MIRROR_URL , $mirror_url)
PERL_TMP_PATH = @_PERL_CONSTANT_STR( TMP_PATH , $tmp_path)
+PERL_WGET = @_PERL_CONSTANT_STR( WGET , $wget)
+
PERL_LIB = @_PERL_USE_2(lib, @_PERL_STR($lib_path))