Solved

Apache Web Server Getenv Issue

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

635 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