Solved

Apache Web Server Getenv Issue

Posted on 2010-09-01
3
583 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
[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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Redirect to catagorie in case of 404 4 32
How do I get Window Title of all opened process? 4 39
Coding for the first time 9 70
Powershell GUI 11 66
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secureā€¦
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

730 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