1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
4 <title>Wget Gateway</title>
5 <link rev="made" href="mailto:Antonio.Rosella@agip.it">
13 Welcome to Wget Gateway, a simple page showing the usage of
14 socksified wget behind a firewall. In my configuration it is
17 <li>Only few users can exit from firewall
18 <li>A lot of users need information that can be reached in Internet
19 <li>I cannot dowload big files during my job time, so, I
20 have to schedule the requests after the normal work time
24 With the combination of a socksified wget and a simple cgi
25 that schedules the requests can I reach the aim. All you need
28 <li> A socksified copy of
29 <a href="ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/wget.tar.gz">
31 <li> Perl (available on all the GNU mirroring sites)
32 <li> cgi-lib.pl (available at
33 <a href="ftp://ftp.switch.ch/mirror/CPAN/ROADMAP.html">CPAN</a>)
34 <li> A customized copy of this html
35 <li> A customized copy of socks.cgi
37 This is my h/s configuration:
40 +----------+ +----------------------------------+ +---------------------+
41 | Firewall | | Host that can exit from firewall | | Intranet www server |
42 +----------+ | htceff | +---------------------+
43 +----------------------------------+ | Wget.html |
44 | socksified wget | +---------------------+
48 +----------------------------------+
51 wget.cgi, wget and cgi-lib.pl are located in the usual
52 cgi-bin directory. The customization of wget.cgi and
53 wget.html has to reflect you installation, i.e.:
55 <li> download-netscape.html requires wget.cgi
56 <li> wget.cgi requires Perl, cgi-lib.pl and wget
58 wget.cgi has to download the files to a directory writable
59 by the user submitting the request. At the moment I have an
60 anonymous ftp installed on <em>htceff</em>, and wget puts
61 dowloaded files to /pub/incoming directory (if you look at
62 wget.cgi, it sets the destdir to "/u/ftp/pub/incoming" if
63 the user leaves it blank).
66 You can also add other parameters that you want to pass to wget,
67 but in this case you will also have to modify wget.cgi
70 <form method="get" action="http://localhost/cgi-bin/wget.cgi">
73 <td>Recursive Download
74 <td><select name=Recursion>
75 <Option selected value=N>No</Option>
76 <Option value=Y>Yes</Option>
82 <td><input type="radio" name=depth value=1 checked> 1
83 <td><input type="radio" name=depth value=2 > 2
84 <td><input type="radio" name=depth value=3 > 3
85 <td><input type="radio" name=depth value=4 > 4
86 <td><input type="radio" name=depth value=5 > 5
90 <td>Url to download: <td><input name="url" size=50><TR>
91 <td>Destination directory: <td><input name="destdir" size=50><TR>
95 <font color=yellow><input type="submit" value="download"></font>
97 <font color=yellow><input type="reset" value="reset"></font>
101 Feedback is always useful! Please contact me at
103 <a href="mailto:Antonio.Rosella@agip.it">Antonio Rosella<Antonio.Rosella@agip.it></a>.
105 You can send your suggestions or bug reports for Wget to
107 <a href="mailto:hniksic@arsdigita.com">Hrvoje Niksic <hniksic@arsdigita.com></a>.
110 Last modified: Mon Oct 23 17:40:03 CEST 2000