¾Æ·¡ ÄÚµå´Â ȨÆäÀÌÁö µî·Ï½Ã À¥ÆäÀÌÁöÀÇ Á¸ÀçÀ¯¹«¸¦ ÆľÇÇؼ
¿¡·¯ Äڵ带 º¸¿©ÁÝ´Ï´Ù. Áï ¼¹ö ¿¡·¯ÄÚµå... µî·ÏÇÏ·Á´Â ȨÆäÀÌÁö°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì... ¼¹öÃø 404, 500 µîÀÇ
¿¡·¯ Äڵ带 º¸¿©ÁÝ´Ï´Ù.
¾Æ·¡¼ø¼´ë·Î Äڵ带 add.cgi¿¡ »ðÀÔÇÏ½Ã¸é µË´Ï´Ù.
add.cgi ÀÇ sub main À§¿¡ ¾Æ·¡Äڵ带 »ðÀÔÇÏ°í,
use LWP::UserAgent;
# Validate the form input.. À̶õ ºÎºÐÀ» ã¾Æ ¾Æ·¡ Äڵ带 »ðÀÔÇÏ½Ã¸é µË´Ï´Ù.
my $URL = ($in{
URL
});$ua = new LWP::UserAgent;$ua->agent("UrlScope/8.0");$ua->timeout(30); # in
seconds$req = new
HTTP::Request GET
=> ($in{
URL
});$res = $ua->request($req);if ($res->is_error)
{&site_html_add_failure ("URL: $in{
URL
} -" . " " . $res->code . " " . $res->message);return;} if
($res->is_success) {
¸¶Áö¸·À¸·Î ´ÙÀ½ ÇÑÁÙÀ» Áö¿ì°Å³ª ÄÞ¸àÆ® ó¸®... #
if ($status eq "ok") {
ºÎµð ¼º°øÇϽñæ ...