Multiple choice technology web technology

Which method you use when you want to send confidential data

  1. doGet

  2. doPost

  3. Both

  4. None of the above

  5. All of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

doPost should be used when sending confidential data because POST requests place parameters in the request body rather than the URL. This prevents sensitive information from appearing in browser history, server logs, or URL bookmarks. GET requests expose data in the URL query string, which is less secure for confidential information.