[PLUG] Firefox does not play ASF file

Steve Beattie sbeattie at suse.de
Mon Sep 10 22:38:08 UTC 2007


On Wed, Sep 05, 2007 at 03:31:16PM -0700, Wil Cooley wrote:
> On Wed, 2007-09-05 at 11:40 -0700, Rogan Creswick wrote:
> 
> > I'd guess that the web server is reporting the mime-type incorrectly,
> > but I'm not sure how to check this.  It seems like wget should have a
> > --report-mime-type flag, or something, but I don't see such a tool.
> 
> The MIME type is just an HTTP header; there are a number of ways you can
> go about getting it from the command line:
> 
> lynx -head http://www.atv.ru/video3/0507/dps070507.asf
> curl -I http://www.atv.ru/video3/0507/dps070507.asf
> wget -O /dev/null -S http://www.atv.ru/video3/0507/dps070507.asf
> (CTRL-C immediately to quit downloading)

Instead of starting and breaking the download in wget, just use --spider:

$ wget --spider -S http://www.atv.ru/video3/0507/dps070507.asf
--15:34:33--  http://www.atv.ru/video3/0507/dps070507.asf
           => `dps070507.asf'
Resolving www.atv.ru... 194.135.30.97
Connecting to www.atv.ru|194.135.30.97|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Mon, 10 Sep 2007 22:46:56 GMT
  Server: Apache/2.0.52 (FreeBSD) PHP/4.3.9
  Last-Modified: Mon, 14 May 2007 16:30:51 GMT
  ETag: "4fc80a-384e3f9-a3e4e4c0"
  Accept-Ranges: bytes
  Content-Length: 59040761
  Keep-Alive: timeout=60
  Connection: Keep-Alive
  Content-Type: text/plain; charset=windows-1251
Length: 59,040,761 (56M) [text/plain]
200 OK

-- 
Steve Beattie
SUSE Labs, Novell Inc. 
<sbeattie at suse.de>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20070910/d4c0c481/attachment.asc>


More information about the PLUG mailing list