Opened 5 months ago

Last modified 5 months ago

#7854 new defect

Http header name order matters?

Reported by: redstoneleo Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: 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 (2)

comment:1 Changed 5 months ago by redstoneleo

Correction : After exchanging the some of the http header name order , the command does NOT work anymore

comment:2 Changed 5 months ago by redstoneleo

  • Version changed from 4.1 to git-master
Note: See TracTickets for help on using tickets.