• CGI not working

    From ROLF KNOBEL@1:124/5013 to All on Thu Jan 31 13:28:58 2019
    Date: Tue, 31 Jan 2006 14:28:58 -0400
    From: ROLF KNOBEL
    To: HECTOR SANTOS
    Subject: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138735738.40.0@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 25

    Hi

    I have a few Perl CGI running on my site. I did the Gamma AUP and they're
    not working anymore.

    I tested it with a small script test.cgi:

    print "Environment Variables";
    print "";
    while(($key,$val) = each(ENV))
    {
    print "$key: $val \n";
    }
    print "";

    Normally it would list all environment variables but now it's an empty display.

    If I look at the page source (the blank page, I replaced the brackets with []):

    [!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"]
    [HTML][HEAD]
    [META http-equiv=Content-Type content="text/html; charset=windows- 1252"][/HEAD]
    [BODY][/BODY][/HTML]

    That's all. And this is for all CGI I have on my site.
    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From HECTOR SANTOS@1:124/5013 to All on Thu Jan 31 15:23:38 2019
    Date: Tue, 31 Jan 2006 16:23:38 -0400
    From: HECTOR SANTOS
    To: ROLF KNOBEL
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138743155.40.1138735738@winserver.com>
    References: <1138735738.40.0@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 79

    Hmmmm,

    I copied and pasted this a ROLF.PL file

    ------------- cut here -----------
    print "Environment Variables";
    print "";
    while(($key,$val) = each(ENV))
    {
    print "$key: $val \n";
    }
    print "";
    ------------- cut here -----------

    and it into my CGI bin directory.

    I started my browser, logged in and type:

    /cgi/rolf.pl

    and it spit out the entire environment.

    I'm using the latest GAMMA AUP. I ran the GAMMA AUP to make sure. The important dll is:

    2005-12-17 06:54p 555,284 wchttps.dll

    and by the date of it, that hasn't changed since the initial gamma
    release back in December.

    Hope you can help find out whats going on there.

    Oh, I have a very old ActivePerl.....2001 version.

    ????

    ----












    <ROLF KNOBEL> wrote in message news:1138735738.40.0@winserver.com...
    Hi

    I have a few Perl CGI running on my site. I did the Gamma AUP and
    they're
    not working anymore.

    I tested it with a small script test.cgi:

    print "Environment Variables";
    print "";
    while(($key,$val) = each(ENV))
    {
    print "$key: $val \n";
    }
    print "";

    Normally it would list all environment variables but now it's an empty
    display.
    If I look at the page source (the blank page, I replaced the brackets
    with []):

    [!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"]
    [HTML][HEAD]
    [META http-equiv=Content-Type content="text/html; charset=windows- 1252"][/HEAD]
    [BODY][/BODY][/HTML]

    That's all. And this is for all CGI I have on my site.
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From ROLF KNOBEL@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 11:55:49 -0400
    From: ROLF KNOBEL
    To: HECTOR SANTOS
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138899349.40.1138743155@winserver.com>
    References: <1138743155.40.1138735738@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 99

    My https.dll: 2006-01-31 05:33p (the new gamma), the same result, the CGI doesn't work.
    I tested it with 451.5 and see that it's the same problem. Now I restored an old backup from 454.4 to test it and the CGI are working. Didn't you change anything in the 451.5 update with PHP and CGI? Possibly this has something
    to do with it.

    My ActivePerl version: 5.6.1 Build 635

    Perl scripts from a DOS prompt are working, the SpamAssassin from
    wsSpamGuard too.

    Rolf


    On 1/31/06 4:23 PM, HECTOR SANTOS wrote to ROLF KNOBEL:

    Hmmmm,

    I copied and pasted this a ROLF.PL file

    ------------- cut here -----------
    print "Environment Variables";
    print "";
    while(($key,$val) = each(ENV))
    {
    print "$key: $val \n";
    }
    print "";
    ------------- cut here -----------

    and it into my CGI bin directory.

    I started my browser, logged in and type:

    /cgi/rolf.pl

    and it spit out the entire environment.

    I'm using the latest GAMMA AUP. I ran the GAMMA AUP to make sure. The important dll is:

    2005-12-17 06:54p 555,284 wchttps.dll

    and by the date of it, that hasn't changed since the initial gamma
    release back in December.

    Hope you can help find out whats going on there.

    Oh, I have a very old ActivePerl.....2001 version.

    ????

    ----












    <ROLF KNOBEL> wrote in message
    news:1138735738.40.0@winserver.com...
    Hi

    I have a few Perl CGI running on my site. I did the Gamma AUP and
    they're
    not working anymore.

    I tested it with a small script test.cgi:

    print "Environment Variables";
    print "";
    while(($key,$val) = each(ENV))
    {
    print "$key: $val \n";
    }
    print "";

    Normally it would list all environment variables but now it's an empty
    display.
    If I look at the page source (the blank page, I replaced the brackets
    with []):

    [!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"] [HTML][HEAD]
    [META http-equiv=Content-Type content="text/html; charset=windows- 1252"][/HEAD]
    [BODY][/BODY][/HTML]

    That's all. And this is for all CGI I have on my site.



    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From HECTOR SANTOS@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 12:30:20 -0400
    From: HECTOR SANTOS
    To: ROLF KNOBEL
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138901829.40.1138899349@winserver.com>
    References: <1138899349.40.1138743155@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 54

    Since CGI working here and Michael Purdy is a big CGI user, he hasn't
    reported anything, it has to be the script engine itself.

    There were major enhancements in the CGI web processor in 451.5 and let
    see if there were and changes in 451.6.... This was the only fix in
    451.6:

    - FIX: Fixed CGI command line option to use arguments correctly.

    See AUP for details.

    There is only one thing I can thing of, and that is the script engine.

    Older systems where relaxed in spitting out the Status: and
    Context-Type: line. The WEB server will make a default assumption of
    302 and Context-Type: Text/Html.

    451.5 was enhanced to better support the environment strings,
    DOCUMENT_ROOT, and to work out the PHP versions differences, etc.
    In short, to better support the CGI standard documented at the Oreilly
    Standard CGI Web pages.

    My test environment was active perl (2001 version), all versions of PHP
    which I remember have different behaviors.

    Try adding this to the top of your script:

    print "Status: 302\n";
    print "Context-Type: Text/Plain\n";
    print "\n";

    Let me know what you find.

    ---
    Hector

    <ROLF KNOBEL> wrote in message
    news:1138899349.40.1138743155@winserver.com...

    My https.dll: 2006-01-31 05:33p (the new gamma), the
    same result, the CGI doesn't work.

    I tested it with 451.5 and see that it's the same problem.
    Now I restored an old backup from 454.4 to test it and the
    CGI are working. Didn't you change anything in the 451.5
    update with PHP and CGI? Possibly this has something to do with it.

    My ActivePerl version: 5.6.1 Build 635

    Perl scripts from a DOS prompt are working, the SpamAssassin from
    wsSpamGuard too.

    Rolf
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From ROLF KNOBEL@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 13:35:20 -0400
    From: ROLF KNOBEL
    To: HECTOR SANTOS
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138905320.40.1138901829@winserver.com>
    References: <1138901829.40.1138899349@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 63

    I added the three lines to the top but it doesn't display anything. The page source contains META http-equiv=Content-Type content="text/html; charset=windows-1252". Shouldn't this be a text/plain with the added code?
    (I tested it with content-type and context-type, I think the x was a typo)

    On 2/2/06 12:30 PM, HECTOR SANTOS wrote to ROLF KNOBEL:

    Since CGI working here and Michael Purdy is a big CGI user, he hasn't reported anything, it has to be the script engine itself.

    There were major enhancements in the CGI web processor in 451.5 and let
    see if there were and changes in 451.6.... This was the only fix in
    451.6:

    - FIX: Fixed CGI command line option to use arguments correctly.

    See AUP for details.

    There is only one thing I can thing of, and that is the script engine.

    Older systems where relaxed in spitting out the Status: and
    Context-Type: line. The WEB server will make a default assumption of
    302 and Context-Type: Text/Html.

    451.5 was enhanced to better support the environment strings,
    DOCUMENT_ROOT, and to work out the PHP versions differences, etc.
    In short, to better support the CGI standard documented at the Oreilly Standard CGI Web pages.

    My test environment was active perl (2001 version), all versions of PHP which I remember have different behaviors.

    Try adding this to the top of your script:

    print "Status: 302\n";
    print "Context-Type: Text/Plain\n";
    print "\n";

    Let me know what you find.

    ---
    Hector

    <ROLF KNOBEL> wrote in message news:1138899349.40.1138743155@winserver.com...

    My https.dll: 2006-01-31 05:33p (the new gamma), the
    same result, the CGI doesn't work.

    I tested it with 451.5 and see that it's the same problem.
    Now I restored an old backup from 454.4 to test it and the
    CGI are working. Didn't you change anything in the 451.5
    update with PHP and CGI? Possibly this has something to do with it.

    My ActivePerl version: 5.6.1 Build 635

    Perl scripts from a DOS prompt are working, the SpamAssassin from wsSpamGuard too.

    Rolf



    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From HECTOR SANTOS@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 14:28:11 -0400
    From: HECTOR SANTOS
    To: ROLF KNOBEL
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138908491.40.1138905320@winserver.com>
    References: <1138905320.40.1138901829@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 51

    On 2/2/06 1:35 PM, ROLF KNOBEL wrote to HECTOR SANTOS:

    I added the three lines to the top but it doesn't display anything. The page source contains META http-equiv=Content-Type content="text/html; charset=windows-1252". Shouldn't this be a text/plain with the added code?
    (I tested it with content-type and context-type, I think the x was a typo)

    Ok, I'm a lost as to what could be happening. The only thing that keeps hitting my brain is the version of perl. You said:

    My ActivePerl version: 5.6.1 Build 635

    Whats my version? ....

    G:\pxwin>perl -v

    This is perl, v5.6.0 built for MSWin32-x86-multi-thread
    (with 1 registered patch, see perl -V for more detail)
    Copyright 1987-2000, Larry Wall
    Binary build 623 provided by ActiveState Tool Corp.
    Built 16:27:07 Dec 15 2000

    I just retested it with a new simple HELLOWORLD.PL script with 1 line:

    print "Hello World!\n";

    and both IE and FF shows it!

    See if the socket I/O is coming thru. Turn on the Socket Log in the
    registry (DWORD EnableSocketLog = 1) under:

    HKLM/Software/SSI/Wildcat/WcWeb

    Get all the way where you about to to the PL test, open DOS window and
    delete SOCKET.LOG.

    Then run the URL and see what SOCKET.LOG says.

    If there is no response data, It has to be the script engine.

    Also, note to see if there is a DELAY or something in the script result.
    Let me see if there is an error log entry for any script engine CALL
    errors.... well any error in calling the script engine is send to the HTTP response.

    I don't know, it it sounds the version of active perl is doing this...

    If you can't figure out, I guess I have to get this 5.6.1 version and see
    for myself.


    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From ROLF KNOBEL@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 14:54:17 -0400
    From: ROLF KNOBEL
    To: HECTOR SANTOS
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138910057.40.1138908491@winserver.com>
    References: <1138908491.40.1138905320@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 96

    This is my cgitest.cgi:
    print "Status: 302\n";
    print "Content-Type: Text/Plain\n";
    print "\n";
    print "Hello World!\n";

    this is the generated socket.log:

    -------Request----------- size: 350 time: 29625
    GET /cgi/cgitest.cgi HTTP/1.0
    Accept: */*
    Accept-Language: de-ch
    If-Modified-Since: Thu, 02 Feb 2006 19:39:37 GMT; length=0
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
    CLR 1.1.4322)
    Host: www.box24.ch
    Connection: Keep-Alive
    Cookie: wcbbs=192.168.1.11:80; wcauth=(xxx deleted)


    -------Response---------- size: 284 time: 6328
    HTTP/1.0 200 OK
    Last-Modified: Thu, 02 Feb 2006 19:43:04 GMT
    Content-Length: 0
    Server: Wildcat/v6.1.451.6
    ETag: SERVER2
    X-Elapsed-Time: 6344
    X-BBS-CID: 28
    X-Powered-By: Wildcat.Net v6.1.451.6
    X-BBS-Name: Box 24
    Content-Type: text/html
    Date: Thu, 02 Feb 2006 19:43:10 GMT


    This is all. Content-Lenght: 0 seems to be wrong and it's 0 for all CGI programs.


    On 2/2/06 2:28 PM, HECTOR SANTOS wrote to ROLF KNOBEL:

    On 2/2/06 1:35 PM, ROLF KNOBEL wrote to HECTOR SANTOS:

    I added the three lines to the top but it doesn't display anything. The
    page
    source contains META http-equiv=Content-Type content="text/html; charset=windows-1252". Shouldn't this be a text/plain with the added
    code?
    (I tested it with content-type and context-type, I think the x was a
    typo)

    Ok, I'm a lost as to what could be happening. The only thing that keeps hitting my brain is the version of perl. You said:

    My ActivePerl version: 5.6.1 Build 635

    Whats my version? ....

    G:\pxwin>perl -v

    This is perl, v5.6.0 built for MSWin32-x86-multi-thread
    (with 1 registered patch, see perl -V for more detail)
    Copyright 1987-2000, Larry Wall
    Binary build 623 provided by ActiveState Tool Corp.
    Built 16:27:07 Dec 15 2000

    I just retested it with a new simple HELLOWORLD.PL script with 1 line:

    print "Hello World!\n";

    and both IE and FF shows it!

    See if the socket I/O is coming thru. Turn on the Socket Log in the registry (DWORD EnableSocketLog = 1) under:

    HKLM/Software/SSI/Wildcat/WcWeb

    Get all the way where you about to to the PL test, open DOS window and delete SOCKET.LOG.

    Then run the URL and see what SOCKET.LOG says.

    If there is no response data, It has to be the script engine.

    Also, note to see if there is a DELAY or something in the script result. Let me see if there is an error log entry for any script engine CALL errors.... well any error in calling the script engine is send to the HTTP response.

    I don't know, it it sounds the version of active perl is doing this...

    If you can't figure out, I guess I have to get this 5.6.1 version and see for myself.




    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From MICHAEL PURDY@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 17:57:21 -0400
    From: MICHAEL PURDY
    To: ROLF KNOBEL
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138921041.40.1138910057@winserver.com>
    References: <1138910057.40.1138908491@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 120

    Rolf

    I have tested Perl with your version and 5.8.7 and they both work fine as
    does PHP.

    Perhaps Hector can offer further wisdoms based on your socket log.

    The only time I have seen perl produce a blank Web output is when it is
    having problems locating the associated .dll which for you would be perl56.dll. and should be in your path statement.

    Mike


    On 2/2/06 2:54 PM, ROLF KNOBEL wrote to HECTOR SANTOS:

    This is my cgitest.cgi:
    print "Status: 302\n";
    print "Content-Type: Text/Plain\n";
    print "\n";
    print "Hello World!\n";

    this is the generated socket.log:

    -------Request----------- size: 350 time: 29625
    GET /cgi/cgitest.cgi HTTP/1.0
    Accept: */*
    Accept-Language: de-ch
    If-Modified-Since: Thu, 02 Feb 2006 19:39:37 GMT; length=0
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
    SV1; .NET
    CLR 1.1.4322)
    Host: www.box24.ch
    Connection: Keep-Alive
    Cookie: wcbbs=192.168.1.11:80; wcauth=(xxx deleted)


    -------Response---------- size: 284 time: 6328
    HTTP/1.0 200 OK
    Last-Modified: Thu, 02 Feb 2006 19:43:04 GMT
    Content-Length: 0
    Server: Wildcat/v6.1.451.6
    ETag: SERVER2
    X-Elapsed-Time: 6344
    X-BBS-CID: 28
    X-Powered-By: Wildcat.Net v6.1.451.6
    X-BBS-Name: Box 24
    Content-Type: text/html
    Date: Thu, 02 Feb 2006 19:43:10 GMT


    This is all. Content-Lenght: 0 seems to be wrong and it's 0 for all CGI programs.


    On 2/2/06 2:28 PM, HECTOR SANTOS wrote to ROLF KNOBEL:

    On 2/2/06 1:35 PM, ROLF KNOBEL wrote to HECTOR SANTOS:

    I added the three lines to the top but it doesn't display anything.
    The
    page
    source contains META http-equiv=Content-Type
    content="text/html;
    charset=windows-1252". Shouldn't this be a text/plain with the
    added
    code?
    (I tested it with content-type and context-type, I think the x was a
    typo)

    Ok, I'm a lost as to what could be happening. The only thing that
    keeps
    hitting my brain is the version of perl. You said:

    My ActivePerl version: 5.6.1 Build 635

    Whats my version? ....

    G:\pxwin>perl -v

    This is perl, v5.6.0 built for MSWin32-x86-multi-thread
    (with 1 registered patch, see perl -V for more detail)
    Copyright 1987-2000, Larry Wall
    Binary build 623 provided by ActiveState Tool Corp.
    Built 16:27:07 Dec 15 2000

    I just retested it with a new simple HELLOWORLD.PL script with 1 line:

    print "Hello World!\n";

    and both IE and FF shows it!

    See if the socket I/O is coming thru. Turn on the Socket Log in the registry (DWORD EnableSocketLog = 1) under:

    HKLM/Software/SSI/Wildcat/WcWeb

    Get all the way where you about to to the PL test, open DOS window
    and
    delete SOCKET.LOG.

    Then run the URL and see what SOCKET.LOG says.

    If there is no response data, It has to be the script engine.

    Also, note to see if there is a DELAY or something in the script result. Let me see if there is an error log entry for any script engine CALL errors.... well any error in calling the script engine is send to the
    HTTP
    response.

    I don't know, it it sounds the version of active perl is doing this...

    If you can't figure out, I guess I have to get this 5.6.1 version and
    see
    for myself.






    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From HECTOR SANTOS@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Thu, 02 Feb 2006 22:16:05 -0400
    From: HECTOR SANTOS
    To: ROLF KNOBEL
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138936974.40.1138910057@winserver.com>
    References: <1138910057.40.1138908491@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 51


    <ROLF KNOBEL> wrote in message

    -------Response---------- size: 284 time: 6328
    HTTP/1.0 200 OK
    Last-Modified: Thu, 02 Feb 2006 19:43:04 GMT
    Content-Length: 0
    Server: Wildcat/v6.1.451.6
    ETag: SERVER2
    X-Elapsed-Time: 6344
    X-BBS-CID: 28
    X-Powered-By: Wildcat.Net v6.1.451.6
    X-BBS-Name: Box 24
    Content-Type: text/html
    Date: Thu, 02 Feb 2006 19:43:10 GMT

    This is all. Content-Lenght: 0 seems to be wrong and it's 0
    for all CGI programs.

    This means it RAN but there was no output for whatever reason.

    If there a CGI Process error (like exe not found), you would see some
    error here.

    I really can't tell you what could be happen.

    What do you mean by "all CGI programs?"

    Type this:

    Change the .PL script engine to this:

    C:\WC6\FAKEPERL.CMD

    Then create this batch C:\WC6\FAKEPERL.CMD file:

    --- cut here ---
    @ECHO OFF
    ECHO HELLO WORLD!
    --- cut here ---

    You got to get a HELLO WORLD now!








    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From ROLF KNOBEL@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Fri, 03 Feb 2006 13:23:46 -0400
    From: ROLF KNOBEL
    To: HECTOR SANTOS
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138991026.40.1138936974@winserver.com>
    References: <1138936974.40.1138910057@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 23

    On 2/2/06 10:16 PM, HECTOR SANTOS wrote to ROLF KNOBEL:

    What do you mean by "all CGI programs?"

    I have a few perl programs (most of them are from the link directory I have since years without problems). None of them runs since 451.5

    Type this:

    Change the .PL script engine to this:

    C:\WC6\FAKEPERL.CMD

    Then create this batch C:\WC6\FAKEPERL.CMD file:

    --- cut here ---
    @ECHO OFF
    ECHO HELLO WORLD!
    --- cut here ---

    You got to get a HELLO WORLD now!

    No, just a blank page like before.
    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From ROLF KNOBEL@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Fri, 03 Feb 2006 13:27:44 -0400
    From: ROLF KNOBEL
    To: MICHAEL PURDY
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1138991264.40.1138921041@winserver.com>
    References: <1138921041.40.1138910057@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 135

    Strange.... the Perl bin directory with the dll files is in the path but I have
    a
    blank page. I don't know what's wrong in my setup, I didn't change anything with Perl because my SpamAssassin version doesn't work with newer versions
    of Perl.

    On 2/2/06 5:57 PM, MICHAEL PURDY wrote to ROLF KNOBEL:

    Rolf

    I have tested Perl with your version and 5.8.7 and they both work fine as does PHP.

    Perhaps Hector can offer further wisdoms based on your socket log.

    The only time I have seen perl produce a blank Web output is when it is having problems locating the associated .dll which for you would be perl56.dll. and should be in your path statement.

    Mike


    On 2/2/06 2:54 PM, ROLF KNOBEL wrote to HECTOR SANTOS:

    This is my cgitest.cgi:
    print "Status: 302\n";
    print "Content-Type: Text/Plain\n";
    print "\n";
    print "Hello World!\n";

    this is the generated socket.log:

    -------Request----------- size: 350 time: 29625
    GET /cgi/cgitest.cgi HTTP/1.0
    Accept: */*
    Accept-Language: de-ch
    If-Modified-Since: Thu, 02 Feb 2006 19:39:37 GMT; length=0
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
    SV1; .NET
    CLR 1.1.4322)
    Host: www.box24.ch
    Connection: Keep-Alive
    Cookie: wcbbs=192.168.1.11:80; wcauth=(xxx deleted)


    -------Response---------- size: 284 time: 6328
    HTTP/1.0 200 OK
    Last-Modified: Thu, 02 Feb 2006 19:43:04 GMT
    Content-Length: 0
    Server: Wildcat/v6.1.451.6
    ETag: SERVER2
    X-Elapsed-Time: 6344
    X-BBS-CID: 28
    X-Powered-By: Wildcat.Net v6.1.451.6
    X-BBS-Name: Box 24
    Content-Type: text/html
    Date: Thu, 02 Feb 2006 19:43:10 GMT


    This is all. Content-Lenght: 0 seems to be wrong and it's 0 for all CGI programs.


    On 2/2/06 2:28 PM, HECTOR SANTOS wrote to ROLF KNOBEL:

    On 2/2/06 1:35 PM, ROLF KNOBEL wrote to HECTOR SANTOS:

    I added the three lines to the top but it doesn't display anything.
    The
    page
    source contains META http-equiv=Content-Type
    content="text/html;
    charset=windows-1252". Shouldn't this be a text/plain with the
    added
    code?
    (I tested it with content-type and context-type, I think the x
    was a
    typo)

    Ok, I'm a lost as to what could be happening. The only thing that
    keeps
    hitting my brain is the version of perl. You said:

    My ActivePerl version: 5.6.1 Build 635

    Whats my version? ....

    G:\pxwin>perl -v

    This is perl, v5.6.0 built for MSWin32-x86-multi-thread
    (with 1 registered patch, see perl -V for more detail)
    Copyright 1987-2000, Larry Wall
    Binary build 623 provided by ActiveState Tool Corp.
    Built 16:27:07 Dec 15 2000

    I just retested it with a new simple HELLOWORLD.PL script with 1
    line:

    print "Hello World!\n";

    and both IE and FF shows it!

    See if the socket I/O is coming thru. Turn on the Socket Log in the registry (DWORD EnableSocketLog = 1) under:

    HKLM/Software/SSI/Wildcat/WcWeb

    Get all the way where you about to to the PL test, open DOS
    window
    and
    delete SOCKET.LOG.

    Then run the URL and see what SOCKET.LOG says.

    If there is no response data, It has to be the script engine.

    Also, note to see if there is a DELAY or something in the script
    result.
    Let me see if there is an error log entry for any script engine CALL errors.... well any error in calling the script engine is send to the
    HTTP
    response.

    I don't know, it it sounds the version of active perl is doing
    this...


    If you can't figure out, I guess I have to get this 5.6.1 version and
    see
    for myself.








    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)
  • From HECTOR SANTOS@1:124/5013 to All on Thu Jan 31 19:17:14 2019
    Date: Fri, 03 Feb 2006 16:20:47 -0400
    From: HECTOR SANTOS
    To: ROLF KNOBEL
    Subject: Re: CGI not working
    Newsgroups: winserver.public.gamma.testing
    Message-ID: <1139002057.40.1138991026@winserver.com>
    References: <1138991026.40.1138936974@winserver.com>
    X-WcMsg-Attr: Rcvd
    X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
    Lines: 71


    <ROLF KNOBEL> wrote in message
    news:1138991026.40.1138936974@winserver.com...

    You got to get a HELLO WORLD now!

    No, just a blank page like before.

    Odd. Did it even call the batch file? How about adding an echo
    statement:

    ECHO HELLO > C:\WC6\GOTIT.TXT

    Stupid question? Did you try clearing the BROWSER cache?

    If you revert WCHTTPS.DLL, to what version does it begin to work again?

    451.6 2006-01-31 05:33p 555,828
    451.5 2005-10-20 05:20p 555,284
    451.4 2005-04-26 10:21a 531,096
    451.2 2005-01-09 11:53p 472,468

    The above are from my development machine. It should match the current
    and older versions saved on the AUP server.

    You should have them in your BACKUP-XXXXXX folders.

    I think I asked if there was a DELAY issue in the response, like 1-3
    seconds. It should fast, maybe a very short delay for Windows to load
    the PERL.EXE and its DLLS the FIRST TIME. But after the first time, its
    should fast processing because of Windows caches. Windows releases them
    after X time when it sees it no longer being used.

    So if you really should not see a delay after the first time. That might
    mean something is interferring with the loading process.

    I'm just guessing with that because there was 1 change in 451.4 related
    to CGI programs taking a long time to respond with output. WCWEB has a 3
    second or so timer waiting for idle output. This only when he sees
    nothing. Once it sees something, the timer is off. This was a small
    bug here with this timer logic that was fixed in 451.5, that was causing duplicate output with CGI that behaved like so:

    Write Output part 1
    Delay 3 or more seconds
    Write Output part 2

    The 451.4 web duplicated part 1 with part 2. That was fixed in 451.5.

    451.5 also basically added Environment strings to better support PHP DOCUMENT_ROOT stuff so that you didn't have to set the PHP.INI location
    of web or document root directory or something like that. It also
    improved how a CGI URL can be called with parameters.

    And 451.6 had one fix only to fix the new CGU URL with parameters added
    in 451.5.

    Try to cause it to fail. In other words, change the SCRIPT ENGINE to an
    EXE that doesn't exist. Make sure WCWEB is trying to call it and
    fails.

    If that works, we know it is calling the EXE.


    --
    Hector Santos, Santronics Software, Inc.
    http://www.santronics.com



    --- Platinum Xpress/Win/WINServer v3.1
    * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)