[MPlayer-dev-eng] [PATCH] HTTP Cookie support

Dave Lambley mplayer-dev-eng at dlambley.freeserve.co.uk
Fri Oct 17 18:12:01 CEST 2003


Hi,

This patch adds support for HTTP cookies, so you can connect to servers
that use cookies for authentication. I've tested it with

	http://www.happyhourradio.com/

and it plays.

It reads cookies from Mozilla and probably Netscape too.

It adds two options, -cookie-file, which lets you choose where the
cookies are read from and -nocookies, to stop cookies being sent.

It doesn't attempt to load the sent cookies back into the file, because
Mozilla doesn't want you to. The "secure" flag in cookies, to indicate
that it is only to be sent via HTTPS is not honoured, because I don't
know where it is!

Cheers,
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookies.c
Type: text/x-c
Size: 4795 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031017/451f8290/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookies.h
Type: text/x-c-header
Size: 224 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031017/451f8290/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookies.diff
Type: text/x-patch
Size: 4125 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031017/451f8290/attachment-0002.bin>


More information about the MPlayer-dev-eng mailing list