CGI4VB problem, or how2 general CGI.exe in VB5

Posted on 1999-07-12
Medium Priority
Last Modified: 2012-05-04
I have got a problem;

I have made some CGI in VB5pro, in CGI4VB.
It worked fine as installed on my local thing here, but now I have uploaded my script to the server, and get a stament like this;

"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"
..and here my page follows, in the HTML source it looks so;

"<head><title>Error in CGI Application</title></head>
<body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.  The headers it did return are:<p><p><pre>"
..and my page again as created, but messed up by the <PRE> thing.

I use CGI4VB 1.5, the host of the server use ofcource NT.
Is this a CGI4VB problem, and if, and I can therefor not use it my Q goes;

1; How do I create working CGI in VB5, RAW!
2; I then need the nessesary commands, for fx SEND like in CGI4VB, or PRINT like i think it goes in PERL. ..also the commands for reciving the form input, that my user will send by (???) <FORM ACTION=/cgi-bin/myexe.exe? ...

Thank you! ... hope it's just a correction I need in the CGI4VB.. (but I can not change host!)
Question by:CATT
  • 2

Accepted Solution

mrmick earned 240 total points
ID: 1523999
Headers are at the beginning of all http transfers.  A sample header would be this:

"Content-type: text/html" & vbCrLf

HTTP Headers are terminated by a single vbCrLf, and the list of headers is terminated by two vbCrLf in succession, after which HTML follows.  Search the net for HTTP & RFC to get specs.


Expert Comment

ID: 1524000
Note: The line: "Content-type: text/html" & vbCrLf
is the syntax for assigning the data to a string and wouldn't include quotes or the VB concatenation symbol when sent as part of an HTTP send.


Author Comment

ID: 1524001
mrMick.... you are The Man of the day!!
****ing gr8 this is.

Content-type: text/html" & vbCrLf...was the thing, phew, I ... thanks!

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

600 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