* [room] Кто разбирается в HTTP ?
@ 2005-11-30 22:03 Arioch
2005-12-01 1:08 ` Michael Shigorin
0 siblings, 1 reply; 2+ messages in thread
From: Arioch @ 2005-11-30 22:03 UTC (permalink / raw)
To: smoke-room
Вот такой интересный log с одного самопального (не моего) скрипта.
Отдаваться должен mp3 файл.
аномалии:
1) Opera определяет тип файла как text/html, а не audio/mpeg
2) Aria сохраняет файл под именем get.php
3) wget сохраняет файл под именем get.php?id=25226
Варианты, видимо, либо нижеприведенный лог совсем не соответствует HTTP
(тогда где ляпы? на что жаловаться?), либо Опера, Ария, и (можно ли
поверить?) wget не понимают HTTP
Лог из Арии.
[00:47:20]SEND: GET /get.php?id=25226 HTTP/1.1
[00:47:20]SEND: Referer:
http://forum.ostnet.ru/index.php%3Fshowtopic%3D14628%26st%3D40%26p%3D220568%26%23entry220568
[00:47:20]SEND: User-Agent: Mozilla/4.0 (compatible)
[00:47:20]SEND: Connection: Keep-Alive
[00:47:20]SEND: Accept: */*
[00:47:20]SEND: Accept-Encoding: gzip, deflate
[00:47:20]SEND: Host: music.ostnet.ru
[00:47:20]RECV: HTTP/1.1 200 OK
[00:47:20]RECV: Date: Wed, 30 Nov 2005 21:47:24 GMT
[00:47:20]RECV: Server: Apache/1.3.33 (Unix) PHP/4.3.10
[00:47:20]RECV: X-Powered-By: PHP/4.3.10
[00:47:20]RECV: Set-Cookie: PHPSESSID=f695e15a59927375d596ae538df1cc6e;
path=/
[00:47:20]RECV: Expires: Thu, 19 Nov 1981 08:52:00 GMT
[00:47:20]RECV: Cache-Control: no-store, no-cache, must-revalidate,
post-check=0, pre-check=0
[00:47:20]RECV: Pragma: no-cache
[00:47:20]RECV: Content-Disposition: attachment; filename="Papa Roach -
Time And Time Again.mp3"
[00:47:20]RECV: Content-Length: 4285880
[00:47:20]RECV: Keep-Alive: timeout=15, max=100
[00:47:20]RECV: Connection: Keep-Alive
[00:47:20]RECV: Content-Type: application/octet-stream
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [room] Кто разбирается в HTTP ?
2005-11-30 22:03 [room] Кто разбирается в HTTP ? Arioch
@ 2005-12-01 1:08 ` Michael Shigorin
0 siblings, 0 replies; 2+ messages in thread
From: Michael Shigorin @ 2005-12-01 1:08 UTC (permalink / raw)
To: smoke-room
On Thu, Dec 01, 2005 at 01:03:00AM +0300, Arioch wrote:
> Варианты, видимо, либо нижеприведенный лог совсем не
> соответствует HTTP (тогда где ляпы? на что жаловаться?), либо
> Опера, Ария, и (можно ли поверить?) wget не понимают HTTP
Насколько помню, UA не обязаны брать под козырёк в данном разе.
Сегодня наблюдал игнорирование wget и соблюдение seamonkey.
> Content-Disposition: attachment; filename="Papa Roach - Time And Time Again.mp3"
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-01 1:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 22:03 [room] Кто разбирается в HTTP ? Arioch
2005-12-01 1:08 ` Michael Shigorin
Культурный офтопик
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
public-inbox-index smoke-room
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.smoke-room
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git