javascript - How to differentiate HTTP method in html file? -


i have 2 1 rest end point hit html file , post. example: http://192.28.120.21:8098/restendpiont/rest.html -- request http://192.28.120.21:8098/restendpiont/rest.html -- post request post parameters in body. when ever end point calling, hits "rest.html" file, how can differentiate in html file http method(get/post).if request get, have return rest.html file otherwise should reditrecting other html file.

could body have idea achieve above requirement.


Comments

Popular posts from this blog

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -

javascript - jQuery: Add class depending on URL in the best way -