Question

In: Computer Science

Explain why applications must use the appropriate form action method for the data that is sent...

Explain why applications must use the appropriate form action method for the data that is sent to the web server.

Solutions

Expert Solution

The <form> element defines how the data will be sent. All of its attributes are designed to let you configure the request to be sent when a user hits a submit button. The two most important attributes are action and method.

There are two methods for the data that is sent to the webserver.

1. GET-

GET is one of the most common HTTP methods

  • GET Parameters are included in URL
  • GET requests remain in the browser history
  • GET requests can be bookmarked
  • GET requests should never be used when dealing with sensitive data
  • GET requests have length restrictions
  • GET requests are only used to request data (not modify)

2. POST

POST is used to send data to a server to create/update a resource.

  • POST parameters are included in the body
  • POST requests do not remain in the browser history
  • POST methods are used for the password or username page form or any sensitive data
  • POST requests cannot be bookmarked
  • POST requests have no restrictions on data length

If Applications use GET method for the senstive data then any one can see your Password and username or any senstive data in the url when submitted. So if Applications uses senstive data then POST Method is recommended.


Related Solutions

List three applications that use UDP and three applications that use TCP and explain why those...
List three applications that use UDP and three applications that use TCP and explain why those applications use the selected Transport layer protocol.
Create a Submission page form (make sure that you include an action and a method) that...
Create a Submission page form (make sure that you include an action and a method) that should employ client-side validation (includes CSS color-coding for inaccurate values) and should use Bootstrap’s Horizontal form layout (Links to an external site.) (Links to an external site.) with the following fields: A. Fieldset with the legend “Your Information” 1. First Name (max size: 50; required; text) 2. Last Name (max size: 50; required; text) 3. Email (max size: 50; required; email) 4. Phone (max...
Explain the process of skeletal muscle contraction from action potential being sent from the brain or...
Explain the process of skeletal muscle contraction from action potential being sent from the brain or spinal cord through muscle contraction and relaxation.
Explain, what type of data would it be most appropriate to use a mean and what...
Explain, what type of data would it be most appropriate to use a mean and what type of data would it be most appropriate to use a proportion? We typically use the t distribution when working with means, and yet we always use the normal (z) distribution when working with proportions. Try to explain in your own words why this is the case. Write TWO situations: (a) one that can be answered using a z-interval for a proportion, (b) one...
Use your own words to explain why a typical form of epinephrine is applied with a...
Use your own words to explain why a typical form of epinephrine is applied with a swab locally to control bleeding during nasal surgery. Why is this route preferred and how does this drug work?
Why is data saturation appropriate for qualitative studies?
Why is data saturation appropriate for qualitative studies?
Why is data saturation appropriate for qualitative studies?
Why is data saturation appropriate for qualitative studies?
Please use the percentage of sales method and the ratio method where appropriate to forecast 2018E...
Please use the percentage of sales method and the ratio method where appropriate to forecast 2018E financial statements using the 2017 data. Use formulas to do all calculations of the forecast estimates and use the iteration formula to determine the interest expense and amount of debt at the same time. All assumptions should be included. At the beginning of 2017, Student Copy anticipated a substantial increase in sales. Despite good sales the company experienced a shortage of cash and found...
explain the importance of the ceteris Paribus us assumption and why we must use it to...
explain the importance of the ceteris Paribus us assumption and why we must use it to understand the result of an economic model
With the use of diagrams, explain why the slit width of a prism wavelength selector must...
With the use of diagrams, explain why the slit width of a prism wavelength selector must be varied to provide constant effective bandwidths (specific wavelengths) but a constant slit width instead can be used to provide constant bandwidth with a grating monochromator? calculate the frequency in hertz, the wave number in cm-1 Calculate the frequency in hertz, the wave number in cm!, the energy in joules, and the energy associated with the 317 nm wavelength energy source achieved from a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT