Культурный офтопик
 help / color / mirror / Atom feed
From: Arioch <the_Arioch@nm.ru>
To: smoke-room@lists.altlinux.org
Subject: [room] Кто разбирается в HTTP ?
Date: Thu, 01 Dec 2005 01:03:00 +0300
Message-ID: <dml7ip$2ls$1@sea.gmane.org> (raw)

Вот такой интересный 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



             reply	other threads:[~2005-11-30 22:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 22:03 Arioch [this message]
2005-12-01  1:08 ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dml7ip$2ls$1@sea.gmane.org' \
    --to=the_arioch@nm.ru \
    --cc=smoke-room@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Культурный офтопик

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