[FFmpeg-trac] #3024(undetermined:closed): ffplay do not keep custom http headers across http sessions playing m3u8
FFmpeg
trac at avcodec.org
Thu Oct 3 13:00:51 CEST 2013
#3024: ffplay do not keep custom http headers across http sessions playing m3u8
-------------------------------------+-------------------------------------
Reporter: kowalsky | Owner:
Type: defect | Status: closed
Priority: normal | Component:
Version: git-master | undetermined
Keywords: hls | Resolution: duplicate
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by kowalsky):
It is similar but not exactly the same. The user-agent is correcty kept
across all the http sessions (getting the initial manifest and the
following chunk download) but nothe the -header content.
I understand nothing about C programming but it seems that the hls.c
looking about info to broker thru the whole bunch of sessions takes care
of the user-agent and cookies only, if I'm not wrong.
I've fixed for myself by hardcoding into http.c my header:
static int http_connect(URLContext *h, const char *path, const char
*local_path,
const char *hoststr, const char *auth,
const char *proxyauth, int *new_location)
{
HTTPContext *s = h->priv_data;
int post, err;
char headers[4096] = "X-Forwarded-For: xxx.186.xxx.xxx\r\n";
char *authstr = NULL, *proxyauthstr = NULL;
int64_t off = s->off;
int len = 0;
const char *method;
but I know it it just a specific workaround to fit my needs.
Tanks for your attention.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3024#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list