Solved

How run a cgi with HTTP headers

Posted on 1998-12-09
1
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

710 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