Search the web
Sign In
New User? Sign Up
http-compliance · discussion about HTTP compliance testing and tests
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How the server should get the output of a CGI script   Message List  
Reply | Forward Message #115 of 117 |
Re: [http-compliance] How the server should get the output of a CGI script

On Thu, 6 May 2004, ripuda wrote:

> we have been developing a HTTP/1.1 server that will support
> cgi scripts. please any body let me know how should i get the
> output of a cgi or perl script. though, we know that these script
> program sends their output on STDOUT device but how the server
> should read or get that output

The exact solution would depend on your programming language,
libraries you can use, operating system, desired performance, and a
set of features you want to support. All of the above may affect how
one captures the output of a program from another program. For a
simple, partial, C-centric solution, consider using a popen(3) call.

There are open source servers with elaborate CGI support; in theory,
you may be able to extract the logic and specifics from Apache httpd
or another open source server.

Note that, ideally, you also want to capture and log STDERR output of
a CGI script.

None of the above is related to HTTP or HTTP compliance so you may
want to find a more appropriate venue for followup questions.

Alex.

--
Protocol performance, functionality, and reliability testing.
Tools, services, and know-how.
http://www.measurement-factory.com/



Sun May 23, 2004 4:19 am

rousskov@...
Send Email Send Email

Forward
Message #115 of 117 |
Expand Messages Author Sort by Date

Hi all, we have been developing a HTTP/1.1 server that will support cgi scripts. please any body let me know how should i get the output of a cgi or perl...
ripuda
Offline Send Email
May 23, 2004
1:58 am

... The exact solution would depend on your programming language, libraries you can use, operating system, desired performance, and a set of features you want...
Alex Rousskov
rousskov@...
Send Email
May 23, 2004
4:19 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help