Solved

How run a cgi with HTTP headers

Posted on 1998-12-09
1
220 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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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 …
Suggested Courses

626 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