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

 
 

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

Submitter:  Andreas Kirsch <kirsche40>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-4448.
    Corresponding source code