PassMark Logo
Home » Forum

HTTP headers error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wingnut144
    Member
    • Jun 2007
    • 37

    #1

    HTTP headers error

    I moved my site to a new host, and am having some problems with zoom.

    I had to put the cgi file into a different folder than I had it on my server, so the string that calls the cgi is:

    <cfhttp url="http://www.salleboise.com/cgi-bin/search/search.cgi?#cgi.QUERY_STRING#" method="GET" timeout="60" throwonerror="yes" charset="iso-8859-1"></cfhttp>

    And when trying the search, I'm getting:

    "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers".

    Anyone have any suggestions?
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    To start with you should read through this page on common CGI issues.

    I would also get it working in a standalone fashion before trying to wrap it up in another script. Wrapping it will probably hide the real errors.

    Comment

    • wingnut144
      Member
      • Jun 2007
      • 37

      #3
      I'm not sure what you mean by stand-alone..... but I'm not seeing the error I'm getting in that list of troubleshooting problems.....

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        You didn't mention it, but I assume by the use of "cfhttp" that you are wrapping our script in some Cold Fusion code.

        I am suggesting that while you are debugging the problem that you don't use CF, and instead call the CGI directly. CF is probably hiding the real error. And the real error is probably mentioned on the CGI page mentioned above.

        Comment

        • wingnut144
          Member
          • Jun 2007
          • 37

          #5
          Originally posted by wrensoft View Post
          You didn't mention it, but I assume by the use of "cfhttp" that you are wrapping our script in some Cold Fusion code.
          Yes, I am using ColdFuion to call the cgi.


          I am suggesting that while you are debugging the problem that you don't use CF, and instead call the CGI directly.
          How do you call it directly? What are the paramaters that need to be sent? I assume that its the same commands that would be used if I used the CF??

          Comment

          • wingnut144
            Member
            • Jun 2007
            • 37

            #6
            Ok, even if I call the search.cgi directly by using

            http://www.salleboise.com/cgi-bin/search/search.cgi?Max

            I get:

            CGI Error
            The specified CGI application misbehaved by not returning a complete set of HTTP headers.

            Comment

            • David
              Administrator
              • Dec 2004
              • 4714

              #7
              Your URL is not valid. A valid URL would be.
              http://www.salleboise.com/cgi-bin/search/search.cgi?zoom_query=Max

              And the "complete set of HTTP headers" error was covered in the CGI FAQ page referenced above. Please have a look at the page again, it is about half way down the page.

              Installation of a CGI script can be significantly harder than a PHP or ASP script (depending on your server and permissions on the server). So unless your site is huge (>10,000 pages) and you need the higher performance of the CGI you might be better off using the Zoom PHP or ASP option.

              Comment

              • wingnut144
                Member
                • Jun 2007
                • 37

                #8
                Can you wrap the .php version in a CF tag that you're aware of?

                Comment

                • David
                  Administrator
                  • Dec 2004
                  • 4714

                  #9
                  I don't know much about CF, but I suspect the cfhttp command can be used with any URL.

                  Comment

                  Working...