[FFmpeg-trac] #7852(undetermined:reopened): Cannot set User-Agent
FFmpeg
trac at avcodec.org
Tue Apr 23 16:25:44 EEST 2019
#7852: Cannot set User-Agent
-------------------------------------+-------------------------------------
Reporter: redstoneleo | Owner:
Type: defect | Status: reopened
Priority: normal | Component:
| undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by stevenliu):
{{{
liuqideMacBook-Pro:ffmpeg liuqi$ ffmpeg -headers "User-Agent:
\"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/72.0.3626.121Safari/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"
-headers "User-Agent: \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/72.0.3626.121Safari/537.36\"" -i
"https://httpbin.org" -v trace
liuqideMacBook-Pro:ffmpeg liuqi$ ffmpeg -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"
-headers "User-Agent: \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/72.0.3626.121Safari/537.36\"" -i
"https://httpbin.org" -v trace
ffmpeg version N-92522-g370b8bd847 Copyright (c) 2000-2018 the FFmpeg
developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-
version3 --enable-nonfree --enable-videotoolbox --enable-libxml2
libavutil 56. 24.101 / 56. 24.101
libavcodec 58. 40.100 / 58. 40.100
libavformat 58. 23.100 / 58. 23.100
libavdevice 58. 6.100 / 58. 6.100
libavfilter 7. 46.100 / 7. 46.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Splitting the commandline.
Reading option '-headers' ... matched as AVOption 'headers' with argument
'Accept:*/*'.
Reading option '-headers' ... matched as AVOption 'headers' with argument
'Accept-Encoding:gzip, deflate, br'.
Reading option '-headers' ... matched as AVOption 'headers' with argument
'Accept-Language:zh-CN,zh;q=0.9,en;q=0.8'.
Reading option '-headers' ... matched as AVOption 'headers' with argument
'Origin:https://pc-shop.xiaoe-tech.com'.
Reading option '-headers' ... matched as AVOption 'headers' with argument
'Referer:https://pc-shop.xiaoe-
tech.com/appzDSBtscz6568/video_details?id=v_5b0e8459e1ff5_nSu4umqK'.
Reading option '-headers' ... matched as AVOption 'headers' with argument
'User-Agent: "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/72.0.3626.121Safari/537.36"'.
Reading option '-i' ... matched as input url with argument
'https://httpbin.org'.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument 'trace'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url https://httpbin.org.
Successfully parsed a group of options.
Opening an input file: https://httpbin.org.
[NULL @ 0x7ffc73801800] Opening 'https://httpbin.org' for reading
[https @ 0x7ffc72700000] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[https @ 0x7ffc72700000] No trailing CRLF found in HTTP header.
[tcp @ 0x7ffc72407b80] Original list of addresses:
[tcp @ 0x7ffc72407b80] Address 18.211.162.154 port 443
[tcp @ 0x7ffc72407b80] Address 34.238.32.178 port 443
[tcp @ 0x7ffc72407b80] Interleaved list of addresses:
[tcp @ 0x7ffc72407b80] Address 18.211.162.154 port 443
[tcp @ 0x7ffc72407b80] Address 34.238.32.178 port 443
[tcp @ 0x7ffc72407b80] Starting connection attempt to 18.211.162.154 port
443
[tcp @ 0x7ffc72407b80] Successfully connected to 18.211.162.154 port 443
[https @ 0x7ffc72700000] request: GET / HTTP/1.1
Accept: */*
Range: bytes=0-
Connection: close
Host: httpbin.org
Icy-MetaData: 1
User-Agent: "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/72.0.3626.121Safari/537.36"
[https @ 0x7ffc72700000] header='HTTP/1.1 200 OK'
[https @ 0x7ffc72700000] http_code=200
[https @ 0x7ffc72700000] header='Access-Control-Allow-Credentials: true'
[https @ 0x7ffc72700000] header='Access-Control-Allow-Origin: *'
[https @ 0x7ffc72700000] header='Content-Type: text/html; charset=utf-8'
[https @ 0x7ffc72700000] header='Date: Tue, 23 Apr 2019 13:25:21 GMT'
[https @ 0x7ffc72700000] header='Referrer-Policy: no-referrer-when-
downgrade'
[https @ 0x7ffc72700000] header='Server: nginx'
[https @ 0x7ffc72700000] header='X-Content-Type-Options: nosniff'
[https @ 0x7ffc72700000] header='X-Frame-Options: DENY'
[https @ 0x7ffc72700000] header='X-XSS-Protection: 1; mode=block'
[https @ 0x7ffc72700000] header='Content-Length: 9593'
[https @ 0x7ffc72700000] header='Connection: Close'
[https @ 0x7ffc72700000] header=''
[AVIOContext @ 0x7ffc72702f00] Statistics: 9593 bytes read, 0 seeks
https://httpbin.org: Invalid data found when processing input
liuqideMacBook-Pro:ffmpeg liuqi$
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7852#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list