24 #ifndef _CGIENVIRONMENT_H_
25 #define _CGIENVIRONMENT_H_ 1
52 template class CGICC_API std::vector<HTTPCookie>;
145 {
return ! operator==(env); }
162 operator= (
const CgiEnvironment& env);
179 getServerSoftware()
const
180 {
return fServerSoftware; }
189 getServerName()
const
190 {
return fServerName; }
199 getGatewayInterface()
const
200 {
return fGatewayInterface;}
209 getServerProtocol()
const
210 {
return fServerProtocol; }
219 getServerPort()
const
220 {
return fServerPort; }
230 {
return fUsingHTTPS; }
262 inline const std::vector<HTTPCookie>&
263 getCookieList()
const
273 getRequestMethod()
const
274 {
return fRequestMethod; }
286 {
return fPathInfo; }
295 getPathTranslated()
const
296 {
return fPathTranslated; }
305 getScriptName()
const
306 {
return fScriptName; }
318 getQueryString()
const
319 {
return fQueryString; }
328 getContentLength()
const
329 {
return fContentLength; }
343 getContentType()
const
344 {
return fContentType; }
354 {
return fPostData; }
372 {
return fReferrer; }
389 getRemoteHost()
const
390 {
return fRemoteHost; }
399 getRemoteAddr()
const
400 {
return fRemoteAddr; }
411 {
return fAuthType; }
421 getRemoteUser()
const
422 {
return fRemoteUser; }
435 getRemoteIdent()
const
436 {
return fRemoteIdent; }
457 {
return fUserAgent; }
476 getRedirectRequest()
const
477 {
return fRedirectRequest; }
488 getRedirectURL()
const
489 {
return fRedirectURL; }
499 getRedirectStatus()
const
500 {
return fRedirectStatus; }
519 save(
const std::string& filename)
const;
529 restore(
const std::string& filename);
542 parseCookie(
const std::string& data);
546 readEnvironmentVariables(
CgiInput *input);
548 unsigned long fServerPort;
549 unsigned long fContentLength;
551 std::string fServerSoftware;
552 std::string fServerName;
553 std::string fGatewayInterface;
554 std::string fServerProtocol;
555 std::string fRequestMethod;
556 std::string fPathInfo;
557 std::string fPathTranslated;
558 std::string fScriptName;
559 std::string fQueryString;
560 std::string fRemoteHost;
561 std::string fRemoteAddr;
562 std::string fAuthType;
563 std::string fRemoteUser;
564 std::string fRemoteIdent;
565 std::string fContentType;
567 std::string fUserAgent;
568 std::string fPostData;
569 std::string fRedirectRequest;
570 std::string fRedirectURL;
571 std::string fRedirectStatus;
572 std::string fReferrer;
574 std::vector<HTTPCookie> fCookies;