Solution of IWT
Solution of IWT
5+
Virtual host 1.5=
Every HTTP request must include a Host header field. The reason for this 3)
requirement is that multiple host names may all be mapped by the Internet
DNS system to a single IP address.
For example, a single server machine within a college may host web sites
for multiple departments. Each website would be assigned its own fully
qualified domain name, such as www.cs.example.edu,
www.physics.example.edu, and so on. But DNS would be configured to
map all of these domain names to a single IP address. When an HTTP
request is received by the web server at this address, it can determine which
virtual host is being requested by examining the Host header. Separately
configured software can then be used to handle the requests for each virtual
host
Subtask
subtask to refer to the concept of a single “copy” of the server software
handling a single client connection.
When a connection request is received, the server dedicates a “subtask”
to handling this connection. The subtask establishes the TCP
connection and receives an HTTP request. 4 The subtask examines the
Host header field of the request to determine which “virtual host”
should receive this request and invokes software for this host.
Request URI
The second part of the start line is known as the Request-URI. The
concatenation of the string http://, the value of the Host header field
(www.example.org, in this example), and the Request-URI(/ in this
example) forms a string known as a Uniform Resource Identifier (URI).
A URI is an identifier that is intended to be associated with a particular
resource (such as a web page or graphics image) on the World Wide
Web. Every URI consists of two parts: the scheme, which appears
before the colon (:), and another part that depends on the scheme. Web
addresses, for the most part, use the http scheme. In this scheme, the
URI represents the location of a resource on the Web. A URI of this
type is said to be a Uniform Resource Locator (URL). Therefore, URIs
using the http scheme are both URIs and URLs.
Catalina
1. The internal Catalina portion of Tomcat also has a number of
parameter settings that affect functionality. These settings can
determine:
2. Which client machines may send HTTP requests to the server.
Which virtual hosts are listening for TCP connections on a
given port. What logging will be performed.
3. How the path portion of Request-URIs will be mapped to the
server’s file system or other resources.
4. Whether or not the server’s resources will be password
protected. Whether or not resources will be cached in the
server’s memory.
2. How to run Java programs on Apache web Server. Which package is used to (0.5+
handle external communication? Also enlist the parameters affecting the 0.5+
external communication. 2=3)
Ans When running a Java program, Apache is usually configured to run the
. program by using separate software called a servlet container. The servlet
container provides the Java Virtual Machine that runs the Java program
(known as a servlet), and also provides communication between the servlet and
the Apache
Tomcat is a popular, free, and open-source servlet container developed and
maintained by the Apache Software Foundation.
3. Differentiate between GET and POST method used for HTTP communication (2
with example. )
Note:
While using different methods take example of how the URL is changed
after data submission.
Write at least four differences.
GET POST
<form method="POST">
<input type="text" name="fname">name</input>
<input type="submit">Submit</input>
</form>
Or
Make a diagram.
GET Request:
http://example.com/page?firstname=abc&lastname=another
POST Request:
http://example.com
4. Syntactically and semantically link the information depicted in the following (0.5+
data for the creation of web page: 0.5+
The heading of the web page should be red in colour with font size 36. 2=3)
Home: This link should contain a paragraph about an organization
doing a survey on food habits (write random data). The link should
open in the same page.
Survey: This link should open in a different window which will contain
name, email, contact no., radio button for gender(male/female) and a
data list for food choices (vegetarian/non vegetarian), a submit button
to submit the data which should display “Thanks for responding to the
survey” after submitting the data in the same window. All the fields are
required.
Heading Tag <h1>……</h>
Ans Font colour should be provided with CSS
.
Paragraph tag<p>……..</p>
Navigation tag<nav>…….</nav>
Anchor tag <a> …….</a> for Home and survey
Form tag will be used
<form action=”demo.html” target=”_blank”>
First name:<br>
<input type="text" name="firstname" required><br>
Last name:<br>
<input type="text" name="lastname" required >
Contact no:<br>
<input type="text" name="lastname" required >
<input type="radio" name="gender" value="male" checked> Male<b
r>
<input type="radio" name="gender" value="female"> Female<br>
<select name="choice">
<option value="veg">Vegetarian</option>
<option value="nveg">Non Vegetarian</option>
</select>
<input type="submit" value="Submit">
</form>
5. Write a code to induce blurring effect in vector based images? Take any (2)
object for performing the blurring effect.
6. Send HTTP request from a client which is present in the employee (1+1+1=
department of the organization in order to find the confidential data 3)
regarding the employees. Before sending the request you may want to
include the header fields telling certain specification of how the response is
expected from the server.
For security: you may want to include transport layer security for sending
the request. Also include the resource’s path on the server machine along
with the search term and section of data you want to see. The character set
accepted would be UTF-16, will also accept images and maps. Ask the
server to keep the connection alive for 200 seconds.
After sending the request, the data returned was protected and will expire
after seven days.
Write down the requested URL along with the request and response header
fields.
Ans. Requested URL:
http:www.example.org:8443/a/b/c.txt?t=employee&r=information#main
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm
">
<area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm">
</map>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<frameset rows="25%,*,25%">
//divide the second row in two cols 25%,75%.
//in first col will contain audio, video, image map link which will open in
second col by setting the target.
</frameset>
Create frame_a.html, frame_b.html, Frame_c.html for audio, video and image tag.