You are creating a web form with this HTML:
11. <form action=”sendOrder.jsp”>
12. <input type=”text” name=”creditCard”>
13. <input type=”text” name=”expirationDate”>
14. <input type=”submit”>
15. </form>
Which HTTP method is used when sending this request from the browser?
A.
GET
B.
PUT
C.
POST
D.
SEND
E.
FORM
A
C, is much safer to send critical info using POST, not get to avoid displaying parameter values in the URL.
A.
Should be use POST, but when you omit the method attribute, you choose default method, that is GET.