1. Introduction to Web Applications Flashcards
(36 cards)
What is a web application?
A system using web page functionalities on front end and implements server programs in the back-end e.g Amazon, StudyDirect, Facebook, Twitter, Dropbox
In web applications, where is this back-end information stored?
Data centers
Why use Java Enterprise Edition?
Provides standardization of the services needed to build web applications.
What is a Uniform Resource Identifier (URI)?
A compact sequence of characters that identifies an abstract or physical resource
What is a URL (Uniform Resource Locator)?
A URI that provides details of the location.
What is HTTP?
A stateless, request-response protocol. Application layer protocol running on top of TCP.
What is a web page?
A web page consists of objects such as an HTML file, images, JavaScript files, Java applet, Cascading Style Sheets (CSS) etc
Describe the client/server model.
Client: requests, receives and displays web objects
Server: sends objects in response to requests (uses HTTP protocol)
What is a persistent connection?
Ability to send and receive multiple HTTP requests/responses over a single TCP connection.
What is the GET method?
Returns data corresponding to the URI
What is the POST method?
Sends data to a server.
What is the PUT method?
Transfers data to be stored under the URI.
What is the DELETE method?
DELETE removes the specified URI
What is the HEAD method?
HEAD returns the headers that would come with GET, but no body
Name the status codes 1XX to 5XX.
1XX - informational 2XX - successful 3XX - additional action to complete the request 4XX - bad requests 5XX - server errors
What is a stateless protocol?
A stateless protocol does not retain past session information.
Why is HTTP a stateless protocol?
Because each command is executed independently, without any knowledge of the commands that came before.
What is a cookie?
A piece of data written by the server that accompanies each client request to the server.
What are the four components of a cookie?
- HTTP response
- HTTP request
- A file on the user’s machine associating a cookie with the URI from which it was set
- An application on the server which can read and write the cookie
What is content distribution in networks?
A content delivery network or content distribution network is a geographically distributed network of proxy servers and their data centers.
What is DNS redirection?
DNS redirection was the controversial practice of serving a Web page to a user that is different from either the one requested or one that might reasonably be expected.
Name 3 URI schemes
1 HTTP
2 FTP
3 MAILTO
What is a non-persistent connection?
Allows only one object to be sent over TCP connection
Name 2 safe HTTP requests
GET
HEAD