Pull any environmental values we may need.

Domain = burlingtonvt.org

Source Web Page =

Missing Target Web Page =

path of missing file/web page = /cgi-bin/photo-bar.pl

Browser or Crawler type = CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Set up a default value of "/photo-bar.html" for $photo-bar

If the webpage url ends in "/" then $photo_bar = "" + "/photo-bar.html".


negative


lenparam...0.......filepos...-1.......lastdigit........top_page...


photo_bar.../photo-bar.html...

if the webpage url ends in "index.html" then $photo_bar = "" (without the "index.html") + "photo-bar.html"


negative


lenparam...0.......filepos...-10.......lastdigit........top_page...


photo_bar.../photo-bar.html...

if the webpage url ends in "home.html" then /photo-bar.html ="" + "/photo-bar.html"


negative


lenparam...0.......filepos...-9.......lastdigit........top_page...


photo_bar.../photo-bar.html...

if the webpage url ends in "more.html" then /photo-bar.html ="" + "/photo-bar.html"


negative


lenparam...0.......filepos...-9.......lastdigit........top_page...


photo_bar.../photo-bar.html...if the webpage url ends in "more" + 1 number then $photo_bar ="" + "/photo-bar" + that number + ".html"


negative


lenparam...0.......filepos...-10.......lastdigit........top_page...


photo_bar.../photo-bar.html...

if the webpage url ends in "more" + 2 digit number then /photo-bar.html ="$top_page" + "/photo-bar" + that number + ".html"


negative


lenparam...0.......filepos...-11.......lastdigit........top_page...


photo_bar.../photo-bar.html...

Now we will give the rest of the web site a chance to load. After 5 seconds I will download the photos at /photo-bar.html !! We want to give the main content a chance to download first. This make the downloading of the web page more pallettable for Phone-line Internet Surfers.