logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Handling search scripts?: msg#00067

Subject: Handling search scripts?
How can one handle the following, where the URL is a search script? The URL will load the base page into one's browser correctly, but when it is used as an argument for WGET, WGET tries to use it as an output filename, and the filename contains invalid characters for Windows. Wget 1.8.2 for Windows.


H:\WGET>WGET -N -r -l 2 -k -K -p -np -e robots=off http://thomas.loc.gov/cgi-bin/cpquery/z?cp108:hr126:
--07:53:06--  http://thomas.loc.gov/cgi-bin/cpquery/z?cp108:hr126:
           => `thomas.loc.gov/cgi-bin/cpquery/z@cp108:hr126:'
Resolving thomas.loc.gov... done.
Connecting to thomas.loc.gov[140.147.249.9]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
thomas.loc.gov/cgi-bin/cpquery/z@cp108:hr126:: Invalid argument

Cannot write to `thomas.loc.gov/cgi-bin/cpquery/z@cp108:hr126:' (Invalid argument).

FINISHED --07:53:09--
Downloaded: 0 bytes in 0 files
thomas.loc.gov/cgi-bin/cpquery/z@cp108:hr126:: Invalid argument
Converting thomas.loc.gov/cgi-bin/cpquery/z@cp108:hr126:... nothing to do.
Converted 1 files in 0.00 seconds.




<Prev in Thread] Current Thread [Next in Thread>