Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

How run a cgi with HTTP headers

I need to execute a cgi like NPH (Non Parsed Headers) in Unix Apache servers on a Notes Server.
0
pomper
Asked:
pomper
1 Solution
 
pluimCommented:
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now