Podcast
Questions and Answers
Which layer of the TCP/IP protocol suite is responsible for providing reliable and ordered data delivery?
Which layer of the TCP/IP protocol suite is responsible for providing reliable and ordered data delivery?
- Network Access Layer
- Internet Layer
- Transport Layer (correct)
- Application Layer
Which of the following best describes the relationship between the Internet and the World Wide Web?
Which of the following best describes the relationship between the Internet and the World Wide Web?
- The WWW is a system of interconnected hypertext documents accessed via the Internet. (correct)
- The Internet is a collection of web pages, while the WWW is the underlying network infrastructure.
- The Internet is managed by a single entity while the WWW is decentralized.
- The Internet and the WWW are synonymous terms referring to the same entity.
What role does the Domain Name System (DNS) play in the context of URLs and web browsing?
What role does the Domain Name System (DNS) play in the context of URLs and web browsing?
- It translates domain names into IP addresses. (correct)
- It specifies the directory and file location on a web server.
- It identifies the type of internet service such as HTTP or FTP.
- It specifies the communication port for web servers.
In a URL, which part specifies the directory and file where a resource is located on the server?
In a URL, which part specifies the directory and file where a resource is located on the server?
Which of the following is the primary function of HTML tags?
Which of the following is the primary function of HTML tags?
In the context of HTTP, what is the primary difference between a request and a response?
In the context of HTTP, what is the primary difference between a request and a response?
What is the purpose of the 'Content-Type' header in an HTTP message?
What is the purpose of the 'Content-Type' header in an HTTP message?
Which HTTP method is best suited for sending data to the server to create or update a resource?
Which HTTP method is best suited for sending data to the server to create or update a resource?
What differentiates a static web page from a dynamic web page?
What differentiates a static web page from a dynamic web page?
What is the primary advantage of client-side web programming??
What is the primary advantage of client-side web programming??
Which of the following is a typical use case for server-side web programming?
Which of the following is a typical use case for server-side web programming?
What is the role of a web server in processing a static web page request?
What is the role of a web server in processing a static web page request?
Which of the following best describes the purpose of an Application Server (AS) or Web Application Server (WAS)?
Which of the following best describes the purpose of an Application Server (AS) or Web Application Server (WAS)?
In a three-layer Application Server architecture, what is a potential drawback of using multiple levels of servers?
In a three-layer Application Server architecture, what is a potential drawback of using multiple levels of servers?
What is the primary function of Apache Tomcat?
What is the primary function of Apache Tomcat?
When Apache HTTP Server and Apache Tomcat are combined, what is the key benefit?
When Apache HTTP Server and Apache Tomcat are combined, what is the key benefit?
In the steps of processing a dynamic webpage, which action occurs immediately after the user fills out the user interface in the browser?
In the steps of processing a dynamic webpage, which action occurs immediately after the user fills out the user interface in the browser?
Why is TCP, rather than UDP, typically used for web browsing?
Why is TCP, rather than UDP, typically used for web browsing?
For what reason might a web developer use a CDN (Content Delivery Network)?
For what reason might a web developer use a CDN (Content Delivery Network)?
Which statement best describes the purpose of cookies in web applications:?
Which statement best describes the purpose of cookies in web applications:?
Flashcards
What is the Internet?
What is the Internet?
A global network of interconnected computers using the TCP/IP protocol suite, facilitating information exchange.
What is the World Wide Web?
What is the World Wide Web?
A system of interconnected hypertext documents (web pages) accessed via the Internet.
What is a URL?
What is a URL?
A standard way of specifying the location of a resource on the WWW.
What is the Protocol (in URL)?
What is the Protocol (in URL)?
Signup and view all the flashcards
What is the Domain Name?
What is the Domain Name?
Signup and view all the flashcards
What does DNS do?
What does DNS do?
Signup and view all the flashcards
What is a Port Number?
What is a Port Number?
Signup and view all the flashcards
What is HTTP?
What is HTTP?
Signup and view all the flashcards
What is HTTP request?
What is HTTP request?
Signup and view all the flashcards
What is HTTP response?
What is HTTP response?
Signup and view all the flashcards
HTTP Request/Response format?
HTTP Request/Response format?
Signup and view all the flashcards
What does the GET method do?
What does the GET method do?
Signup and view all the flashcards
What does the POST method do?
What does the POST method do?
Signup and view all the flashcards
What is the Request line?
What is the Request line?
Signup and view all the flashcards
What do Headers do?
What do Headers do?
Signup and view all the flashcards
What is the Body?
What is the Body?
Signup and view all the flashcards
What is Status-line?
What is Status-line?
Signup and view all the flashcards
What is a Static Web Page?
What is a Static Web Page?
Signup and view all the flashcards
What is a Dynamic Web Page?
What is a Dynamic Web Page?
Signup and view all the flashcards
What is a Web Server?
What is a Web Server?
Signup and view all the flashcards
Study Notes
Internet and WWW
- The internet functions as a global network where interconnected computers use TCP/IP protocols for information exchange.
- No single entity has control, as different aspects are handled by different entities.
- IP addresses, like
148.78.250.12
, identify each computer on a global scale. - Common applications include WWW, file transfer, and electronic mail.
World Wide Web (WWW)
- The WWW is a system of interconnected hypertext documents (web pages) accessed through the internet.
- It operates on a client-server model where browsers act as clients to request and display web pages from web servers.
- A website is a collection of related web pages, usually identified by a domain name, published on the WWW.
- A homepage is the first page visitors encounter on a site, while a web page is a single document with text, multimedia, and hyperlinks.
Uniform Resource Locator (URL)
- A URL specifies the location of a resource on the WWW.
- URLs follow a standard format:
Protocol://Domain name[:Port Number]/[Path][;Parameters][?Query String][#Fragment]
. - Protocol defines the internet service type (e.g.,
http
,https
,ftp
). - The domain name or IP address identifies the web server hosting the resource (e.g.,
www.hanbit.co.kr
or61.72.250.71
). - DNS translates domain names into IP addresses.
- Port number (optional) specifies the server's communication port, such as
:80
for HTTP or:443
for HTTPS. - Path (optional) specifies the directory and file location of a resource on the server, defaulting to the root directory if omitted, with
index.html
often served as default. - Common protocols:
www
for web service usinghttp
,https
,ftp
.Email
for email service usingSMTP
,POP3
.FTP
for file transfer service usingftp
.
URL Example
- An example is
https://cs.kw.ac.kr/main/main.php
orhttps://www.google.com/search?q=Berners-Lee
. - The
https
part specifies the protocol for internet service communication. - The domain name (
cs.kw.ac.kr
,www.google.com
) identifies the web server. - The rest of the URL is the path, which includes the directory and file location, along with any optional queries (e.g.,
?q=Berners-Lee
).
HTML (Hyper Text Markup Language)
- HTML is the standard markup language for creating web pages.
- HTML tags (markup symbols within angle brackets) instruct web browsers on how to display text, images, audio, and video.
- HTML tags usually come in pairs, such as
(start tag) and
(end tag). - An example of HTML tag would be "This is a Heading" displayed as a heading or "This is a paragraph." displayed as a paragraph.
- Basic HTML tags:
- `` specifies the document as a web page.
- `` specifies descriptive information about the web documents.
- `` specifies the visible part of a web document.
HTTP (Hyper Text Transfer Protocol)
- HTTP enables web servers and browsers to exchange documents, like HTML, over the web.
- HTTP operates as a request/response protocol in a client-server architecture where browsers act as clients and web servers as servers.
- When a user checks their bank balance:
- The client sends the user's ID and password via an HTTP request to the bank server.
- The server searches its database and sends the result as an HTTP response to the client.
HTTP Request and Response
- HTTP requests and responses use a generic message format with four components:
- Start-line: Includes the request-line (e.g.,
GET /example-page HTTP/1.1
) or status-line (e.g.,HTTP/1.1 200 OK
). - Header fields: Provide additional information about the request or response, such as content type and encoding methods.
- Empty line: Indicates the end of the header fields.
- Message-body: Optional data like user input or files and images.
- Start-line: Includes the request-line (e.g.,
- Common HTTP methods:
GET
: Requests the specified resource from a server.POST
: Sends data to a server to create or update a resource.HEAD
: Similar to GET, but without the response body.DELETE
: Deletes the specified resource.PATCH
: Applies partial modifications to a resource.
HTTP Message
- HTTP request message example:
- The URL
/cgi-bin/process.cgi
is used to process data sent to the server and returns a response accordingly. - Headers pass information to the server, and the content type specifies the format of data in the request body.
- Body stores data sent using POST.
- The URL
- HTTP response message example:
- The status line (
http/1.1 200 ok
) provides the request outcome. - Headers provide information about the server and resource access.
- Body can include HTML for the client.
- The status line (
Web Page Types
- Two types of web pages:
- Static: A page transmitted as-is from the server, displaying fixed content for all users, created with HTML/CSS with no user interaction.
- Dynamic: A page generated by a web application, displaying content based on user input, created with web programming techniques.
Web Programming Techniques
- Web programming enables flexible interaction beyond the capabilities of HTML.
- Client-side programming involves executing pages on the browser after delivery.
- This speeds up interaction and avoids trip to the server for simple functionality.
- Examples: JavaScript, AJAX.
- Server-side programming executes page on the web server before sending it.
- This is typically used for interactive websites interfacing with databases.
- Tasks involve retrieving shopping categories based on customer preferences and applying business logic.
- Examples: PHP, Servlet, JSP.
Web Servers
- A web server processes and responds to client requests.
- It hosts websites and includes other servers for gaming, storage, FTP, and email.
- The term
web server
refers to the entire system or software supervising HTTP requests/responses, like Apache HTTP Server. - Processing a static web page:
- A user enters a URL or clicks a hyperlink using a browser.
- The browser translates the action into an HTTP request for the web page after establishing a TCP connection.
- The server fetches the web page and sends it to the browser as an HTTP response.
- The browser parses the HTTP response and displays the result.
Application Servers
- Application Server (AS) or Web Application Server (WAS) expands web server functionality.
- Static data (HTML, CSS, Image) goes to the web server.
- Dynamic data (User's data, Application logic) goes to the AS (or WAS).
- Core features: Process management, load balance, failure recovery, system expansion, database support, security.
- It provides an efficient solution for implementing business logic (e.g., Tomcat, IBM's Web Sphere, Oracle Web Logic Server).
- Types of Application Server Architectures:
- Three-layer AS architecture suits large-scale web applications, though many server layers can increase system overhead.
- Two-layer AS architecture, having app server within a web server, for most applications.
Apache HTTP and Tomcat Servers
- Apache HTTP Server is often referred to as Apache Web Server.
- It is a robust web server that serves static content and is suitable for simple static websites.
- Apache Tomcat is an application server and open-source Servlet/JSP container implementing Java enterprise specifications.
- It supports Servlets, JSP, and other Java-based technologies.
- It handles dynamic web applications, executing Java code on the server side, and has its primary strength in dynamic content.
- Tomcat Server is a combination of Apache HTTP Server and Apache Tomcat.
- The combination allows efficient handling of both static and dynamic content.
Steps For Processing
- Steps for processing a dynamic web page:
- A user enters a URL in a browser.
- The browser translates the user's action into an HTTP request.
- The server retrieves the HTML and sends it to the browser as an HTTP response.
- The browser parses the response and displays the user interface.
- The user fills the interface, and the browser requests the server to process the data using an HTTP request.
- The web server initiates a web program and passes its data.
- The web program processes the data and sends the result back to the server.
- The web server sends the result to the client with an HTTP response.
- The browser parses the HTTP response and displays the result.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.