How can I send a http delete request from browser?

后端 未结 6 1908
一整个雨季
一整个雨季 2020-12-10 02:01

Is there a way to send a DELETE request from a website, using xmlhttprequest or something similar?

6条回答
  •  自闭症患者
    2020-12-10 02:27

    You can use php to do this:

    setup your XMLHTTPRequst to call a phpscript that deletes a named file, and then pass the filename that you intend to be removed to the php script and let it do its business.

提交回复
热议问题