Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CGI4VB problem, or how2 general CGI.exe in VB5

Posted on 1999-07-12
4
Medium Priority
?
328 Views
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!)
0
Comment
Question by:CATT
[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
4 Comments
 
LVL 8

Accepted Solution

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


0
 
LVL 8

Expert Comment

by:mrmick
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.

0
 

Author Comment

by:CATT
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!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

661 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