Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: WGET Syntax for a URL with cgi scripts.: msg#00020

web.wget.general

Subject: Re: WGET Syntax for a URL with cgi scripts.

Fred Holmes wrote:
Many thanks for the help. I'm using Windows 32 binary 1.8.2 on WIN2K.

The syntax you have given me gets the first page OK, apparently by using the -O switch to specify a simple filename as the output file, rather than the automatically generated output filename(s). I.e., I get the Table of Contents in content.html. But when I add the rest of my syntax

Sorry, drop the -O part it was as you have guessed only used to avoid files with long strange looking names.

to recurse the links on the TOC page, it still fails. As follows:

D:\Documents and Settings\Administrator\Desktop\New Folder>WGET -d -r -l2 -k -K
-p -np -O content.html "http://thomas.loc.gov/cgi-bin/cpquery/0?r_t=a&r_n=107-79
1&submit=Search&variant=y&acronym=n&syndict=n&spq=n&sort_by_docid=n&d_q=on&dbnam
e=cp107&maxdocs=100&report=hr791.107&xform_type=3&sel=TOCLIST"
DEBUG output created by Wget 1.8.2 on Windows.
>
> (...)

Fred Holmes


At 03:35 PM 1/8/2003, you wrote:

Which version of wget do you use? Would please you include the debug output with the error message if you are running the latest version (1.8.2). As you can see I have no problem with this page.
Yes, you should use quotes to protect the '?' and the '&' from your shell.

$ wget -d -O content.html "http://thomas.loc.gov/cgi-bin/cpquery/0?r_t=a&r_n=107-791&submit=Search&variant=y&acronym=n&syndict=n&spq=n&sort_by_docid=n&d_q=on&dbname=cp107&maxdocs=100&report=hr791.107&xform_type=3&sel=TOCLIST";

--
Med venlig hilsen / Kind regards

Hack Kampbjørn




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation