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 Jan 11 08:14:28 2012  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


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

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


Andreas Kirsch <kirsche40>
Wed Jan 11 08:14:28 2012, 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Jan 12 19:57:22 2013sebdiazOpen/ClosedOpen=>Closed
    Thu Jan 10 09:15:47 2013kirsche40Carbon-Copy-=>Added kirsche40

    Back to the top

    Powered by Savane 3.1-cleanup1