Results 1 to 9 of 9

Thread: HTTP headers error

  1. #1
    Join Date
    Jun 2007
    Posts
    37

    Default 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?

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

    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.

  3. #3
    Join Date
    Jun 2007
    Posts
    37

    Default

    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.....

  4. #4
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

    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.

  5. #5
    Join Date
    Jun 2007
    Posts
    37

    Default

    Quote 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??

  6. #6
    Join Date
    Jun 2007
    Posts
    37

    Default

    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.

  7. #7
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

    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.

  8. #8
    Join Date
    Jun 2007
    Posts
    37

    Default

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

  9. #9
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,157

    Default

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

Posting Permissions

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