[FFmpeg-trac] #7852(undetermined:closed): Cannot set User-Agent
FFmpeg
trac at avcodec.org
Tue Apr 23 16:31:48 EEST 2019
#7852: Cannot set User-Agent
-------------------------------------+-------------------------------------
Reporter: redstoneleo | Owner:
Type: defect | Status: closed
Priority: normal | Component:
| undetermined
Version: git-master | Resolution: invalid
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by stevenliu):
* status: reopened => closed
* resolution: => invalid
Comment:
{{{
liuqideMacBook-Pro:ffmpeg liuqi$ ffmpeg -headers "Accept-Encoding:gzip,
deflate, br" -headers "Accept-Language:zh-CN,zh;q=0.9,en;q=0.8" -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-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 '-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 @ 0x7fb6fb000a00] Opening 'https://httpbin.org' for reading
[https @ 0x7fb6fae092c0] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[https @ 0x7fb6fae092c0] No trailing CRLF found in HTTP header.
[tcp @ 0x7fb6fae03fc0] Original list of addresses:
[tcp @ 0x7fb6fae03fc0] Address 18.211.162.154 port 443
[tcp @ 0x7fb6fae03fc0] Address 34.238.32.178 port 443
[tcp @ 0x7fb6fae03fc0] Interleaved list of addresses:
[tcp @ 0x7fb6fae03fc0] Address 18.211.162.154 port 443
[tcp @ 0x7fb6fae03fc0] Address 34.238.32.178 port 443
[tcp @ 0x7fb6fae03fc0] Starting connection attempt to 18.211.162.154 port
443
[tcp @ 0x7fb6fae03fc0] Successfully connected to 18.211.162.154 port 443
[https @ 0x7fb6fae092c0] request: GET / HTTP/1.1
User-Agent: Lavf/58.23.100
Accept: */*
Range: bytes=0-
Connection: close
Host: httpbin.org
Icy-MetaData: 1
Accept-Language:zh-CN,zh;q=0.9,en;q=0.8
[https @ 0x7fb6fae092c0] header='HTTP/1.1 200 OK'
[https @ 0x7fb6fae092c0] http_code=200
[https @ 0x7fb6fae092c0] header='Access-Control-Allow-Credentials: true'
[https @ 0x7fb6fae092c0] header='Access-Control-Allow-Origin: *'
[https @ 0x7fb6fae092c0] header='Content-Type: text/html; charset=utf-8'
[https @ 0x7fb6fae092c0] header='Date: Tue, 23 Apr 2019 13:30:33 GMT'
[https @ 0x7fb6fae092c0] header='Referrer-Policy: no-referrer-when-
downgrade'
[https @ 0x7fb6fae092c0] header='Server: nginx'
[https @ 0x7fb6fae092c0] header='X-Content-Type-Options: nosniff'
[https @ 0x7fb6fae092c0] header='X-Frame-Options: DENY'
[https @ 0x7fb6fae092c0] header='X-XSS-Protection: 1; mode=block'
[https @ 0x7fb6fae092c0] header='Content-Length: 9593'
[https @ 0x7fb6fae092c0] header='Connection: Close'
[https @ 0x7fb6fae092c0] header=''
[AVIOContext @ 0x7fb6fad2b980] Statistics: 9593 bytes read, 0 seeks
https://httpbin.org: Invalid data found when processing input
liuqideMacBook-Pro:ffmpeg liuqi$ ffmpeg -headers "Accept-
Encoding:gzip,deflate,br" -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-Encoding:gzip,deflate,br'.
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 @ 0x7feb26800000] Opening 'https://httpbin.org' for reading
[https @ 0x7feb25503080] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[https @ 0x7feb25503080] No trailing CRLF found in HTTP header.
[tcp @ 0x7feb25700540] Original list of addresses:
[tcp @ 0x7feb25700540] Address 34.238.32.178 port 443
[tcp @ 0x7feb25700540] Address 18.211.162.154 port 443
[tcp @ 0x7feb25700540] Interleaved list of addresses:
[tcp @ 0x7feb25700540] Address 34.238.32.178 port 443
[tcp @ 0x7feb25700540] Address 18.211.162.154 port 443
[tcp @ 0x7feb25700540] Starting connection attempt to 34.238.32.178 port
443
[tcp @ 0x7feb25700540] Successfully connected to 34.238.32.178 port 443
[https @ 0x7feb25503080] request: GET / HTTP/1.1
User-Agent: Lavf/58.23.100
Accept: */*
Range: bytes=0-
Connection: close
Host: httpbin.org
Icy-MetaData: 1
Accept-Encoding:gzip,deflate,br
[https @ 0x7feb25503080] header='HTTP/1.1 200 OK'
[https @ 0x7feb25503080] http_code=200
[https @ 0x7feb25503080] header='Access-Control-Allow-Credentials: true'
[https @ 0x7feb25503080] header='Access-Control-Allow-Origin: *'
[https @ 0x7feb25503080] header='Content-Encoding: gzip'
[https @ 0x7feb25503080] header='Content-Type: text/html; charset=utf-8'
[https @ 0x7feb25503080] header='Date: Tue, 23 Apr 2019 13:30:39 GMT'
[https @ 0x7feb25503080] header='Referrer-Policy: no-referrer-when-
downgrade'
[https @ 0x7feb25503080] header='Server: nginx'
[https @ 0x7feb25503080] header='X-Content-Type-Options: nosniff'
[https @ 0x7feb25503080] header='X-Frame-Options: DENY'
[https @ 0x7feb25503080] header='X-XSS-Protection: 1; mode=block'
[https @ 0x7feb25503080] header='Content-Length: 3168'
[https @ 0x7feb25503080] header='Connection: Close'
[https @ 0x7feb25503080] header=''
[AVIOContext @ 0x7feb25504080] Statistics: 9593 bytes read, 0 seeks
https://httpbin.org: Invalid data found when processing input
liuqideMacBook-Pro:ffmpeg liuqi$
}}}
Maybe you should use the -headers only once one input.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7852#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list