help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'pwuenvvar' (#powtils_main)

TCgiEnvVar

Declaration

Source position: pwuenvvar.pas line 76

type TCgiEnvVar = record

  Accept: function: String;

  AcceptEncod: function: String;

  AcceptLang: function: String;

  AuthType: function: String;

  ContentLength: function: String;

  ContentType: function: String;

  Cookie: function: String;

  DocName: function: String;

  DocRoot: function: String;

  DocUri: function: String;

  Forwarded: function: String;

  GateIntf: function: String;

  Host: function: String;

  IfModSince: function: String;

  PathInfo: function: String;

  PathTranslated: function: String;

  Pragma: function: String;

  QueryString: function: String;

  Referer: function: String;

  RemoteAddr: function: String;

  RemoteHost: function: String;

  RemoteIdent: function: String;

  RemotePort: function: String;

  RemoteUser: function: String;

  RequestMethod: function: String;

  RequestUri: function: String;

  ScriptFileName: function: String;

  ScriptName: function: String;

  ScriptUri: function: String;

  ServerAdmin: function: String;

  ServerName: function: String;

  ServerPort: function: String;

  ServerProtocol: function: String;

  ServerSig: function: String;

  ServerSoft: function: String;

  UserAgent: function: String;

end;

Notes

These function calls make accessing CGI predefined server variables available to you very easy. The CgiEnvVar variable acts like a namespace for the Get functions implemented in pwuenvvar.pas

Example


uses
  pwumain,
  pwuenvvar;

begin
  webwrite('What is the current script we are running?<br>');
  webwrite( cgienvvar.ScriptName() );
  webwrite('<hr>');

  webwrite('What URL did the person come from?<br>');
  webwrite( cgienvvar.referer() );
  webwrite('<hr>');

  webwrite('What is the public html path on this server?<br>');
  webwrite( cgienvvar.DocRoot() );
  webwrite('<hr>');
end.






lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505