Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Apache Web Server Getenv Issue

Posted on 2010-09-01
3
Medium Priority
?
587 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 400 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 1600 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 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