Browse Source

+ Added http_url function from Michael Weinert

michael 23 years ago
parent
commit
66b211e01d
1 changed files with 16 additions and 2 deletions
  1. 16 2
      packages/extra/uncgi/uncgi.pp

+ 16 - 2
packages/extra/uncgi/uncgi.pp

@@ -107,6 +107,12 @@ function get_next_value(id: pchar): pchar;
 }
 }
 procedure set_content(ctype: string);
 procedure set_content(ctype: string);
 
 
+{ Function to get the requested URL }
+
+function http_url: pchar;
+
+
+
 procedure cgi_init;
 procedure cgi_init;
 procedure cgi_deinit;
 procedure cgi_deinit;
 
 
@@ -441,7 +447,12 @@ begin
 end;
 end;
 
 
 
 
-
+Function http_url: pchar;
+begin
+  http_url:=getenv('REQUEST_URI');
+end;
+  
+  
 begin
 begin
   {$ifdef win32}
   {$ifdef win32}
   InitWin32CGI;
   InitWin32CGI;
@@ -454,7 +465,10 @@ end.
 {
 {
   HISTORY
   HISTORY
   $Log$
   $Log$
-  Revision 1.5  2002-09-07 15:43:06  peter
+  Revision 1.6  2002-09-12 16:24:59  michael
+  + Added http_url function from Michael Weinert
+
+  Revision 1.5  2002/09/07 15:43:06  peter
     * old logs removed and tabs fixed
     * old logs removed and tabs fixed
 
 
   Revision 1.4  2002/05/31 11:54:33  marco
   Revision 1.4  2002/05/31 11:54:33  marco