1. What are the sequences of steps for each
HTTP request from a client to the server?
1. Making the connection
2. Making a request
3. The response
4. Closing the connection
2. Write a note on Internet Information
Server (IIS)?
Microsoft’s Web server that runs on Windows
NT platforms, In fact, IIS comes
Bundled with Windows NT 4.0. Because IIS is
tightly integrated with the operating system, it is relatively easy to
administer. However, currently IIS is available only for the Windows NT
platform, whereas Netscape’s Web servers run on all major platforms, including
Windows NT platform, OS/2 and UNIX.
3. Explain about HTTP Connection?
It is a communication channel between web
browser and web server. It begins on the
Client side with the browser sending a
request to the web server for a document.
Request Header Fields are
1. From
2. Reference
3. If_modified_since
4. Pragma
5. User Agent
4. What is meant by Stateless Connection?
When a web server receives a HTTP request
from a web browser it evaluates the
request and returns the requested document,
if it exists, and then breaks the HTTP connection. This document is preceded by
the response header, which has details about how to display the document that
will be sent by the server. Each time a request is made to the server, it is as
if there was no prior connection and each request can yield only a single
document. This is known as Stateless Connection.
5. Write a note on Environment variables.
In CGI, the server prepares the environment
variables before it launches the CGI
Script. These represent the current state of
the server that is asking for the information. The environment variables are
not set from the command line but are created on the fly, and lasts only until
that particular script is finished. Each script gets its own unique set of
variables and multiple scripts can be executed at once, each in its own
environment.
6. What are STDIN and STDOUT?
These are mnemonics for standard input and
standard output, two predefined stream
/ file handles. Each process already inherits
these two handles already open. From the script’s point of view, STDIN is what
comes from the browser via the server when the post method is used, and the
STDOUT is where it writes its output back to the browser. The script picks up
the environment variables and reads STDIN as appropriate. It then does whatever
it was designed to do and writes its output to STDOUT
7. What are the two commonly used Request
methods?
The request methods tell the script how it
was invoked. Based on this information, the
Script decides how to act. The request method
is passed to the script using environment
Variable called REQUEST- METHOD. The two most
common request methods used are GET and POST.
GET
GET is a request for data, the same method
used for obtaining static documents. The
GET method sends request information as
parameter tacked onto the end of the URL. These parameters are passed to the
CGI program in the environment variable QUERY-STRING. E.g.: If the script is
called myprog.exe and is invoked from a link with the form
<A HREF="cgi-bin/myprog.exe?
lname=blow&fname=joe"> The REQUEST_METHOD will be the string GET,
and the QUERY_STRING will contain lname=blow & fname=joe. A mandatory
question mark separates the name of the script from the beginning of the
QUERY_STRING. If a slash is used instead of the question mark; the server
passes the information to script using the PATH_INFO variable instead of the
QUERY_STRING variable.
POST
POST operation occurs when the browser sends
data from a fill-in form to the server.
With POST, the QUERY_STRING mayor may not be
blank, depending on the server.The data from a POSTed query gets passed from
the server to the script using STDIN. Because STDIN is a stream and the script
needs to know how much valid data is waiting, the server also Supplies another
variable, CONTENT_LENGTH, to indicate the size in bytes of the incoming
"data.
The format for POSTed data is
Variable1=value1 & variable2=value2
&etc.
After the required data is available, the
script executes and writes its output to the STDOUT. The MIME code that the
server sends to the browser indicates the type of the file that is being sent.
This information that precedes the file is usually called the header. Since the script generates the output on the fly the server will
not be able to create a header for that information. Hence this information has
to be supplied by the script itself. Failure will result in the browser
receiving information that it does not know how to display.
8. What do you mean by JDBC?
JDBC Part of the Java Development Kit which
defines an application-programming interface for Java for standard SQL access
to databases from Java programs.
9. Define ODBC.
It is a standard for accessing different
database systems. There are interfaces for Visual Basic, Visual C++, SQL and
the ODBC driver pack contains drivers for the Access, Paradox, dBase, Text,
Excel and Betrieve databases.
10. List any two keyboard events?
1. OnKeypress
2 .onKeyUp
3. OnKeyDown
11. List any two mouse events?
l. onMouseUp
2. OnMouseDown
3. OnMouseOver
4. OnClick
No comments:
Post a Comment