Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript in CGI ???

Status
Not open for further replies.

PGen

Programmer
Aug 31, 2001
39
GB
I am wondering how I write VBScript into a CGI for execution on a Lynux server?

Dont know how to program Pearl well. But have been successfully writing VBScript in ASP for some time.

What I am trying to do is simulate form data submition without involving the browser!!! Im sure this can be done by executing a CGI, but i cant program Pearl.

Can any of you helpfull ppl point me in the right direction?

Thanks,
Will
 
VBscript on Linux server is not possible.
What i recommand to you is to get learn PHP, it is a good language and it's quite easy to learn if u want to...
I know asp to but i've forced ;) to learn PHP and i did...
So if u could spear of your time a little to learn PHP it will be a good ideea.
Take a look at PHP forum... ________
George, M
email : shaddow11_ro@yahoo.com
 
Hi George,

Are you sure? I have been hosting VBScript based asp files on a Linux server for ages. Do you mean that CGI's can not be written in VBScript?

Will
 
Ok thats great, youve both told me what i already know:

1. I can run ASP on Linux, yup I have been for over a year

2. I need to learn Perl

BUT: can i write VBScript into a CGI ???

and if so...HOW?


Thnx guys.
 
Hi,

First, here is a little definition to help you along:

Code:
Common Gateway Interface (CGI), a specification for transferring information between a World Wide Web server and a CGI program. A CGI program is any program designed to accept and return data that conforms to the CGI specification. The program could be written in any programming language, including C, Perl, Java, or Visual Basic.
Second, ASP is basically the same.

So you write ASP pages and applications in VBScript (or other language like JScript or Perl) and CGI in Perl (or other language) and not the other way around.

Just run your VBScript code as you would any other CGI script. If you have support for ASP pages on a Linux (or other) server, there should not be any problem.

Bye.
 
Splendid! so it IS possible to write my VBScript into a cgi.

Do i just name my asp file .CGI instead of .ASP ?

--------------------------------------------------------

You may like to know what this is all about:

I need a script that looks at each row of a MySQL database and auto-submits to an external cgi that is expecting form data (HTTP Request).

This must not involve the browser (for security reasons). So using hidden HTML fields is out of the question.

--------------------------------------------------------

Any light you can shed on this problem is most appreciated.

Thanks yahve (et all),

Will
 
Hi,

I would like to help you, but I'm not sure I understand what it is your trying to do.

CGI is used to transfer info between the web server and a program. Usually the CGI script expects data from the web server which will trigger the script in response to a visitor's action (form submission). Then the script sends a response back to the web server, which relays it to the visitor's browser.

If you don't want to use a browser as the interface to the application, then I wonder why you bother doing this through a web server at all. If your application eventually is going to be use through a browser, then why not test it with a browser?

Specifically, if you want to send multiple rows of a database as form inputs to a server-side script automatically, I would suggest you use Perl. I know you might not be as familiar with Perl as you are with VBScript, but I think that Perl is better suited for that kind of automation and testing (using the LWP modules for example). I can't start to imagine how I would do such a thing with VBScript, even if it is probably possible.

Maybe if you give me more details, I could be more helpful. For example, what would you like to write in VBScript? the testing script or the form processing script? or both?

Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top