Build me HTTP Server which encodes and decodes cookie

Completed Posted 3 years ago Paid on delivery
Completed Paid on delivery

The task is to implement a web server which recalls the last time a user accessed the site and returns a page welcoming the user back the the last time the user was at the site.

the first time the browser/client/tester sends a get request for the root document ( /), the server should return the file [login to view URL], (in the attachments), which must reside in the home directory of the project.

the server replies with [login to view URL] as the payload and a single set-cookie line. The value of the cookie as a date string that is URL encoded according to the standard encoding. The variable of the cookie must be "lasttime" and value must be a URL encoded time-stamp in the form <YEAR>-<Month>-<Day> <Hour>-<Minute>-<Second> in 24 hour format. An example is a line in the HTTP header "".

the browser/client sends another request for the root document (/), however, with the cookie set. The variable will be "lasttime" and the value will be a valid URL encoded time-stamp as above.

the server checks the cookie is valid, and if so, it creates a response payload, [login to view URL], which has a string "Welcome back! Your last visit was at: <Year>-<month>-<Day> <hour>-<minute>-<second>, where the time is the time returned in the cookie. See the template file below ([login to view URL]) for an example.

The server returns a response with an updated cookie with the current time, and the HTTP body as above.

(Please see detailed description in the pdf attached*)

I have already made HTTPServer for the GET,POST,MIME method and Content length. Just add cookie on it in a way that it gets encoded and decoded in the port.

HTML Software Architecture Java Linux Computer Security

Project ID: #28537827

About the project

2 proposals Remote project Active 3 years ago

Awarded to:

maadirajudata

Hi Greetings! I have expertise in designing and developing http servers and incorporation of security features using java security and framework secuirty. Please inform the browsers supported Thanks MDS

$99 USD in 5 days
(35 Reviews)
5.3

2 freelancers are bidding on average $100 for this job

arjun366333

Hello Good day , i have checked your project requirement for Build me HTTP Server which encodes and decodes cookie, I am a full stack development and network engineer , I can help you with this requirement , I have cre More

$100 USD in 7 days
(25 Reviews)
5.5