nixp.ru v3.0

20 апреля 2024,
суббота,
01:10:37 MSK

danikcom написал 5 марта 2006 года в 18:36 (940 просмотров) Ведет себя как мужчина; открыл 52 темы в форуме, оставил 132 комментария на сайте.

как использовать wget если при доступе в инет надо использовать proxy, login & password?

rgo

эээ. ммм. не помню точно. давай ты сам в `info wget' заглянешь. ;)

я ввожу:

wget --proxy=on --proxy-user=domen\user --proxy-passwd=password http://url

а он мне:

Can’t timestamp and not clobber old files at the same time.

Usage: wget [OPTION]…

И есче, не понятно как указывать proxy:port

rgo

Вот… Блин! Так бы и дал по голове… Я понимаю ты ленивый, но не за мой же счёт.

In addition to the environment variables, proxy location and settings

may be specified from within Wget itself.

`--no-proxy'

`proxy = on/off'

This option and the corresponding command may be used to suppress

the use of proxy, even if the appropriate environment variables

are set.

`http_proxy = URL'

`ftp_proxy = URL'

`no_proxy = STRING'

These startup file variables allow you to override the proxy

settings specified by the environment.

Some proxy servers require authorization to enable you to use them.

The authorization consists of «username» and «password», which must be

sent by Wget. As with HTTP authorization, several authentication

schemes exist. For proxy authorization only the `Basic' authentication

scheme is currently implemented.

You may specify your username and password either through the proxy

URL or through the command-line options. Assuming that the company’s

proxy is located at `proxy.company.com' at port 8001, a proxy URL

location containing authorization data might look like this:

http://hniksic:mypassword@proxy.company.com:8001/

Alternatively, you may use the `proxy-user' and `proxy-password'

options, and the equivalent `.wgetrc' settings `proxy_user' and

`proxy_password' to set the proxy username and password.

а ошибка вылазиет, как я думаю, потому-что url содержит пробелы и прочие гадости, которые в результате интерпретируются wget’ом как опции.

эту инфу я уже читал несколько раз…

сделал по другому:

вписал в файл /etc/wgetrc свои данные в опцию

http_proxy = http://domen\user:mypassword@proxy.company.com:8001/

ввожу wget http://samlab.ws/rus/sam_no1dvdripper230rus.rar

и всеравно таже ошибка:

Can’t timestamp and not clobber old files at the same time.

Usage: wget [OPTION]…

rgo

значит тебе надо искать во всех местах откуда wget берёт опции (~/.wgetrc, /etc/wgetrc, переменные окружения, ещё где-то(?)), строчки `-N’, `-timestamp’, `-nc’. `--not-clobber' и оставлять только одну из них.

ндауж… ничего не помогает…

anonymous

значит, документацция прочитана неудовлетворительно ;)

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.