Welcome Guest, Not a member yet? Register   Sign In
How enable PUT METHOD?
#1

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
Reply
#2

You can use the Input Stream

https://www.codeigniter.com/user_guide/l...put-stream

DMyers
Reply
#3

(04-05-2018, 05:43 AM)dmyers Wrote: You can use the Input Stream

https://www.codeigniter.com/user_guide/l...put-stream

DMyers

Thanks
Reply
#4

(04-05-2018, 05:43 AM)dmyers Wrote: You can use the Input Stream

https://www.codeigniter.com/user_guide/l...put-stream

DMyers

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?
Reply
#5

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
Reply
#6

(04-05-2018, 03:58 PM)dmyers Wrote: 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

I use POST method in java android with http client
In localhost didn't problem but on server it is lock
Reply
#7

I use below code in htaccess and now my code is working
<LIMIT PUT DELETE OPTIONS PATCH>
order allow,deny
allow from all
</LIMIT>
Reply
#8

omid_student, Glad To Hear!
Reply
#9

(04-06-2018, 04:55 AM)dmyers Wrote: omid_student, Glad To Hear!

Thank you so much
Reply




Theme © iAndrew 2016 - Forum software by © MyBB