windows CMD发送双引号内的CRLF
我想为ffplay或ffmpeg传递多个头,它说我需要使用CRLF分割。在linux上,我可以使用windows CMD发送双引号内的CRLF,cmd,ffmpeg,newline,Cmd,Ffmpeg,Newline,我想为ffplay或ffmpeg传递多个头,它说我需要使用CRLF分割。在linux上,我可以使用\或$'\r\n',但如何使用windows SET CRLF=^ ffplay -v debug -i "http://example.com/test" -headers "Accept-Language: en-US,en;q=0.5%CRLF%Connection: keep-alive" 调试日志:连接:保持活动状态未发送 [http @ 04df3f40] No trailing CR
\
或$'\r\n'
,但如何使用windows
SET CRLF=^
ffplay -v debug -i "http://example.com/test" -headers "Accept-Language: en-US,en;q=0.5%CRLF%Connection: keep-alive"
调试日志:连接:保持活动状态
未发送
[http @ 04df3f40] No trailing CRLF found in HTTP header.
[http @ 04df3f40] request: GET /test HTTP/1.1 0KB sq= 0B f=0/0
User-Agent: Lavf/57.37.101
Accept: */*
Range: bytes=0-
Connection: close
Host: example.com
Icy-MetaData: 1
Accept-Language: en-US,en;q=0.5
谢谢请尝试以这种方式设置CRLF。这可能有用
C:\Users\pwatson>type t.bat
@echo off
setlocal enabledelayedexpansion
REM === The following line -MUST- be followed by two (2) blank lines.
SET CRLF=^
REM === DO NOT EDIT THE PREVIOUS TWO (2) LINES
echo this is a!CRLF!new line
然后,运行它
C:\Users\pwatson>call t.bat
this is a
new line
请尝试以这种方式设置CRLF。这可能有用
C:\Users\pwatson>type t.bat
@echo off
setlocal enabledelayedexpansion
REM === The following line -MUST- be followed by two (2) blank lines.
SET CRLF=^
REM === DO NOT EDIT THE PREVIOUS TWO (2) LINES
echo this is a!CRLF!new line
然后,运行它
C:\Users\pwatson>call t.bat
this is a
new line