Solved

Apache Web Server Getenv Issue

Posted on 2010-09-01
3
578 Views
Last Modified: 2013-12-25
Is any version of Apache known to have any issues with using getenv on any version of Linux?  The CGI/c++ program giving problems will occasionally return nulls or zero values with getenv("POST") and getenv("CONTENT_LENGTH");

I need to rule a server side issue out -- then, see if client is the problem.
0
Comment
Question by:lcor
3 Comments
 

Assisted Solution

by:Korcan
Korcan earned 100 total points
ID: 33579656
Have you checked users permission who execute your program ? Because if user doesnt have permission for apache , your program will get null values.Please try to execute script from root user and reply again this post.
0
 

Author Comment

by:lcor
ID: 33579721
Correction to question..meant to say getenv("REQUEST_METHOD") and then, check for post

Korcan, this problem only happens occasionally so it must not be a permission problem
0
 
LVL 86

Accepted Solution

by:
jkr earned 400 total points
ID: 33579920
'POST' can be of zero sized length if no actual content was passed. It might as well be a problem with the client.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

747 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

13 Experts available now in Live!

Get 1:1 Help Now