aboutsummaryrefslogtreecommitdiff
path: root/sbosubmit
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-09-08 20:51:08 -0400
committerB. Watson <yalhcru@gmail.com>2016-09-08 20:51:08 -0400
commit132399131386a4a386bc2a7a07ca2c5156fb3e22 (patch)
tree67e0530d777d58ea4f3aea7134a5dbd1204ccd6c /sbosubmit
parent8aa70b89e8a285c25c435176f1d01d33f9071fc2 (diff)
downloadsbostuff-132399131386a4a386bc2a7a07ca2c5156fb3e22.tar.gz
add license/author info to sbosubmit, use https since http no longer works
Diffstat (limited to 'sbosubmit')
-rwxr-xr-xsbosubmit9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbosubmit b/sbosubmit
index cbf3040..95db5d9 100755
--- a/sbosubmit
+++ b/sbosubmit
@@ -1,5 +1,10 @@
#!/usr/bin/perl -w
+# automated submission client for slackbuilds.org web form.
+# by B. Watson <yalhcru@gmail.com>.
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# run with no arguments for usage instructions.
+
use LWP;
use Getopt::Std;
@@ -100,7 +105,7 @@ print STDERR "Uploading...";
$ua = LWP::UserAgent->new;
$ua->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)');
$resp = $ua->post(
- 'http://slackbuilds.org/process_submit/',
+ 'https://slackbuilds.org/process_submit/',
[ MAX_FILE_SIZE => '100000',
userfile => [ $userfile ],
category => $category,
@@ -109,7 +114,7 @@ $resp = $ua->post(
comments => $comments,
submit => 'Upload File' ],
Content_Type => 'form-data',
- Referer => 'http://slackbuilds.org/submit/',
+ Referer => 'https://slackbuilds.org/submit/',
);
print STDERR "\n";