Professional Documents
Culture Documents
Section 1
Section 1
Technology
http://144.16.192.60/~isg/IWT/
About the Course
• I will be covering half the course (2 hours / week)
– Tuesday 9:30 AM – 11:25 AM
• Topics to be covered
– How Internet works, HTML, HTTP, CGI scripts, PERL, etc.
– Basic concepts of cryptology
– Network security protocols, firewall, NAT, etc.
• Details would be available on the web site.
• What to expect?
– Self-study materials will be prescribed all throughout the
course, from which questions will be set.
– Assignments:
• In groups of two, students will be assigned a Term
Paper and a Programming Assignment.
Network
Network
BACKBONE
Network
Network
Network
MESSAGE
Packets
HEADER DATA
http
request
Web
Servers
http
response
Web
Client http
request
http
response
WEB
BROWSER SERVER
<HTML>
<HEAD>
<TITLE> Using HTML Forms </TITLE>
</HEAD>
<HTML>
<HEAD>
<TITLE> Using HTML Forms </TITLE>
</HEAD>
Please fill up the form below and press DONE when done.
original page
P P
submit form
cgi
new html page
Browser
• Must know …
– How to access the form data.
• Mechanism depends on METHOD (GET or POST).
– How to return processed output back to the browser.
• HTML file created on the fly (typically).
• Details to be discussed later.
– Good idea to have a look at a typical Perl script.
<HTML>
<BODY>
……..
……..
<A HREF = “cgi-bin/map/menu.map”>
<IMG SRC = “IMAGES/imagemap.gif” ISMAP>
</A>
……..
……..
</BODY>
</HTML>
http://myserver.com/menu.map?x,y
# An example
default http://www.myserver.edu
base_url http://www.iitkgp.ac.in/demo
circle circle.html 45,45,80,45
rect rectangle.html 20,10,178,70
point point.html 100,50
poly polygon.html 200,60,295,60,275,10
base_url http://www.iitkgp.ac.in
circle circle.html 45,45,80,45
rect rectangle.html 20,10,178,70
http
request Web
Servers
http
response
Web
Client http
request
http
response
Roll=1234&Sex=M&Age=20
HTTP/1.0 200 OK
Range: bytes=1200-3500
http://www.xyz.com/cgi-bin/xyz.pl?Roll=1234&Sex=M
Content-Type: text/plain
text/html
image/gif
video/avi
$1
/bin/cat /home/user1/public_html/text-file.txt
CAT << EOM
</PRE>
</SMALL> <P>
</BODY>
</HTML>
EOM