简体   繁体   中英

500 Can't connect , PERL with Soap::LITE

This is the error:

500 Can't connect to itorrents.org:443 at C:\Users\sussq\Desktop\perl2exe\caching.pl line 10

And this is the code:

#!/usr/bin/perl

use MIME::Base64 ();
use SOAP::Lite ();

open( FILE, 'my.torrent' ) or die "$!";
while( read( FILE, $buf, 60*57 ) ) { $tor .= MIME::Base64::encode( $buf ); }
close( FILE );

$infoHash = SOAP::Lite->service( 'file:///C:/Users/sussq/Desktop/perl2exe/torrage.wsdl' )->cacheTorrent( $tor );

print $infoHash;

This code should connect to a website and send data (caching a -file) with the website's api writted onyl in perl. I use the IDE "Padre" and i'm not fluently in this language(english), from the help of an expert i succefully solved this annoying problem. (Read above).

It's simple, the website i was trying to create a connection is banned in my region. If you have this problem it's cause by: -The website is down; OR -The website is banned in your region; OR -You typed "https" instead of "http" writing the URL; OR -You typed "http" instead of "https" writing the URL; OR -You don't installed the correct modules; Hope i helped you!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM