[prev]Life of a Request[next]

Ever wonder what happens when you click a link on the web? Your computer talks to a web server using HTTP, which stands for HyperText Transfer Protocol. You've probably seen the letters HTTP before, as they often appear in the location bar of your web browser. They're probably there right now!

Here's what happens each time you click on an AppJet app (or click the "run again" button in this guide).


1. You click a link

You click a link in your web browser.

2. Browser sends request

Your browser creates an "HTTP Request" containing information such as what path you are requesting and what IP address the request is coming from.

3. AppJet runs the app code

An AppJet server receives the request and runs the app's code, starting from the beginning of the file. As the code runs, the server keeps track of everything that is printed.

4. Server sends response

The AppJet server creates an "HTTP Response" containing all the HTML code that the app printed, or an error message if there is a problem. This response is sent back over the internet to your computer.

5. Browser renders page

Your browser uses the HTML code from the response to render a visual display of the page.


Previous Lesson: Web Development Next Lesson: Database Storage