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: 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 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:

getenv("HTTP_ACCEPT_LANGUAGE")

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

CgiEnvironment.h
...
private:
...
std::string fAcceptLanguageString;
};
} // namespace cgicc

CgiEnvironment.cpp
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;
else
fUsingHTTPS = false;
}

Andreas Kirsch <kirsche40>

 

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

Attach File(s):
   
   
Comment:
   

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 12 Jan 2013 07:57:22 PM UTCsebdiazOpen/ClosedOpen=>Closed
    Thu 10 Jan 2013 09:15:47 AM UTCkirsche40Carbon-Copy-=>Added kirsche40

    Back to the top


    Powered by Savane 3.1-cleanup