Professional Web Applications Themes

Perl Script in CFLOCATION tag - Coldfusion - Advanced Techniques

I'm trying to a Perl script that provides an authorization mechanism (call Bluestem). I'm running Coldfusion 7 within IIS 6 (Windows 2003 server). The CFM template is supposed to call the login script with the following line. <CFLOCATION url="https://#CGI.SERVER_NAME#/Scripts/bluestem/lb_relogin.pl#CGI.PATH_INFO#?#CG I.QUERY_STRING#"> The script is supposed to run then after verification go to CGI.PATH_INFO?CGI.QUERY_STRING. The following is in the browser address box: https://server.com/Scripts/bluestem/lb_login.pl/test/TestBluestem/default.cfm?&C FID=47854&CFTOKEN=30225016 The following is the error message. Coldfusion thinks it's a path instead of seeing the .pl in the middle and executing it. File not found: /Scripts/bluestem/lb_login.pl/test/TestBluestem/default.cfm If I remove the string after the .pl, the script runs but ...

  1. #1

    Default Perl Script in CFLOCATION tag

    I'm trying to a Perl script that provides an authorization mechanism (call
    Bluestem). I'm running Coldfusion 7 within IIS 6 (Windows 2003 server). The
    CFM template is supposed to call the login script with the following line.

    <CFLOCATION
    url="https://#CGI.SERVER_NAME#/Scripts/bluestem/lb_relogin.pl#CGI.PATH_INFO#?#CG
    I.QUERY_STRING#">

    The script is supposed to run then after verification go to
    CGI.PATH_INFO?CGI.QUERY_STRING.

    The following is in the browser address box:

    https://server.com/Scripts/bluestem/lb_login.pl/test/TestBluestem/default.cfm?&C
    FID=47854&CFTOKEN=30225016

    The following is the error message. Coldfusion thinks it's a path instead of
    seeing the .pl in the middle and executing it.
    File not found: /Scripts/bluestem/lb_login.pl/test/TestBluestem/default.cfm

    If I remove the string after the .pl, the script runs but takes me to my site
    home page. Is there a setting in the CF Administator or a different CF tag
    that I need to use?

    Thanks


    Spinagig Guest

  2. #2

    Default Re: Perl Script in CFLOCATION tag

    Spinagig wrote: 
    url="https://#CGI.SERVER_NAME#/Scripts/bluestem/lb_relogin.pl#CGI.PATH_INFO#
    ?#CG 
    https://server.com/Scripts/bluestem/lb_login.pl/test/TestBluestem/default.cfm?&C 


    Try using this:
    <CFLOCATION
    url="https://#CGI.SERVER_NAME#/Scripts/bluestem/lb_relogin.pl#URLEncodedForm
    at( CGI.PATH_INFO )#?#URLEncodedFormat( CGI.QUERY_STRING )#">

    But the problem might not be CF but IIS which sees the default.cfm extension
    at the end and invokes CF instead of perl.

    --
    <mack />


    Neculai Guest

  3. #3

    Default Re: Perl Script in CFLOCATION tag

    Thanks for trying but that didn't help.

    I did find out that it may be a Coldfusion issue. I renamed my file to .html
    and it worked correctly.

    Is there any way to tell Coldfusion MX 7 to execute a perl script pryor to
    executing a CFM template if the script is inline as shown above?

    Spinagig Guest

  4. #4

    Default Re: Perl Script in CFLOCATION tag

    Spinagig wrote: 

    It's not ColdFusion who decides which extension to call, it's the webserver,
    in this case IIS (as far as I know).
     

    cfexecute if the Perl script is installed on the same machine as CF. But I
    sure don't understand what you're trying to do.

    --
    <mack />


    Neculai Guest

Similar Threads

  1. [Perl-beginners] Perl script to switch user to root.
    By Remko in forum PERL Beginners
    Replies: 2
    Last Post: March 4th, 06:17 PM
  2. RFC on first perl script
    By drowl@23.me.uk in forum PERL Beginners
    Replies: 11
    Last Post: November 7th, 02:28 PM
  3. Control a non-perl image viewer from perl script
    By Harry Putnam in forum PERL Beginners
    Replies: 1
    Last Post: October 31st, 10:28 PM
  4. Perl Help - Windows Perl script accessing a Unix perl Script
    By dpackwood in forum PERL Miscellaneous
    Replies: 8
    Last Post: September 30th, 07:54 AM
  5. Execute shell script from a perl script
    By kderaedt in forum Perl / CGI
    Replies: 3
    Last Post: June 26th, 08:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139