specifying additional path information on the command line

From: David Christensen (dpchrist_at_holgerdanske.com)
Date: 04/27/04

  • Next message: David Christensen: "Re: specifying additional path information on the command line"
    Date: Tue, 27 Apr 2004 05:23:29 GMT
    
    

    comp.lang.perl.modules:

    I am working on some Perl CGI scripts that use "additional path
    information". For example, if the user clicks on the following HTML
    link:

        <A HREF="/cgi-bin/randompicture.cgi/dpchrist/images">demo</A>:

    It results in the script randompicture.cgi being called with
    "dpchrist/images" as the additional path information. The script can
    fetch this additional path information via CGI.pm's path_info() and
    path_translated() functions:

        my $path = path_translated()
            || die "must be called with additional path information";

    I use strict and use CGI::Carp qw(fatalsToBrowser) during development,
    but sometimes I still get a "500 Internal Server Error". I would like
    to be able to invoke the script from the command line, but can't figure
    out how to specify the additional path information. Yes, I RTFM and
    STFM. Does anybody know how to do this?

    TIA,

    David


  • Next message: David Christensen: "Re: specifying additional path information on the command line"

    Relevant Pages

    • Cant make this page work
      ... I can't make this script work properly. ... The script at the bottom of the html page ... Does someone have a perl ... sub output_trace_headers { ...
      (comp.lang.javascript)
    • Re: Use with Action "Send Reply" Dont Go
      ... Set Up an HTML Signature ... Go to Tools/Signatures in Entourage, ... "Auto-Reply HTML" or something similar. ... script in the Entourage Script Menu Items folder. ...
      (microsoft.public.mac.office.entourage)
    • Validating to a higher 4.01 standard (long)
      ... The next step is to copy these HTML documents to a new directory (so you do ... onmousedown %Script; #IMPLIED ... datafld CDATA #IMPLIED ... href %URI; #IMPLIED ...
      (alt.html)
    • Posting & Help REQ - Active Directory Reporting Script - pls help add to it
      ... I started writing a script to make a basic HTML report of my active ... ' This code prints out a list of global catalogs for the forest ... Function DisplayDomains (strDomain, strSpaces, dicDomainHierachy) ...
      (microsoft.public.scripting.vbscript)
    • Re: Twee Cheerz fur Unka Dan!
      ... Finish the script that will allow review and selection of messages ... Write a script to convert special characters to HTML entities (half ... Fangu! ...
      (rec.pets.cats.community)