Home » Articole » EN » Computers » Web development » Client-server exchange in web technology

Client-server exchange in web technology

The Uniform Resource Locator (URL) is the conventional description of the location of a document on the web. It has three parts:

  • The protocol to use specified before the // (HTTP: for HTTP, HTTPS for encrypted HTTP, for Web documents, but browsers are sometimes able to understand Internet protocols that are not part of the Web standards like IRC: for the babbling protocol, IRC and NNTP: for newsgroups, etc.
  • The host name, it follows the //, for example www.telework.ro refers to the domain name telework.ro (Telework, Romania (ro)) and on its network, the host www. which can be a physical host (single computer, the rarest case, or a set of computers intended for this site (via a CDN or a load balancer), this is the case for sites with a higher audience), or still a virtual host (a site placed alongside other sites on a single server, this is a very common case). The decoding of the host name requires, for the client, a DNS request allowing him to know the address of the server(s), for the server the association of this host name with the root folder containing the site data, a possible reference to another name (HTTP REDIRECT), or access to another server, if it is only a relay.
  • The document to provide, it follows the first / following the host name. The server decodes this information, to know the location of the file or script to be executed, it can be a symbolic name, converted via a URL rewrite by the server into different things, like the name of the called script and an argument which will be supplied to it, allowing it to supply the page according to the information contained in the database.

The DNS is an Internet service making it possible to obtain the correspondence between an easily readable and memorable host name, in an IP address. DNS is a hierarchy of servers distributed around the planet. However, the root DNS are all concentrated in the United States of America, due to the Internet’s military origin.

A web browser is typically used to operate an HTTP service. It is a software, capable of resolving the name by calling a DNS service, of exchanging with HTTP servers, according to the defined protocol, and capable of interpreting the HTML document, XHTML, various standard file formats, as defined by the w3c, and, if necessary, to return the documents provided to specialized plugins or external applications.

Web services can serve as a platform to create fully automated services primarily intended for interaction with automated systems in a software architecture, giving rise to certain conventions on programming interfaces with REST APIs, which respect the principles of the web, exchange formats such as JSON or XML technologies, and interaction protocols and techniques between client and server such as JSON or XMLHttpRequest objects in JavaScript.

It is also possible to use a dedicated application, which will communicate with the HTTP server, via the JSON data exchange format, in order to organize the data exchanges more specifically. Some other software is content to exchange files such as images via the HTTP protocol, using the semantic possibilities of the HTML format.

In order to make the data dynamic, without having to call the server for each modification on the terminal, web browsers can use several technologies. The most widely used today is JavaScript, which is part of the HTML5 standard. In the 2000s, Java applets and flash applications were very popular, but had two main flaws compared to the HTTP protocol; the data provided being completely binary and closed, they are not semantic; moreover it is necessary that the web browser contains a plugin to execute these formats. ActiveX technology is also used.

To keep a user’s information from one page to another, during a journey, called a “session”, there are three main methods for this, Cookies, and the HTTP, “POST” and “GET” methods:

  • Cookies (web cookies, Internet cookies, browser cookies, or simply cookies) are provided by the HTTP header and can be stored in the browser, but also be used to track the user from one site to another. Browsers therefore generally offer cookie blocking options to prevent this.
  • The HTTP “GET” method is the default transaction method between the web browser and the HTTP server, in this case, the session information will be visible in the URL bar, via arguments (usually placed after the “?” depending on the page called, but can also use URL rewrites In the case of the GET method, the session information can be located in the hyperlink or in a form in GET mode.
  • The HTTP “POST” method requires the use of an HTML form. This is not necessarily visible on the page, what appears to be a simple HTML link or button may very well be a form validation button and the passed information will not be visible in the URL bar in any case.

Translation and adaptation from Wikipedia

What is e-book? A guide for free ebook publishing
What is e-book? A guide for free ebook publishing

The e-book guide for publishers: how to publish, EPUB format, ebook readers and suppliers. An electronic book (also e-book, ebook, electronic book, digital book) is a book-length publication in digital form, consisting of text, images, or both, and produced on, … Read More

not rated $0.00 Select options
Philosophy of Blockchain Technology - Ontologies
Philosophy of Blockchain Technology – Ontologies

About the necessity and usefulness of developing a philosophy specific to the blockchain technology, emphasizing on the ontological aspects. After an Introduction that highlights the main philosophical directions for this emerging technology, in Blockchain Technology I explain the way the … Read More

not rated $0.00 Select options
Beginner’s Guide for Cybercrime Investigators
Beginner’s Guide for Cybercrime Investigators

In the real world there are people who enter the homes and steal everything they find valuable. In the virtual world there are individuals who penetrate computer systems and “steal” all your valuable data. Just as in the real world, … Read More

not rated $2.99 Select options

Leave a Reply

Your email address will not be published.