Link to home
Start Free TrialLog in
Avatar of CATT
CATT

asked on

CGI4VB problem, or how2 general CGI.exe in VB5

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!)
Avatar of Mirkwood
Mirkwood

ASKER CERTIFIED SOLUTION
Avatar of mrmick
mrmick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

Avatar of CATT

ASKER

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

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