I am having problems getting wget to download a file using the -A option. On
a sol2.6 box with wget 1.7, I can use the following command string to
download the latest patch from sunsolve:

wget -m -nd -L -l2 -A "109543*" "http://sunsolve.sun.com/autopatch"; 
It will retrieve 109543-20 and 109543.readme
(I am setting the http-user and proxy-user stuff in the wgetrc file for this
example)

If I try the same command string on a sol8 box with wget 1.8.2, it seems to
connect fine but never matches the pattern. Here is the debug output:

 <<debug.txt>> 
Any help would be greatly appreciated.


Thanks,

Kevin C. Martin
Distributed Services Infrastructure


DEBUG output created by Wget 1.8.2 on solaris2.8.

Enqueuing http://sunsolve.sun.com/autopatch at depth 0
Queue count 1, maxcount 1.
Dequeuing http://sunsolve.sun.com/autopatch at depth 0
Queue count 0, maxcount 1.
--15:04:53--  http://sunsolve.sun.com/autopatch
           => `autopatch'
Resolving proxy.dx.deere.com... done.
Caching proxy.dx.deere.com => 164.121.13.90
Connecting to proxy.dx.deere.com[164.121.13.90]:80... connected.
Created socket 4.
Releasing 5cee8 (new refcount 1).
---request begin---
GET http://sunsolve.sun.com/autopatch HTTP/1.0
User-Agent: Wget/1.8.2
Host: sunsolve.sun.com
Accept: */*
Authorization: Basic MTAwMDIwMjM6NDI4OQ==
Proxy-Authorization: Basic a200NDM0NTppaDY2bXA=

---request end---
Proxy request sent, awaiting response... HTTP/1.0 302 Moved Temporarily
Date: Thu, 10 Oct 2002 20:00:53 GMT
Server: Apache/1.3.20 (Unix) mod_perl/1.26 mod_ssl/2.8.4 OpenSSL/0.9.6b
Location: http://sunsolve.Sun.COM/private-cgi/show.pl?target=raw-patches&display=plain
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from megalon1
Proxy-Connection: close


Location: http://sunsolve.Sun.COM/private-cgi/show.pl?target=raw-patches&display=plain 
[following]
Closing fd 4
--15:04:53--  
http://sunsolve.sun.com/private-cgi/show.pl?target=raw-patches&display=plain
           => `show.pl?target=raw-patches&display=plain'
Found proxy.dx.deere.com in host_name_addresses_map (5cee8)
Connecting to proxy.dx.deere.com[164.121.13.90]:80... connected.
Created socket 4.
Releasing 5cee8 (new refcount 1).
---request begin---
GET http://sunsolve.sun.com/private-cgi/show.pl?target=raw-patches&display=plain 
HTTP/1.0
User-Agent: Wget/1.8.2
Host: sunsolve.sun.com
Accept: */*
Authorization: Basic MTAwMDIwMjM6NDI4OQ==
Proxy-Authorization: Basic a200NDM0NTppaDY2bXA=

---request end---
Proxy request sent, awaiting response... HTTP/1.0 200 OK
Date: Thu, 10 Oct 2002 20:00:54 GMT
Server: Apache/1.3.20 (Unix) mod_perl/1.26 mod_ssl/2.8.4 OpenSSL/0.9.6b
Last-Modified: Thu, 10 Oct 2002 11:7:43 GMT
Content-Type: text/html
X-Cache: MISS from megalon1
Proxy-Connection: close


Length: unspecified [text/html]

    0K .......... .......... .......... .......... ..........  177.94 KB/s
   50K .......... .......... .......... .......... ..........  549.45 KB/s
  100K .......... .......... .......... .......... ..........  416.67 KB/s
  150K .......... .......... .......... .......... ..........    1.95 MB/s
  200K .......... .......... .......... .......... ..........  781.25 KB/s
  250K .......... .......... .......... .......... ..........  735.29 KB/s
  300K .......... .......... .......... .......... ..........    2.03 MB/s
  350K .......... .......... .......... .......... ..........  574.71 KB/s
  400K .......... .......... .......... .......... ..........  877.19 KB/s
  450K .......... .......... .......... .......... ..........  781.25 KB/s
  500K .......... .......... .......... .......... ..........  746.27 KB/s
  550K .......... .......... .......... .......... ..........    1.68 MB/s
  600K .......... .......... .......... .......... ..........  735.29 KB/s
  650K .......... .......... .......... .......... ..........  714.29 KB/s
  700K .......... .......... .......... .......... ..........  735.29 KB/s
  750K .......... .......... .......... .......                862.49 KB/s

Closing fd 4
15:04:58 (642.00 KB/s) - `show.pl?target=raw-patches&display=plain' saved [805977]

Deciding whether to enqueue 
"http://sunsolve.sun.com/private-cgi/show.pl?target=raw-patches&display=plain";.
It doesn't really look like a relative link.
Decided NOT to load it.
Redirection 
"http://sunsolve.sun.com/private-cgi/show.pl?target=raw-patches&display=plain"; failed 
the test.
Removing file due to recursive rejection criteria in recursive_retrieve():
Removing show.pl?target=raw-patches&display=plain since it should be rejected.

FINISHED --15:04:58--
Downloaded: 805,977 bytes in 1 files

Reply via email to