You are on page 1of 1

Client Server communication

When I enter URL: http://wikipedia.org, the URL automatically turns to IP address via


DNS server, that means the name is converted to IP. From the DNS server through the OS the IP
address reaches the browser, then the GET function is applied to the web server who finds the
information searched in the DB. The web server returns the information into HTML data stream
and the web browser reenders the HTML web page.
Opening the main page:
- status code: 301 – Redirect;
- a cookie associated with a cross-site resource at https://login.wikimedia.org/ was set
without the `SameSite` attribute;
- after redirection to https://ro.wikipedia.org/wiki/Pagina_principal%C4%83, GET request
is made;
- response code is 200 – OK.
For create a new account by providing invalid data in the fields, the POST function is
applied and the information goes to the server then to the DB.
https://ro.wikipedia.org/w/index.php?title=Special:
%C3%8Enregistrare&returnto=Pagina+principal%C4%83. The response returns to the client
with message: ,, Exista probleme la valorile introduse.”
When creating a new account by providing valid data fields, the previous request is
repeated, the only difference consists of the new values in the request body Form Data. The
response status code is 302 – redirect to main page. The response contains additional cookies.

You might also like