[MPlayer-DOCS] r33082 - in trunk: DOCS/man/en/mplayer.1 cfg-common.h stream/network.c stream/network.h
cehoyos
subversion at mplayerhq.hu
Thu Mar 17 09:58:49 CET 2011
Author: cehoyos
Date: Thu Mar 17 09:58:49 2011
New Revision: 33082
Log:
Allow setting custom http header.
Patch by Nikolay Nikolaev, nicknickolaev yahoo com
Modified:
trunk/DOCS/man/en/mplayer.1
Changes in other areas also in this revision:
Modified:
trunk/cfg-common.h
trunk/stream/network.c
trunk/stream/network.h
Modified: trunk/DOCS/man/en/mplayer.1
==============================================================================
--- trunk/DOCS/man/en/mplayer.1 Mon Mar 14 01:07:11 2011 (r33081)
+++ trunk/DOCS/man/en/mplayer.1 Thu Mar 17 09:58:49 2011 (r33082)
@@ -1575,6 +1575,35 @@ Can be slow especially when seeking back
to the beginning to find an exact frame position.
.
.TP
+.B \-http-header-fields <field1,field2>
+Set custom HTTP fields when accessing HTTP stream.
+.sp 1
+.I EXAMPLE:
+.PD 0
+.RSs
+.IPs
+mplayer \-http\-header\-fields 'Field1: value1','Field2: value2' http://localhost:1234
+.br
+Will generate HTTP request:
+.RSss
+.br
+GET / HTTP/1.0
+.br
+Host: localhost:1234
+.br
+User-Agent: MPlayer
+.br
+Icy-MetaData: 1
+.br
+Field1: value1
+.br
+Field2: value2
+.br
+Connection: close
+.REss
+.RE
+.
+.TP
.B \-idx (also see \-forceidx)
Rebuilds index of files if no index was found, allowing seeking.
Useful with broken/\:incomplete downloads, or badly created files.
More information about the MPlayer-DOCS
mailing list