]> sjero.net Git - wget/blob - util/download-netscape.html
[svn] Hrvoje missed this file when changing his email address from hniksic@iskon...
[wget] / util / download-netscape.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//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     <center>
10       <h1>Wget Gateway</h1>
11     </center>
12     <p>
13       Welcome to Wget Gateway, a simple page showing the usage of
14       socksified wget behind a firewall. In my configuration it is
15       very useful because:
16     <ul>
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
21     </ul>
22
23     <p>
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
26       is:
27     <ul>
28       <li> A socksified copy of
29         <a href="ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/wget.tar.gz">
30           wget</a>
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
36     </ul>
37     This is my h/s configuration:
38     <pre>
39
40 +----------+ +----------------------------------+ +---------------------+
41 | Firewall | | Host that can exit from firewall | | Intranet www server |
42 +----------+ |            htceff                | +---------------------+
43              +----------------------------------+ | Wget.html           |
44              | socksified wget                  | +---------------------+
45              | cgi-lib.pl                       | 
46              | perl                             |
47              | wget.cgi                         |
48              +----------------------------------+
49     </pre>
50     <p>
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.:
54     <ul>
55       <li> download-netscape.html requires wget.cgi
56       <li> wget.cgi requires Perl, cgi-lib.pl and wget
57       <li>
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).
64     </ul>
65     <p>
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
68
69     <hr>
70     <form method="get" action="http://localhost/cgi-bin/wget.cgi">
71       <center>
72         <table border=1>
73             <td>Recursive Download
74             <td><select name=Recursion>
75                 <Option selected value=N>No</Option>
76                 <Option value=Y>Yes</Option>
77               </select>
78         </table>
79         <hr>
80         <table border=1>
81             <td>Depth
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
87         </table>
88         <hr>
89         <table>
90             <td>Url to download: <td><input name="url" size=50><TR>
91             <td>Destination directory: <td><input name="destdir" size=50><TR>
92         </table>
93         <hr>
94         Now you can
95         <font color=yellow><input type="submit" value="download"></font>
96         the requested URL or
97         <font color=yellow><input type="reset" value="reset"></font>
98         the form.
99     </form>
100     <hr>
101     Feedback is always useful! Please contact me at
102     <address>
103       <a href="mailto:Antonio.Rosella@agip.it">Antonio Rosella&lt;Antonio.Rosella@agip.it&gt;</a>.
104     </address>
105     You can send your suggestions or bug reports for Wget to
106     <address>
107       <a href="mailto:hniksic@arsdigita.com">Hrvoje Niksic &lt;hniksic@arsdigita.com&gt;</a>.
108     </address>
109     <!-- hhmts start -->
110 Last modified: Mon Oct 23 17:40:03 CEST 2000
111 <!-- hhmts end -->
112   </body>
113 </html>
114