Lab 1 - HTTP and HTML

Previous Next

We are providing this information to you via the
Internet Connection for AS/400 Server
Home- Company Info- Sales- Support- Press Releases- Mail- Links- OS/400

Introduction to Lab 1 - HTTP and HTML

You have a new job to develop the web pages for your own company. The only problem is that the person who had the job before you has died, and left you with unfinished work.

Come back here when you are finished, but first look at the mess you were left with! Broken links. Broken images. Broken DB2WWW, image maps and CGI applications. Bummer.

The first thing we are going to do today is to fix the HTML and most of the links in your web application.

Where are things located for TEAMnn? (nn=your team number)

Description Value
The URL to your web application http://internut.rchland.ibm.com/ITSOICnn/welcome.htm (or)
file:///c:/ITSOICnn/welcome.htm (you must first complete Step 1 below)
Web application is located on the AS/400 /ITSOICnn/*
Web application is located on your PC /ITSOICnn/*
You will be fixing links and graphics in three HTML files /ITSOICnn/welcome.htm
/ITSOICnn/imvh102.htm
/ITSOICnn/imvh300.htm
AS/400 userid and password ITSOICnn
ITSOICnn
AS/400 system name host09
PC system name hostnn (for example, team01's system name is host01)
PC User ID for anonymous FTP anonymous
The URL to a working example http://internut.rchland.ibm.com/ITSOIC.400/welcome.htm

Step-by-Step lab instructions - Part 1 (HTML)

  1. FTP the entire contents of /ITSOICnn from the AS/400 to your PC

    We do this once, to initialize the master copy which will be on your PC. We strongly suggest that you originate the FTP session from the AS/400 (the AS/400 is the FTP client).

    First, use tn5250 on the PC to telnet to the AS/400 and then logon as ITSOICnn with password ITSOICnn. Then:

    FTP from the AS/400 to your PC. That is, the AS/400 is the FTP client and your PC will be the FTP server.

  2. Edit on the PC the WELCOME.HTM file in \ITSOICnn
  3. Edit on the PC the IMVH102.HTM file in \ITSOICnn
  4. Edit on the PC the IMVH300.HTM file in \ITSOICnn
  5. FTP the three files you changed in /ITSOICnn from the PC to your AS/400

    We need to move the changed HTML back to test the Image Map and other changed links.

  6. Test, test, test all the links and specifically the Customer Support image map.

    If you have problems go back and edit the PC files then FTP them back to the AS/400.

Step-by-Step lab instructions - Part 2 (HTTP configuration)

  1. On your AS/400: use the WRKHTTPCFG command to browse the AS/400 HTTP configuration file.
    Question 3: What two HTTP directives allows your web application /ITSOICnn/welcome.htm to be served in either upper or lower case?
    Answer to Question 3.
    Question 4: Look at the image map Map directive. What does /qsys.lib/qtcp.lib/qtmhimag.pgm refer to?
    Answer to Question 4.
    Question 5: Look at the image map Map directive. What does /qsys.lib/itsoicnn.lib/imagemap.file refer to?
    Answer to Question 5.

Questions and Answers Table
Question Answer
Question 1: What is a bummer? The USA term 'bummer' had its origin in the 1960s. It was originally used to describe a bad experience with bad drugs. Later...the term was generalized to simply mean a bad experience. The term 'bummer' was used recently in a 1995 advertising campaign by IBM during an add for the AS/400. The AS/400 was seen as just the tool needed to solve a 'bummer' of a problem.

By the way, the questions and their answers can be found in a table at the bottom of all the labs. Return to the top.

Question 2: Why could you not test this on the PC? The PC is not set up to handle server side image maps. Look again to the URL that will be sent as you move the cursor over the image map GIF. It is a file:// URL, that will not work on your PC. You must move this HTML back to the AS/400 and test from there as the next step tells you to do. Return to Question 2.
Question 3: What two HTTP directives allows your web application /ITSOICnn/welcome.htm to be served in either upper or lower case? Pass /ITSOICnn/*
Pass /itsoicnn/*

Return to Question 3.

Question 4: What does /qsys.lib/qtcp.lib/qtmhimag.pgm refer to? This is the full path to QTMHIMAG.PGM, an image mapping CGI program that IBM has written for you.

Return to Question 4.

Question 5: What does /qsys.lib/itsoicnn.lib/imagemap.file refer to? This is the full path to the server side image map file. The ITSO wrote this for you. The member of MAPK.MBR is appended on the end of the URL as it comes from the client. Take a look at this image map source file on the AS/400 to see how it is coded.

Return to Question 5.

Previous Next

Agenda

htl010