Is there a FCGI_getenv() function??? C++
"Sebastian Beyer" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I was just wondering if there is a wrapper for the getenv() function. Since
in /fastcgi-prog-guide/ch2c.htm it says under "I/O Libraries"
Quote: " Familiarity: ...you use the same environment variables, same
techniques for parsing query strings, the same I/O routines, and so on."
But when I try getting the Environment of the WebServer, where query string
is in, I can't use fcgi_stdio.h. I have to use fcgio.h and use functions in
a way like in echo.cpp, which is not so easy for me.
Is there an example for tinyFastcgi using fcgio.h and FCGX_Accept_r()???
Because just getenv("SERVER_HOSTNAME") returns nothing in my case using the
fcgi_stdio.h and GFCGI_Accept() Because there is no "SERVER_HOSTNAME" in the
Process environment!!!
Am I missing something big? Or do I really have to encapsulate all the
functions of the library on my own just to get the WebServer Environment and
stdin???
I'm confused...
Greetings
Sebastian
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/