Perl help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rose Crans
    Confirmed User
    • Oct 2002
    • 334

    #1

    Perl help

    What does this mean?

    cgi-lib.pl: Unknown Content-type: text/plain

    (Besides that I don't know Perl)
    Come away, come away...
  • salsbury
    Confirmed User
    • Feb 2002
    • 1070

    #2
    dunno. maybe cgi-lib.pl needs to be updated? what package is this from (cgi-lib.pl is not an uncommon name)?

    Comment

    • Rose Crans
      Confirmed User
      • Oct 2002
      • 334

      #3
      I got it from http://cgi-lib.berkeley.edu
      It's version 2.18
      i was getting internal server errors and the server said there were errors in the cgi-bin.pl file. so i uploaded a new one. now the script doesn't even run, but i get this error instead.

      bah.
      Come away, come away...

      Comment

      • salsbury
        Confirmed User
        • Feb 2002
        • 1070

        #4
        that sure is a big script. anyways, it looks like it'll only get there if the method is not GET, HEAD, blank, or the content-type is not 'application/x-www-form-urlencoded' or something'multipart/form-data'. in this case, it appears that the type is 'text/plain'.

        maybe you are POST'ing data to it with a content-type: header of text/plain rather than the application/x-www-form-urlencoded type?

        Comment

        • Rose Crans
          Confirmed User
          • Oct 2002
          • 334

          #5
          Honestly, I have no idea what that means. This script always worked before then I suddenly started getting errors.

          Anyway..
          Thanks salsbury for replying!
          Come away, come away...

          Comment

          • some_idiot
            Confirmed User
            • May 2002
            • 1511

            #6
            Originally posted by Rose Crans
            Honestly, I have no idea what that means. This script always worked before then I suddenly started getting errors.

            Anyway..
            Thanks salsbury for replying!
            1. Post what you're using it with.
            2. Have you recently installed emPerl
            3. Have you recently installed mod_perl (or upgraded Apache)

            A standard toss out would be

            print "Content-type: text/html\n";

            then run a PRE tag.
            Last edited by some_idiot; 12-24-2002, 12:52 PM.

            This AVS pays my mortgage!

            Comment

            • Rose Crans
              Confirmed User
              • Oct 2002
              • 334

              #7
              thanks, some. I'll have to figure this out later.
              Come away, come away...

              Comment

              • some_idiot
                Confirmed User
                • May 2002
                • 1511

                #8
                Originally posted by Rose Crans
                thanks, some. I'll have to figure this out later.
                I have to head out of town, but I'll keep an eye out for you while I'm on the road. It's almost always a simple problem with perl.

                This AVS pays my mortgage!

                Comment

                Working...