1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <title>Wget Gateway</title>
|
---|
5 | <link rev="made" href="mailto:Antonio.Rosella@agip.it">
|
---|
6 | </head>
|
---|
7 |
|
---|
8 | <body>
|
---|
9 | <h1>Wget Gateway</h1>
|
---|
10 | <p>
|
---|
11 | Welcome to Wget Gateway, a simple page showing the usage of
|
---|
12 | socksified wget behind a firewall. In my configuration it is
|
---|
13 | very useful because:
|
---|
14 | <ul>
|
---|
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
|
---|
19 | </ul>
|
---|
20 |
|
---|
21 | <p>
|
---|
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
|
---|
24 | is:
|
---|
25 | <ul>
|
---|
26 | <li> A socksified copy of
|
---|
27 | <a href="ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/wget.tar.gz">
|
---|
28 | wget</a>
|
---|
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
|
---|
34 | </ul>
|
---|
35 | This is my h/s configuration:
|
---|
36 | <pre>
|
---|
37 |
|
---|
38 | +----------+ +----------------------------------+ +---------------------+
|
---|
39 | | Firewall | | Host that can exit from firewall | | Intranet www server |
|
---|
40 | +----------+ | htceff | +---------------------+
|
---|
41 | +----------------------------------+ | Wget.html |
|
---|
42 | | socksified wget | +---------------------+
|
---|
43 | | cgi-lib.pl |
|
---|
44 | | perl |
|
---|
45 | | wget.cgi |
|
---|
46 | +----------------------------------+
|
---|
47 | </pre>
|
---|
48 | <p>
|
---|
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.:
|
---|
52 | <ul>
|
---|
53 | <li> download.html requires wget.cgi
|
---|
54 | <li> wget.cgi requires Perl, cgi-lib.pl and wget
|
---|
55 | <li>
|
---|
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).
|
---|
62 | </ul>
|
---|
63 | <p>
|
---|
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
|
---|
66 |
|
---|
67 | <hr>
|
---|
68 | <form method="get" action="http://localhost/cgi-bin/wget.cgi">
|
---|
69 | <h3>Downloading (optionally recursive)</h3>
|
---|
70 | <ul>
|
---|
71 | <li>
|
---|
72 | Recursion:
|
---|
73 | <Select name=Recursion>
|
---|
74 | <Option selected value=N>No</Option>
|
---|
75 | <Option value=Y>Yes</Option>
|
---|
76 | </Select>
|
---|
77 | <li>
|
---|
78 | Depth:
|
---|
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
|
---|
84 | <li>
|
---|
85 | Url to download: <input name="url" size=50>
|
---|
86 | <li>
|
---|
87 | Destination directory: <input name="destdir" size=50>
|
---|
88 | </ul>
|
---|
89 | Now you can <input type="submit" value="download"> the
|
---|
90 | requested URL or <input type="reset" value="reset"> the form.
|
---|
91 | </form>
|
---|
92 | <hr>
|
---|
93 | Feedback is always useful! Please contact me at
|
---|
94 | <address>
|
---|
95 | <a href="mailto:Antonio.Rosella@agip.it">Antonio Rosella<Antonio.Rosella@agip.it></a>.
|
---|
96 | </address>
|
---|
97 | You can send your suggestions or bug reports for Wget to
|
---|
98 | <address>
|
---|
99 | <a href="mailto:hniksic@arsdigita.com">Hrvoje Niksic <hniksic@arsdigita.com></a>.
|
---|
100 | </address>
|
---|
101 | <!-- hhmts start -->
|
---|
102 | Last modified: October 23, 2000
|
---|
103 | <!-- hhmts end -->
|
---|
104 | </body>
|
---|
105 | </html>
|
---|
106 |
|
---|