Announcement

Collapse
No announcement yet.

Perl Referrer script help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Perl Referrer script help

    I am trying to use the following referrer script:


    http://www.eco.fishytest.co.uk/cgi-b...%2facatalog%2f


    Where website is: http://www.eco.fishytest.co.uk
    Source is: Google
    Page is: Showering_and_Bathing.html
    Path to acatalog is: ./acatalog/
    Baseurl is: http://www.eco.fishytest.co.uk/acatalog/

    I have changed Userdefinable field 3 to Referrer

    Yet i am getting "The specified CGI application misbehaved by not returning a complete set of HTTP headers." when using the url.

    Please can anyone assist to where i'm going wrong.

    Cheers in advance

    Ben
    Ben Adcock
    Caged Fish Web Design

    #2
    It looks as though you already have the acatalog and a slash in your baseurl, then you are adding /acatalog/ again. The full path you are delivering is sitedomain/acatalog//acatalog/pagename.

    Either set path="" and baseurl as you have it, or set path="/acatalog/" and baseurl just the domainname. That should work.
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      Cheers Bill,

      However, though i have ammended them i still seem to get the same problem. Below are 2 links based on the variations you mentioned.

      http://www.eco.fishytest.co.uk/cgi-b...talog%2f&PATH=

      http://www.eco.fishytest.co.uk/cgi-b...%2facatalog%2f

      Ben
      Ben Adcock
      Caged Fish Web Design

      Comment


        #4
        Your original one looks the same to mines (which work). have a search on the forum for 'CGI application misbehaved', there seems to have been a few posts which may help.
        Cheers

        David
        Located in Edinburgh UK

        http://twitter.com/mcfinster

        Comment


          #5
          Cheers David,

          Came across a post which mentioned about a problem with windows servers.

          Had to edit refererer.pl and add the follwing lines after #!<Actinic:Variable Name="PerlPath"/>

          my $bFound = 0;
          my $sDir;
          foreach $sDir (@INC)
          {
          if ($sDir eq ".")
          {
          $bFound = 1;
          last;
          }
          }
          if (!$bFound)
          {
          push (@INC, ".");
          }

          push (@INC, "cgi-bin");
          Now all links above work
          Ben Adcock
          Caged Fish Web Design

          Comment


            #6
            Yep, seems to be working fine for me now certainly!
            Cheers

            David
            Located in Edinburgh UK

            http://twitter.com/mcfinster

            Comment

            Working...
            X