我用Http請求提交Content-Type: multipart/form-data; boundary=-------------------------7dvisualgetfile這樣的數據給webman,然后通過$request->post()獲取不到post數據,是空的
請求頭信息:
Content-Type: multipart/form-data; boundary=-------------------------7dvisualgetfile
Post數據:
---------------------------7dvisualgetfile
Content-Disposition: form-data; name="HtmlCode"
Content-Type: application/octet-stream
這里是一段html代碼,有很長
---------------------------7dvisualgetfile--
public function langCatPut(Request $request)
{
$PostData = $request->post('HtmlCode');
return response(json_encode($PostData));
}
獲取到的post數據是空的
本地提交HTTP請求到webman的網站,"workerman/webman-framework": "^1.4.3",