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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -