Posting parameters to a url using the POST method without using a form

前端 未结 6 1817
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 14:24

I want to post parameters to a URL using the POST method but I cannot use a form. Even if I do use a form, it would have to be auto-posted with out user interaction. Is this

6条回答
  •  醉酒成梦
    2020-12-01 14:58

    You could use JavaScript and XMLHTTPRequest (AJAX) to perform a POST without using a form. Check this link out. Keep in mind that you will need JavaScript enabled in your browser though.

提交回复
热议问题