html - Use of Delete method in REST application -
i have created book library project using rest+json has html page having many options. 1 of them delete, unable use in html doesn't define it. can tell me how use http method? example:
<form action="rest/bklib/remove" method="delete"> enter bookname:<input type="text" name="bookname"> <p> <input type="submit" value="delete"> <p> </p> </form>
this post scott hanselman helpful in case.
from post:
one thing can "tunnel" http methods inside http header. have header says "no, seriously, know got here via post, use 1 instead." still post, you'd have "x-http-method-override:put" header.
i haven't use myself, but, hey, if scott says it, i'd give go.
Comments
Post a Comment