GET or POST example - Web Technologies

Q.  Assume that an HTML form is designed to purchase the furniture. All the items required are being checked. After selecting the items the payment details are entered and the submit button is pressed. From the following options which one would you prefer to send the data to the server. Assume that all the security is handled.
- Published on 16 Jun 15

a. Only POST
b. Only GET
c. Either of GET or POST
d. Neither GET nor POST

ANSWER: Either of GET or POST
 
For sending the data to the server either of them can be used.
 

    Discussion

  • Ve   -Posted on 05 Mar 20
    Since it has payment information. Sensitive data should be sent only through post method

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)