[FFmpeg-devel] [PATCH] avformat/http: ignore the string after char '#'
Liu Steven
lq at chinaffmpeg.org
Thu Jan 10 11:03:57 EET 2019
> 在 2019年1月10日,下午4:54,Nicolas George <george at nsup.org> 写道:
>
> Liu Steven (12019-01-10):
>> How should i understand the mean “the fragment part should not have arrived there in the first place.” ?
>>
>> When i use wget to get http://ffmpeg.org/helloworld/test#hello=24
>> wget -dS http://ffmpeg.org/helloworld/test#hello=24
>> the request is GET /helloworld/test
>>
>> But ffmpeg is use full URI “/helloworld/test#hello=24”
>> That will forbidden by the http server in ticket: 7660.
>>
>> or just fix it in hls.c?
>
> I think the fragment part should be removed earlier. When the URL comes
> directly from the user, I believe it should be the responsibility of the
> user. When it comes from the application, the responsibility of the
> application. And when it comes from a protocol, by the code handling
> that protocol.
>
> Your code just ignores the fragment, but the fragment information was
> there for a reason in the first place, was it not?
Ok, I get that mean, let me think how to fix that.
Thanks Nicolas,
Steven
>
> Regards,
>
> --
> Nicolas George
More information about the ffmpeg-devel
mailing list