|
General Details
|
|
Perl
|
|
Posted 3.42 Years Ago
|
|
921 Views
|
|
Received 1 Rating
|
|
HTTP Proxy Checker
Description
First version, next will read from a file.
Technical
Need ativestate for perl installed.
Source Code
Comments
| Please login to post comments. |
|
|
Yeah i could tell you had been learning perl haha. Nice one mate.
|
|
|
You said the next version will read from a file. If you design that script slightly better you can both accept input from the command line AND read from files by using STDIN ;-)
Instead of: $ua->get("http://google.com");
Where you have hard coded the URL... use arrays and use: chomp(@urls = <STDIN>);
Then loop through as you would normally for arrays...
This will allow the user to type in as many URLs as they like, with one URL per line in the console... and then press Ctrl+D (on linux to signify EOL)... thats if you want them to type them... if they have a file with URL's in just use this when executing the script:
script.pl < urls.txt
also... it will allow them to pipe data between scripts ;-) giving it maximum flexibility.
Kind regards,
Scott
P.S. If you haven't noticed, i've been learning Perl and quite comfortable with Linux now ;-)
|
|
|
No, Well it would take time obviously but if you make it print out each one as it's doing it. Then it wouldn't be too bad leaving it.
|
|
|
I guess that can be useful in some cases, anyway to get it check for a large database with proxies, and would that be very slow?
|
More "Perl" Source Codes By This Author
Recently Posted "Perl" Source Codes
Recently Rated "Perl" Source Codes
|