URL: http://bcmoney-mobiletv.com/blog/2009/05/01/the-server-side-proxy/
Source for handling HTTP requests easily in Perl: http://stackoverflow.com/questions/134858/whats-the-simplest-way-to-make-a-http-get-request-in-perl
Work with N.Y.Times JSON API in Perl/AJAX: http://notetodogself.blogspot.com/2009/02/using-jquery-with-nyt-json-api.html
Handling HTTP Requests in Perl: http://perl.active-venture.com/lib/HTTP/Request/Common.html
Perl CGI Module: http://www.gossland.com/course/cgi_module/index.html
How to read URL Parameters in Perl: http://www.webdeveloper.com/forum/showthread.php?p=842109
How to read command-line args in Perl: http://www.devdaily.com/perl/perl-command-line-arguments-read-args
#UNIX #!/usr/bin/perl #WIN #!c:/Perl/perl use LWP::Simple; use CGI; $cl = $ARGV[0]; #command-line $qp = CGI::param('url'); #query parameter #DEBUG: print('Query: ' . $qp . ' | Command-line: ' . $cl . "\n\n"); #default to some URL, try to use query parameter or command-line first my ($type, $length, $mod) = head($url); $content = get($url); print $content;
You need to login to post a comment.
