07.05.2014 Views

Advantages of Using Secure Web Server on OpenVMS - OpenMPE

Advantages of Using Secure Web Server on OpenVMS - OpenMPE

Advantages of Using Secure Web Server on OpenVMS - OpenMPE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DCL CGI Example<br />

• The CGI (Comm<strong>on</strong> Gateway Interface) defines a way for<br />

a web server to interact with external c<strong>on</strong>tent-generating<br />

programs, which are <str<strong>on</strong>g>of</str<strong>on</strong>g>ten referred to as CGI programs or<br />

CGI scripts. It is the simplest, and most comm<strong>on</strong>, way to<br />

put dynamic c<strong>on</strong>tent <strong>on</strong> your web site. This document will<br />

be an introducti<strong>on</strong> to setting up CGI <strong>on</strong> your Apache web<br />

server, and getting started writing CGI programs.<br />

• Default scriptalias is in apache$root:[cgi-bin]<br />

• Simple example:<br />

$ set no<strong>on</strong><br />

$!<br />

$ write sys$output f$fao("!AS!/!/", "C<strong>on</strong>tent-type: text/plain")<br />

$ show sys/int<br />

$ exit<br />

9/7/2004 HP World 2004 Soluti<strong>on</strong>s and Technology C<strong>on</strong>ference & Expo 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!