[FASTCGI] Getting request headers (sent by the browser)

Paul Brown paul at sitka.org.uk
Mon Mar 18 05:39:23 EDT 2013


Hi,
In the Java implementation, they get put into the System properties and 
appear in uppercase with underscores. For example:

REQUEST_METHOD
CONTENT_TYPE

Best wishes,
-Paul

On 16/03/2013 23:11, Rob Lemley wrote:
> I don't know how it's exposed in the java interface, but in the c++ 
> interface, the headers are available as CGI environment variables in 
> the char** FCGX_Request.envp variable.  As I recall, all of the HTTP 
> header names in the table will have "HTTP_" prepended, and all dashes 
> (-) will appear as underscores  (_) in the FCGX_Request.envp table.
>
>
>     ------------------------------------------------------------------------
>     *From:* Udo Schroeter <udo.schroeter at gmail.com>
>     *To:* fastcgi-developers at mailman.fastcgi.com
>     *Sent:* Saturday, March 16, 2013 11:21 AM
>     *Subject:* [FASTCGI] Getting request headers (sent by the browser)
>
>     Hey all,
>
>     I'm using the Java reference implementation from fastcgi.com
>     <http://fastcgi.com/>. What I can't figure out (neither from the
>     white paper nor from looking at the code itself) is:
>
>     How can I get at the actual header variables sent by the browser
>     to the webserver? From what I can tell they're not in the input
>     stream...
>
>     I'm sorry if I missed something obvious, but I'm stuck and a
>     little hint would be greatly appreciated.
>
>     Thanks,
>
>     Udo
>
>     _______________________________________________
>     FastCGI-developers mailing list
>     FastCGI-developers at mailman.fastcgi.com
>     <mailto:FastCGI-developers at mailman.fastcgi.com>
>     http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
>
>
>
>
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
> http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.fastcgi.com/pipermail/fastcgi-developers/attachments/20130318/1526b706/attachment.html>


More information about the FastCGI-developers mailing list