Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CGI HTTP Header error

Posted on 1999-01-17
2
Medium Priority
?
252 Views
Last Modified: 2013-12-25
This must be a right of passage.
Formail, Blat,Nt4.0, IIS 4
1)script creates the file to be sent
2)I can manually blat the file from the command prompt
3)The script calls a bat file with the line
        exec("c:/blatit");
4)Tring to run the script from the web produces the following error:
         CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


C:\Inetpub\Domains\erpjobcenter>blat c:/message/temp/mailfile.txt -t dfarrell@dotnet-usa.com

This is mission criticle that this is resolved. I have spent days trying to configure this PLEASE HELP ME RESOLVE!!
Doug Farrell
dfarrell@dotnet-usa.com


0
Comment
Question by:dotnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
jhurst earned 200 total points
ID: 1832307
I do not see you outputting any http-headers at all:

If you are sending html then you need just
print("Content-type: text/html\n\n");

If not html then something slightly different.  Basically you need a header to send and then a blank line to end the header.
0
 

Author Comment

by:dotnet
ID: 1832308
I simplified the script to read:

#!/perl/bin
#send a file using blat
exec("c:/winnt/system32/blat c:/message/temp/mailfile.txt -t dfarrell\@dotnet-usa.com \n\n");

It returns this error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Sending c:/message/temp/mailfile.txt to dfarrell@dotnet-usa.com
Login name is DOTNET

The Html:
<HTML>
<HEAD>
      <TITLE>Untitled</TITLE>
</HEAD>

<BODY>
<FORM METHOD="get" ACTION="/cgi/simple.cgi">

<INPUT TYPE="TEXT" NAME="test">
<INPUT VALUE="Send" TYPE="submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT VALUE="Clear All" TYPE="reset"></FONT></CENTER></PRE></FORM>
</form>

</BODY>
</HTML>

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question