^([^:]+):(.*)$
'$1' => '$2' ,
User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.1; MX5 Build/LMY47I)
Host: xxx.xxx.xxx
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Type: application/x-www-form-urlencoded
Content-Length: 121
==》替换为
'User-Agent' => ' Dalvik/2.1.0 (Linux; U; Android 5.1; MX5 Build/LMY47I)' ,
'Host' => ' cooperation.html5.qq.com' ,
'Connection' => ' Keep-Alive' ,
'Accept-Encoding' => ' gzip' ,
'Content-Type' => ' application/x-www-form-urlencoded' ,
'Content-Length' => ' 121' ,
'$1' => '$2' ,
User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.1; MX5 Build/LMY47I)
Host: xxx.xxx.xxx
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Type: application/x-www-form-urlencoded
Content-Length: 121
==》替换为
'User-Agent' => ' Dalvik/2.1.0 (Linux; U; Android 5.1; MX5 Build/LMY47I)' ,
'Host' => ' cooperation.html5.qq.com' ,
'Connection' => ' Keep-Alive' ,
'Accept-Encoding' => ' gzip' ,
'Content-Type' => ' application/x-www-form-urlencoded' ,
'Content-Length' => ' 121' ,