I use wget to fetch the following URL
http://rollyo.com/search.html?q=ruby+scraping+del.icio.us+user&sid=web

The resultant filename is
...rollyo.com/search.html?q=ruby+scraping+del.icio.us+user.html

N.B. truncated at '&' and .html appended

My wget options are

UA="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
BASE="somedir"

ARGS = "--html-extension " +
   "--page-requisites " +
   "--force-directories " +
   "--convert-links "  +
   '--directory-prefix="' + BASE + '/cache2" ' +
   "--timestamping " +
   #{}"--wait=1 " +
       '--restrict-file-names=unix ' +
   '--user-agent="' + UA + '" ' +
       '--append-output="' + BASE + '/wget2.log" ' +
   "--server-response "

How do I get the full file name?

Mac OS X by the way

Ed

Reply via email to