Answered step by step
Verified Expert Solution
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:
- Write a CGI script (in any language you want) to parse a POST request from a client
- Generate a POST request from javascript that runs when the login button is press. Send this POST to the cgi page on the server
- With the username and pass variables from the POST request, read in a csv file with credentials (named creds)
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started