Solved

How run a cgi with HTTP headers

Posted on 1998-12-09
1
214 Views
Last Modified: 2013-12-18
I need to execute a cgi like NPH (Non Parsed Headers) in Unix Apache servers on a Notes Server.
0
Comment
Question by:pomper
1 Comment
 
LVL 4

Accepted Solution

by:
pluim earned 200 total points
ID: 1117791
What do you mean by "execute"? Just call it? Or do you wish to write
your own non-parsed headers CGI program? The latter is not too difficult.

Sample script:

@echo off
echo HTTP/1.0 200 Document follows
echo Server: Lotus-Domino
echo Content-Type: text/html
echo.
REM note the dot above!
echo This page was generated by a NPH-script

save this file as nph-test.cmd
The "nph-" part is important - it tells the server not send
any HTTP headers, because the CGI will take care
of that.

Copy this script in your Domino/cgi-bin directory, call
it from the browser with http://<yourserver>/cgi-bin/nph-test.cmd

The convention that scripts/executables starting with "nph-"
provide their own HTTP headers is standard, not something
restricted to Apache or Unix.

Hope this helps.

pluim
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question