Operating System - Linux
1748204 Members
4137 Online
108759 Solutions
New Discussion

Re: Using wget to download drivers from HP when the end file URL is not obvious.

 
SOLVED
Go to solution
gctaylor11
Occasional Contributor

Using wget to download drivers from HP when the end file URL is not obvious.

Hi,

 

I need to download a few driver files from HP websites - like this for example:

http://h20564.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=5215387&swItemId=MTX_3b23ebef6e2c44e1bd49a0c2dc&swEnvOid=4103

 

In this example page the only way I'm able to get this is by clicking on the download link.  Is there a way to extract the name so that I can use wget to retrieve these files.  I have other similar pages as well with the same behavior.

 

Thanks,

Gary

2 REPLIES 2
Steven Schweda
Honored Contributor
Solution

Re: Using wget to download drivers from HP when the end file URL is not obvious.

> [...] Is there a way to extract the name so that I can use wget to
> retrieve these files. [...]

 

   If there's an easy way, then I don't see it.  Using Firefox, The
Downloads menu (right-click) has a "Copy Download Link" which could

be useful (or, at least, informative).  For example, I got:

 

http://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1522431361/v101453/README

 

   HP appears to be very proud of its JavaScript capabilities, while
Wget is deficient that way.  Given the one HTTP URL from Firefox, one
might guess that an FTP URL like, say:

 

ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1522431361/v101453/

 

might be interesting.  Wget (-r) should be able to fetch everything
there.  Sadly, with all the JavaScript fun on the original Web page, I
see no easy way to derive this FTP URL from the HTML.

 

   Trying to browse the HTTP server seems to lead to all the "403

Forbidden" errors one could want, but, if you can find what you want by
browsing the FTP server, then Wget might be more useful.

 

> [...] I have other similar pages as well with the same behavior.

 

   With my weak psychic powers, I can only guess whether those would

be similarly JavaScript-rich, and, hence, comparably insusceptible to a
direct attack by Wget.

Jimmy Vance
HPE Pro

Re: Using wget to download drivers from HP when the end file URL is not obvious.

Since your using wget, I'm going to assume (yeah yeah yeah) your're looking for Linux drivers.

 

You might check the SDR (software delivery repository)

http://downloads.linux.hp.com

 

 

current SPP link: (includes firmware packaged as RPM's now instead of just .scexe files)

http://downloads.linux.hp.com/SDR/repo/spp/2015.04.0/hp/swpackages/

 

 

No support by private messages. Please ask the forum!