HP3000-L Archives

September 2004, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bill Cadier <[log in to unmask]>
Reply To:
Bill Cadier <[log in to unmask]>
Date:
Wed, 29 Sep 2004 12:59:18 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
Tom writes:

> Thanks for the reply.
>
> Actually, since my original post, I did discover that I needed to grant
> execute access to that file, and it now executes just fine.  As I told
> another responder offline, the part that really has me stumped is this:
>
> How do I translate between the world of MPE and Apache?  For example, say I
> want to create a CGI that accepts a client ID number from a browser request,
> does an Image database lookup, and returns a client address.  How do I get
> the client# from the web world into a COBOL program and how do I get the
> address from the COBOL program back to the web world?  The documentation I
> have found on the web has been very vague, if it even mentions it at all.
>
> Any help would be appreciated.
>
> Tom Gerken

Lars Appel has a page on Jazz that explains how to write a CGI in Cobol which
should get you started. The link to that is:

http://jazz.external.hp.com/papers/lang/cobcgi.html

You'll find after going thru that paper and playing with the example code that you
can pass the "client#" to your Cobol program via the "GET" or "POST" methods
depending on whether you want the data seen as part of the URL or not. Then
your Cobol program needs to write out the complete HTML page with headers
in order for it to be correctly rendered by the browser. It's really pretty simple.

The "GET" and "POST" methods are chosen when you design the form in a web
page that will send the client# to the CGI. Sending it to the CGI via the GET method
is actually easier from a testing point of view because you don't necessarily need
the form, you can test it via a URL, for example:

http://my3000.myco.com/cgi-bin/mycobcgi?123456

Where the ? signifies the beginning of data sent to mycobcgi and the 123456 is
that data.

Good luck.

HTH,

Bill
hp/vCSY
===========================================
  Reply to: bill . vcsy -at- comcast . net
===========================================

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2