1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <title>Wget Gateway</title>
5 <link rev="made" href="mailto:Antonio.Rosella@agip.it">
11 Welcome to Wget Gateway, a simple page showing the usage of
12 socksified wget behind a firewall. In my configuration it is
15 <li>Only few users can exit from firewall
16 <li>A lot of users need information that can be reached in Internet
17 <li>I cannot dowload big files during my job time, so, I
18 have to schedule the requests after the normal work time
22 With the combination of a socksified wget and a simple cgi
23 that schedules the requests can I reach the aim. All you need
26 <li> A socksified copy of
27 <a href="ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/wget.tar.gz">
29 <li> Perl (available on all the GNU mirroring sites)
30 <li> cgi-lib.pl (available at
31 <a href="ftp://ftp.switch.ch/mirror/CPAN/ROADMAP.html">CPAN</a>)
32 <li> A customized copy of this html
33 <li> A customized copy of socks.cgi
35 This is my h/s configuration:
38 +----------+ +----------------------------------+ +---------------------+
39 | Firewall | | Host that can exit from firewall | | Intranet www server |
40 +----------+ | htceff | +---------------------+
41 +----------------------------------+ | Wget.html |
42 | socksified wget | +---------------------+
46 +----------------------------------+
49 wget.cgi, wget and cgi-lib.pl are located in the usual
50 cgi-bin directory. The customization of wget.cgi and
51 wget.html has to reflect you installation, i.e.:
53 <li> download.html requires wget.cgi
54 <li> wget.cgi requires Perl, cgi-lib.pl and wget
56 wget.cgi has to download the files to a directory writable
57 by the user submitting the request. At the moment I have an
58 anonymous ftp installed on <em>htceff</em>, and wget puts
59 dowloaded files to /pub/incoming directory (if you look at
60 wget.cgi, it sets the destdir to "/u/ftp/pub/incoming" if
61 the user leaves it blank).
64 You can also add other parameters that you want to pass to wget,
65 but in this case you will also have to modify wget.cgi
68 <form method="get" action="http://localhost/cgi-bin/wget.cgi">
69 <h3>Downloading (optionally recursive)</h3>
73 <Select name=Recursion>
74 <Option selected value=N>No</Option>
75 <Option value=Y>Yes</Option>
79 <input type="radio" name=depth value=1 checked>1
80 <input type="radio" name=depth value=2 >2
81 <input type="radio" name=depth value=3 >3
82 <input type="radio" name=depth value=4 >4
83 <input type="radio" name=depth value=5 >5
85 Url to download: <input name="url" size=50>
87 Destination directory: <input name="destdir" size=50>
89 Now you can <input type="submit" value="download"> the
90 requested URL or <input type="reset" value="reset"> the form.
93 Feedback is always useful! Please contact me at
95 <a href="mailto:Antonio.Rosella@agip.it">Antonio Rosella<Antonio.Rosella@agip.it></a>.
97 You can send your suggestions or bug reports for Wget to
99 <a href="mailto:hniksic@arsdigita.com">Hrvoje Niksic <hniksic@arsdigita.com></a>.
102 Last modified: October 23, 2000