Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 589
  • Last Modified:

Apache Web Server Getenv Issue

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
lcor
Asked:
lcor
2 Solutions
 
KorcanCommented:
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
 
lcorAuthor Commented:
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
 
jkrCommented:
'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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now