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