Is this an operating system issue or wget? I am using wget version 1.10.2b on Windows 98 and XP. I had this problem on both operating systems. I downloaded the binaries from http://www.christopherlewis.com/.
I created and executed the following batch file containing a wget command: wget --convert-links --directory-prefix="C:\Program Files\wget\test" --no-clobber --output-file=no_work_logfile.txt "http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=/netaht ml/PTO/search-adv.html&r=0&p=1&f=S&l=50&Query=isd/01/01/2000->12/31/2010+and +(aclm/(software+and+hardware)+or+ttl/(software+and+hardware)+or+spec/(softw are+and+hardware))&d=PTXT" In this case, it does not like the automatically-generated filename. The following is the resulting logfile: --21:50:18-- http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=/netahtml/PTO/search-adv.html&r=0&p=1&f=S&l=50&Query=isd/01/01/2000-%3E12/31/2010+and+(aclm/(software+and+hardware)+or+ttl/(software+and+hardware)+or+spec/(software+and+hardware))&d=PTXT => `C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware)+or+spec% 2F(software+and+hardware))&d=PTXT' Resolving patft.uspto.gov... 151.207.240.33, 151.207.240.26, 151.207.240.23 Connecting to patft.uspto.gov|151.207.240.33|:80... connected. HTTP request sent, awaiting response... 200 Script results follow Length: unspecified [text/html] C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware)+or+spec% 2F(software+and+hardware))&d=PTXT: No such file or directory Cannot write to `C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware)+or+spec% 2F(software+and+hardware))&d=PTXT' (No such file or directory). C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware)+or+spec% 2F(software+and+hardware))&d=PTXT: No such file or directory Converting C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware)+or+spec% 2F(software+and+hardware))&d=PTXT... nothing to do. Converted 1 files in 0.000 seconds. However, when I eliminate the third field (spec) in the request, which shortens the length of the filename, like this: wget --convert-links --directory-prefix="C:\Program Files\wget\test" --no-clobber --output-file=works_logfile.txt "http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=/netaht ml/PTO/search-adv.html&r=0&p=1&f=S&l=50&Query=isd/01/01/2000->12/31/2010+and +(aclm/(software+and+hardware)+or+ttl/(software+and+hardware))&d=PTXT" it works fine. Its logfile is: --21:50:06-- http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=/netahtml/PTO/search-adv.html&r=0&p=1&f=S&l=50&Query=isd/01/01/2000-%3E12/31/2010+and+(aclm/(software+and+hardware)+or+ttl/(software+and+hardware))&d=PTXT => `C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware))&d=PTXT' Resolving patft.uspto.gov... 151.207.240.23, 151.207.240.33, 151.207.240.26 Connecting to patft.uspto.gov|151.207.240.23|:80... connected. HTTP request sent, awaiting response... 200 Script results follow Length: unspecified [text/html] 0K .......... .......... .......... .......... .......... 63.36 KB/s 50K .......... .... 123.64 KB/s 21:50:12 (71.20 KB/s) - `C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware))&d=PTXT' saved [66128] Converting C:/Program Files/wget/test/[EMAIL PROTECTED]&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsea rch-adv.html&r=0&p=1&f=S&l=50&Query=isd%2F01%2F01%2F2000-%3E12%2F31%2F2010+a nd+(aclm%2F(software+and+hardware)+or+ttl%2F(software+and+hardware))&d=PTXT. .. 2-178 Converted 1 files in 0.026 seconds. The original http request works fine when I use it directly in a browser, so that appears OK. Is this an operating system issue or wget or . . . ? Perhaps someone could try it on a Unix variant? Thanks, Alan