PUT請求我有一個問題,現在使用CodeIgniter:我用的是REST Controller library(這是真正真棒)來創建一個API,但我不能讓PUT請求......得到與笨
這是我的代碼:
function user_put() {
$user_id = $this->get("id");
echo $user_id;
$username = $this->put("username");
echo $username;
}
我使用curl發出請求:
curl -i -X PUT -d "username=test" http://[...]/user/id/1
的user_id是滿員,但是用戶名變量是空的。但它適用於動詞POST和GET。 你有什麼想法嗎?
謝謝!
嘿@Shatter你有沒有得到一個機會來驗證這一點? – jcolebrand 2013-03-11 17:20:34
仍有越野車,$ this-> put('anything')返回false – Syl 2013-10-28 14:45:33