Solved

How run a cgi with HTTP headers

Posted on 1998-12-09
1
202 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now