bugcgicc - Bugs: bug #35285, CGICC does not return all data...


bug #35285: CGICC does not return all data from HTML request header

Submitted by:  Andreas Kirsch <kirsche40>
Submitted on:  Wed 11 Jan 2012 08:14:28 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 11 Jan 2012 08:50:13 AM UTC, comment #1:

A workaround to get the missing CGI environment data is to read them by using stdlib like:


Andreas Kirsch <kirsche40>
Wed 11 Jan 2012 08:14:28 AM UTC, original submission:

The HTML request header contains additional data like HTTP_ACCEPT_LANGUAGE which is not parsed by CGICC. Please add all those lines to

std::string fAcceptLanguageString;
} // namespace cgicc

cgicc::CgiEnvironment::readEnvironmentVariables(CgiInput *input)
fAcceptLanguageString = input->getenv("HTTP_ACCEPT_LANGUAGE");

// Win32 bug fix by Peter Goedtkindt
std::string https = input->getenv("HTTPS");
if(stringsAreEqual(https, "on"))
fUsingHTTPS = true;
fUsingHTTPS = false;

Andreas Kirsch <kirsche40>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by kirsche40 (Voted in favor of this item)
  • -email is unavailable- added by kirsche40 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-12 sebdiaz Open/ClosedOpen => Closed
    2013-01-10 kirsche40 Carbon-Copy- => Added kirsche40

    Back to the top

    Powered by Savane 3.3