![]() |
How enable PUT METHOD? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How enable PUT METHOD? (/showthread.php?tid=70400) |
How enable PUT METHOD? - omid_student - 04-04-2018 Hi I use restful server in codeigniter All method are working good on server But PUT method is close on server How do i can enable it? *When i use PUT method on server,it show error NOT FOUND but when change PUT to POST,it is working good RE: How enable PUT METHOD? - dmyers - 04-05-2018 You can use the Input Stream https://www.codeigniter.com/user_guide/libraries/input.html#using-the-php-input-stream DMyers RE: How enable PUT METHOD? - omid_student - 04-05-2018 (04-05-2018, 05:43 AM)dmyers Wrote: You can use the Input Stream Thanks RE: How enable PUT METHOD? - omid_student - 04-05-2018 (04-05-2018, 05:43 AM)dmyers Wrote: You can use the Input Stream I'm sorry but when i use PUT method on my server,it get error 404 Actually my request cannot receive in my controller and server show error 404 before controller I think PUT method is disable in server Can you help me? RE: How enable PUT METHOD? - dmyers - 04-05-2018 What are you using to send the post request? <form method="PUT"... or something else? You could also test it with a REST application. Something like https://mmattozzi.github.io/cocoa-rest-client/ on OS X DMyers RE: How enable PUT METHOD? - omid_student - 04-06-2018 (04-05-2018, 03:58 PM)dmyers Wrote: What are you using to send the post request? I use POST method in java android with http client In localhost didn't problem but on server it is lock RE: How enable PUT METHOD? - omid_student - 04-06-2018 I use below code in htaccess and now my code is working <LIMIT PUT DELETE OPTIONS PATCH> order allow,deny allow from all </LIMIT> RE: How enable PUT METHOD? - dmyers - 04-06-2018 omid_student, Glad To Hear! RE: How enable PUT METHOD? - omid_student - 04-07-2018 (04-06-2018, 04:55 AM)dmyers Wrote: omid_student, Glad To Hear! Thank you so much |