Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6346421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:00:48+00:00 2026-05-24T21:00:48+00:00

In FastCGI, there is a pointer, envp, of struct FCGX_Request. Here is the code

  • 0

In FastCGI, there is a pointer, envp, of struct FCGX_Request. Here is the code :

typedef struct FCGX_Request {
    int requestId;            /* valid if isBeginProcessed */
    int role;
    FCGX_Stream *in;
    FCGX_Stream *out;
    FCGX_Stream *err;
    char **envp;

    /* Don't use anything below here */

    struct Params *paramsPtr;
    int ipcFd;               /* < 0 means no connection */
    int isBeginProcessed;     /* FCGI_BEGIN_REQUEST seen */
    int keepConnection;       /* don't close ipcFd at end of request */
    int appStatus;
    int nWriters;             /* number of open writers (0..2) */
    int flags;
    int listen_sock;
} FCGX_Request;

I guess it means the environment variable of somewhere. Is the browser’s or the webserver’s environment variable?

Maybe I know little about the WEB, but I guess this should be something about the transmission between the browser and the webserver. So the envp is sent by the broswer to the webserver? If that’s true, can anybody show me some details about the envrioment variable?

What’s more, with FCGX_Request::in I can get some POST or GET actions, which is submitted by the browser. And I can put the result into FCGX_Request::out to sent to the browser.
My question is, is there any other things I can learn?

Any link of keyword is welcome. thanks~

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:00:49+00:00Added an answer on May 24, 2026 at 9:00 pm

    I guess it means the environment variable of somewhere. Is the
    browser’s or the webserver’s environment variable?

    It’s a pointer to an array of string pointers containing the environment variables passed by client (webserver) to the server (application), it’s used internally by FCGX_GetParam(). You can use it if you want to iterate through all variables but you should not mutate it or retain any pointers past the end of request.

    … I guess this should be something about the transmission between the
    browser and the webserver. So the envp is sent by the broswer to the
    webserver? If that’s true, can anybody show me some details about the
    envrioment variable?

    The browser uses the HTTP to talk with the webserver. The webserver uses FastCGI protocol and CGI to interface your application.

    The envp contains specific CGI and HTTP variables as defined by the standard, RFC 3875.

    My question is, is there any other things I can learn?

    Knowledge about mentioned protocols would probably be good start. The FastCGI dev kit’s documentation and examples. fcgiapp.h contains documentation for most public functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While I'm busy here reading the FastCGI documentation (yeah, reading the 'friendly' manual), does
I've found only two FastCGI libraries for C++. There's the official one , and
There are any number of tutorials out there on how to use FastCGI to
does FastCGI work well with PHP? It seems that some people running Ruby on
I'm using FastCGI to expose a C++ binary (written using the Wt framework) as
The docs at www.fastcgi.com aren't clear on this (to me), so I hope someone
Finding windows FastCGI help is proving very difficult. Any help would be greatly apprciated.
I'm running a Django app using FastCGI and lighttpd. Can somebody explain me what
I've got a Perl based FastCGI app that rarely goes down. However, when it
I am trying to setup django with fastcgi on apache. Django is installed and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.