Jump to content
Tuts 4 You

Edit History

NeWOT

NeWOT

35 minutes ago, LCF-AT said:

Hi guys,

I have a new small question about ffmpeg and using custom request http header datas.I have test it and I dont get it working anymore so correctly and I just get it work with only one header paramter also if I am using more than one.So ffmpeg said this...


http AVOptions:
-headers           <string>     ED....... set custom HTTP headers, can override built in default headers

...so if I use this paramter -headers "User-Agent: test" then it works.So now I would like to use more than one but if I do that then only the last -headers paramter gets added to the header and all before gets ignored.So does anyone remember how to make it correctly to set more than one header paramters for a commandline I can enter in CMD window?Is there any issue with CLRF and if yes how to enter that in text form?Maybe anyone has any example for that.

Thanks

Hi @LCF-AT,

 

Try something like(tested):

ffmpeg -headers $'X-API-KEY: g\r\nuser-agent:3' ...

NeWOT

NeWOT

26 minutes ago, LCF-AT said:

Hi guys,

I have a new small question about ffmpeg and using custom request http header datas.I have test it and I dont get it working anymore so correctly and I just get it work with only one header paramter also if I am using more than one.So ffmpeg said this...


http AVOptions:
-headers           <string>     ED....... set custom HTTP headers, can override built in default headers

...so if I use this paramter -headers "User-Agent: test" then it works.So now I would like to use more than one but if I do that then only the last -headers paramter gets added to the header and all before gets ignored.So does anyone remember how to make it correctly to set more than one header paramters for a commandline I can enter in CMD window?Is there any issue with CLRF and if yes how to enter that in text form?Maybe anyone has any example for that.

Thanks

Hi @LCF-AT,

 

Try something like(tested):

ffmpeg -headers $'X-API-KEY: g\r\nuser-agent:3' ...

×
×
  • Create New...