Opened 6 years ago
Closed 6 months ago
#7854 closed defect (invalid)
HTTP headers' order matters?
Reported by: | abu | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | http |
Cc: | MasterQuestionable | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
The following command works(the url might expired when you test),
D:\LYYDownloader-dev\ffmpeg -user_agent "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" -headers "Accept:*/*" -headers "Accept-Encoding:gzip, deflate, br" -headers "Accept-Language:zh-CN,zh;q=0.9,en;q=0.8" -headers "Origin:https://pc-shop.xiaoe-tech.com" -headers "Referer:https://pc-shop.xiaoe-tech.com/appzDSBtscz6568/video_details?id=v_5b0e8459e1ff5_nSu4umqK" -i "https://vod2.xiaoe-tech.com/9764a7a5vodtransgzp1252524126/411e9e4d7447398156344505274/drm/v.f230.m3u8?t=5cb7333b&us=931672&sign=5670004e90c94c98bdc42e2510927f0e" -safe -1 -y -c copy "788.mp4"
However , just exchange the some of the http header name order , the following command Does work anymore
D:\LYYDownloader-dev\ffmpeg -user_agent "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" -headers "Origin:https://pc-shop.xiaoe-tech.com" -headers "Accept:*/*" -headers "Referer:https://pc-shop.xiaoe-tech.com/appzDSBtscz6568/video_details?id=v_5b0e8459e1ff5_nSu4umqK" -headers "Accept-Encoding:gzip, deflate, br" -headers "Accept-Language:zh-CN,zh;q=0.9,en;q=0.8" -i "https://vod2.xiaoe-tech.com/9764a7a5vodtransgzp1252524126/411e9e4d7447398156344505274/drm/v.f230.m3u8?t=5cb7333b&us=931672&sign=5670004e90c94c98bdc42e2510927f0e" -safe -1 -y -c copy "788.mp4"
So it would be better to make header name order irrelevant
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Version: | 4.1 → git-master |
---|
comment:3 by , 6 months ago
Cc: | added |
---|---|
Component: | undetermined → avformat |
Keywords: | http added |
Resolution: | → invalid |
Status: | new → closed |
Summary: | Http header name order matters? → HTTP headers' order matters? |
͏ Order of the headers do matter.
͏ See also: https://forum.vivaldi.net/topic/77666
Note:
See TracTickets
for help on using tickets.
Correction : After exchanging the some of the http header name order , the command does NOT work anymore