Skip to content
Snippets Groups Projects
Closed fcl-web patch for apache and cgi applications (bug fixes and additions)
  • View options
  • fcl-web patch for apache and cgi applications (bug fixes and additions)

  • View options
  • Closed Issue created by FPC Admin account

    Original Reporter info from Mantis: bobo
    • Reporter name: Attila Borka

    Description:

    1. Added: CGI and Apache applications' temporary uploaded files will be deleted after a request is handled /html forms with file upload(s)/ so the files are not left there in the temporary directory.

    2. Fixed: Temporary files are not created with a single CRLF in them for html forms where no file(s) were uploaded.

    3. Added: Apache applications are now processing and passing the input parameters (QueryFields, ContentFields, uploaded files, etc.). This was only there for CGI applications.

    4. THTTPHeader and descendants RemoteAddress property renamed to RemoteAddr for Delphi compatibility

    5. Note: For some unknown reason the

    ap_get_remote_host(FRequest^.Connection, FRequest^.Per_Dir_Config, REMOTE_HOST, Nil)

    call is always crashing, therefore for now this field is not populated. The other used ap_* call is working: ap_get_server_port(FRequest)
    This would force a DNS lookup according to the HostnameLookups setting in the Apache configuration.

    1. Minor changes and corrections in comments here and there

    Additional information:

    Would it be possible to streamline the menu in Lazarus a little? Once someone installs the fpweb package there are four items appear in the File->New menu:

    Simple CGIApplication
    CGI Application
    Custom CGI Application
    Apache Module

    Newcomers or even Delphi converts will have hard time to understand which is which. Maybe keep one CGI Application and the Apache Module?

    Mantis conversion info:

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading