Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Goal: To handle a client POST request generated with an AJAX call on the client page to send login credentials to the server and return

Goal: To handle a client POST request generated with an AJAX call on the client page to send login credentials to the server and return a response of success of fail.

Steps:

  1. Write a CGI script (in any language you want) to parse a POST request from a client
  2. Generate a POST request from javascript that runs when the login button is press. Send this POST to the cgi page on the server
  3. With the username and pass variables from the POST request, read in a csv file with credentials (named creds)
  4. Check to see if the POST variables match the data from the csv file and return the appropriate response

Copy and paste your CGI script in the text area for this assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions