Code: Select all
This URL: https://www.youtube.com/watch?v=HMUDVMiITOU&feature=kp doesn't really exist!! Return Code: 501
$VAR1 = bless( {
'isdupe' => 0,
'date' => '2014-06-17 14:10:31',
'parseline' => '[14:10:31:2014-06-17] <Nocty> https://www.youtube.com/watch?v=HMUDVMiITOU&feature=kp',
'body' => 'https://www.youtube.com/watch?v=HMUDVMiITOU&feature=kp',
'mimetype_returncode' => 501,
'type' => 'irc',
'announcer' => 'Nocty',
'mimetype' => 'text/plain',
'www_url' => 'https://www.youtube.com/watch?v=HMUDVMiITOU&feature=kp'
}, 'Links' );
Code: Select all
This URL: https://www.youtube.com/watch?v=HMUDVMiITOU&t=10 doesn't really exist!! Return Code: 500
$VAR1 = bless( {
'isdupe' => 0,
'date' => '2014-07-24 11:30:46',
'parseline' => '[11:30:46:2014-07-24] <@Nocty> https://www.youtube.com/watch?v=HMUDVMiITOU&t=10',
'body' => 'https://www.youtube.com/watch?v=HMUDVMiITOU&t=10',
'mimetype_returncode' => 500,
'type' => 'irc',
'announcer' => 'Nocty',
'mimetype' => 'text/plain',
'www_url' => 'https://www.youtube.com/watch?v=HMUDVMiITOU&t=10'
}, 'Links' );
Code: Select all
Initialize Links Object
Checking existance of site in database..
not dupe
This URL: https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg doesn't really exist!! Return Code: 501
$VAR1 = bless( {
'isdupe' => 0,
'date' => '2014-07-18 03:01:17',
'parseline' => '[03:01:17:2014-07-18] <Frank> https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg btfo',
'body' => 'https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg btfo',
'mimetype_returncode' => 501,
'type' => 'irc',
'announcer' => 'Frank',
'mimetype' => 'text/plain',
'www_url' => 'https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg'
}, 'Links' );
0 entries added/updated to the database.
done.
Code: Select all
user@AALurker:~/links$ perl test.pl
Trying https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg
The type is text/plain
Trying http://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/1513695_314741348650880_1231833456_n.jpg
The type is image/jpeg
I was able to resolve this issue by re-installing via the CPAN shell. Using sudo or at a root console:This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the CPAN tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install.
Code: Select all
root@AALurker: perl -MCPAN -eshell (may need to initialize, answer all questions with default answer)
cpan> install Bundle::LWP (again answer default or "yes" for all questions)
cpan> install LWP::Protocol::https (again answer default or "yes" for all questions)
Code: Select all
Initialize Links Object
Checking existance of site in database..
not dupe
Remote Server Mime Type: text/html
Title: Blaze Loves His Kennel (ORIGINAL) Husky Says No to Kennel - Funny - YouTube
Entering site...
MYSQL:INSERT INTO links (site, announcer, edate, type, title, filename, twidth, theight, width, height, appid) VALUES ('https://www.youtube.com/watch?v=hCRDskZrUMU', 'Nocty', '2014-07-25 10:39:46', 'irc', 'Blaze Loves His Kennel (ORIGINAL) Husky Says No to Kennel - Funny - YouTube', NULL, NULL, NULL, NULL, NULL, NULL)
Announcer : Nocty URL : https://www.youtube.com/watch?v=hCRDskZrUMU
$VAR1 = bless( {
'isdupe' => 0,
'date' => '2014-07-25 10:39:46',
'parseline' => '[10:39:46:2014-07-25] <@Nocty> https://www.youtube.com/watch?v=hCRDskZrUMU',
'body' => 'https://www.youtube.com/watch?v=hCRDskZrUMU',
'www_img' => 'https://www.youtube.com/watch?v=hCRDskZrUMU',
'mimetype_returncode' => '200',
'title' => 'Blaze Loves His Kennel (ORIGINAL) Husky Says No to Kennel - Funny - YouTube',
'type' => 'irc',
'announcer' => 'Nocty',
'mimetype' => 'text/html',
'www_url' => 'https://www.youtube.com/watch?v=hCRDskZrUMU'
}, 'Links' );
1 entry added/updated to the database.
done.