版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。 https://blog.csdn.net/chengyi_L/article/details/78223231
請求頭如果是multipart/form-data(預設)
則通過$_POST直接擷取資料
請求頭如果是 x-www-form-urlencoded
則可以通過$_POST php://input 請求資料
請求頭如果是json
則可以通過 php://input 請求資料
版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。 https://blog.csdn.net/chengyi_L/article/details/78223231
請求頭如果是multipart/form-data(預設)
則通過$_POST直接擷取資料
請求頭如果是 x-www-form-urlencoded
則可以通過$_POST php://input 請求資料
請求頭如果是json
則可以通過 php://input 請求資料