Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using wget to test with a squid proxy server??? (syntax needed).

461 views
Skip to first unread message

Milton Vega

unread,
May 21, 2003, 11:35:07 PM5/21/03
to
Hi:

I have a squid proxy server running. Its setup.
The proxy server is sitting on one box (Box A)

On another box (on Box B), I have the GNU wget
utility installed for test purposes
(in other words, wget is on Box B to test squid on
Box A).

The question is, what is the syntax to tell
wget to fetch say "http://www.yahoo.com", but
to specify that is has to use the proxy
server on box A that is listening on port
80.

Box B Box A
|--------| |------------|
| | | Squid Prxy |
----| wget |<----->| listening |<-----> Internet
| | | on port 80 |
|--------| |------------|

I dont see on the wget command line where you
can specify the proxy server. Is it specified
right in the URL using a special URL syntax
where that proxy information is embedded in
the URL?

Or is it specified through the use of .wgetrc
file or environment variables.

Can someone provide various examples on how
to do this DIFFERENT WAYS.

Thank You,
Milton

Darren Dunham

unread,
May 21, 2003, 11:52:26 PM5/21/03
to
Milton Vega <ho...@m-vega.com> wrote:
> The question is, what is the syntax to tell
> wget to fetch say "http://www.yahoo.com", but
> to specify that is has to use the proxy
> server on box A that is listening on port
> 80.

> I dont see on the wget command line where you


> can specify the proxy server. Is it specified
> right in the URL using a special URL syntax
> where that proxy information is embedded in
> the URL?

I believe it is the PROXYSERVER environment variable. Check the man
page or something. I'm sure it's a variable like that that will work.


--
Darren Dunham ddu...@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >

Gary Schmidt

unread,
May 22, 2003, 4:26:06 AM5/22/03
to
Darren Dunham wrote:
> Milton Vega <ho...@m-vega.com> wrote:
>
>>The question is, what is the syntax to tell
>>wget to fetch say "http://www.yahoo.com", but
>>to specify that is has to use the proxy
>>server on box A that is listening on port
>>80.
>
>
>>I dont see on the wget command line where you
>>can specify the proxy server. Is it specified
>>right in the URL using a special URL syntax
>>where that proxy information is embedded in
>>the URL?
>
>
> I believe it is the PROXYSERVER environment variable. Check the man
> page or something. I'm sure it's a variable like that that will work.
>
>

In your .wgetrc, put:
http_proxy = http://proxy_name:portno/

News Account

unread,
May 22, 2003, 4:57:38 AM5/22/03
to
http://www.gnu.org/manual/wget/html_mono/wget.html#SEC36

Don Woodward

"Milton Vega" <ho...@m-vega.com> wrote in message
news:3ECC456B...@m-vega.com...

NYCeyes

unread,
May 22, 2003, 12:11:59 PM5/22/03
to
Thanks for the information. I was aware of .wgetrc file
and environment variables, but thought there might be
a way of embedding the proxy server information in the
URL. That said, I havnt even tried the .wgetrc method
yet (hoping for the URL form) so thank your for the
syntax within .wgetrc.

Thanks to all,
Milton

0 new messages