ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] wget : How to make it not mangle URLs
@ 2001-11-15 22:36 Henri Bourbon
  2001-11-15 23:17 ` AVL
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Bourbon @ 2001-11-15 22:36 UTC (permalink / raw)
  To: mandrake-russian

$ wget http://localhost/foo?two//slashes
--22:22:46--  http://localhost/foo?two/slashes

2 слэша -- это не 1 слэш, не так ли? Пожалуйста, подскажите, как заставить
wget делать то, что я его прошу сделать, а не то, что он хочет?

Вопрос не праздный. Нужно скачать неск. десятков файлов с 1-го хитрого
сайта, все файлы имеют URL типа (обратите внимание на "//" )
/cgi-bin/shit.cgi/smth//path/to/file
причем запрос "похожего" URL (меняем "//" на "/")
/cgi-bin/shit.cgi/smth/path/to/file
выдает большую симпатичную дулю с маком (404 Not Found).
Пробовал заменить "//" на "/%2f" и "shit.cgi/" заменить на "shit.cgi?".
Оба варианта дают дулю, но уже с маслом (403 Forbidden).

Я могу отказаться от wget, написав скрипт, к-рый сделает то, что нужно и
как нужно. Но вопрос все-таки в том, можно ли добиться нормальной работы
от wget.

Спасибо за ответ.

-- 
HB



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [mdk-re] wget : How to make it not mangle URLs
  2001-11-15 22:36 [mdk-re] wget : How to make it not mangle URLs Henri Bourbon
@ 2001-11-15 23:17 ` AVL
  0 siblings, 0 replies; 2+ messages in thread
From: AVL @ 2001-11-15 23:17 UTC (permalink / raw)
  To: mandrake-russian

On Thu, 15 Nov 2001 22:43:15 +0300
Henri Bourbon <npecca@yahoo.com> wrote:

> $ wget http://localhost/foo?two//slashes
> --22:22:46--  http://localhost/foo?two/slashes
> 
> 2 слэша -- это не 1 слэш, не так ли? Пожалуйста, подскажите, как заставить
> wget делать то, что я его прошу сделать, а не то, что он хочет?
> 
> Вопрос не праздный. Нужно скачать неск. десятков файлов с 1-го хитрого
> сайта, все файлы имеют URL типа (обратите внимание на "//" )
> /cgi-bin/shit.cgi/smth//path/to/file
> причем запрос "похожего" URL (меняем "//" на "/")
> /cgi-bin/shit.cgi/smth/path/to/file
> выдает большую симпатичную дулю с маком (404 Not Found).
> Пробовал заменить "//" на "/%2f" и "shit.cgi/" заменить на "shit.cgi?".
> Оба варианта дают дулю, но уже с маслом (403 Forbidden).
> 
> Я могу отказаться от wget, написав скрипт, к-рый сделает то, что нужно и
> как нужно. Но вопрос все-таки в том, можно ли добиться нормальной работы
> от wget.

а в кавычки брать не пробовали?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-15 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 22:36 [mdk-re] wget : How to make it not mangle URLs Henri Bourbon
2001-11-15 23:17 ` AVL

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git