473,800 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET & cgi

Hi,

I'm not sure if this is the right newsgroup, but here goes...

I'm trying to integrate the webwho.zip cgi script from the following site:
http://www.webwho.co.uk/ into a standard ASP.NET site, but know nothing at
all about cgi.

Basically, I just want people to type the domain they want to look up into a
textbox, and then click a button to submit the form.

The site says that the script works "straight out of the box" but is also
massively configurable. I'd be happy just to get it working in my site! Can
anyone help?

Best,

Mark Rae
Nov 18 '05 #1
6 2181
its a simple perl script, so it will work on any server which supports perl
scripts. to get to work with asp.net, you will need to install a perl
interpreter.
-- bruce (sqlwork.com)


"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:ug******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

I'm not sure if this is the right newsgroup, but here goes...

I'm trying to integrate the webwho.zip cgi script from the following site:
http://www.webwho.co.uk/ into a standard ASP.NET site, but know nothing at
all about cgi.

Basically, I just want people to type the domain they want to look up into a textbox, and then click a button to submit the form.

The site says that the script works "straight out of the box" but is also
massively configurable. I'd be happy just to get it working in my site! Can anyone help?

Best,

Mark Rae

Nov 18 '05 #2
"bruce barker" <no***********@ safeco.com> wrote in message
news:un******** ******@tk2msftn gp13.phx.gbl...

Bruce,
its a simple perl script, so it will work on any server which supports
perl
scripts. to get to work with asp.net, you will need to install a perl
interpreter.


Thanks for the reply - according to my hosting company (www.hostinguk.net),
they have CGI and Perl 5 support, specifically "Perl for Win32 is
ActiveState's port of most of the functionality found in Perl, with the
addition of extra Win32 API specific calls that allow you to take advantage
of Windows specific functionality."

Will that be sufficient?

Also, does IIS 5.1 (WinXP Pro) have the same support for CGI / Perl?

Thanks,

Mark
Nov 18 '05 #3
That'll depend on what function does your CGI script use.

ActivePerl is not a full clone of Perl on *nix systems. Some of it's
function will not work correctly(e.g.: file locks) and some doesn't even
ported. You'll have to go to ActiveState's website to check it first.

Once confirmed it's OK, on IIS 5 it's simple. Just set the ASP.NET directory
to enable perl.exe to process .cgi extension files(This should be set when
creating new ADs, but don't know whether it's affect existing ADs.) Then set
the form's "action" property to point to the cgi. In IIS 6 of Win2003,
you'll have to enable Perl first.(Default state of Perl on IIS6 is
prohibited)

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> ¦b¶l¥ó
news:ua******** ******@tk2msftn gp13.phx.gbl ¤¤¼¶¼g...
"bruce barker" <no***********@ safeco.com> wrote in message
news:un******** ******@tk2msftn gp13.phx.gbl...

Bruce,
its a simple perl script, so it will work on any server which supports
perl
scripts. to get to work with asp.net, you will need to install a perl
interpreter.
Thanks for the reply - according to my hosting company

(www.hostinguk.net), they have CGI and Perl 5 support, specifically "Perl for Win32 is
ActiveState's port of most of the functionality found in Perl, with the
addition of extra Win32 API specific calls that allow you to take advantage of Windows specific functionality."

Will that be sufficient?

Also, does IIS 5.1 (WinXP Pro) have the same support for CGI / Perl?

Thanks,

Mark

Nov 18 '05 #4
"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
That'll depend on what function does your CGI script use.

ActivePerl is not a full clone of Perl on *nix systems. Some of it's
function will not work correctly(e.g.: file locks) and some doesn't even
ported. You'll have to go to ActiveState's website to check it first.
I've been told that it will run OK in ActivePerl.
Once confirmed it's OK, on IIS 5 it's simple. Just set the ASP.NET
directory
to enable perl.exe to process .cgi extension files
How do I do that?
(This should be set when creating new ADs, but don't know whether it's
affect existing ADs.)
New ADs? New Active Directories...? ??
Then set the form's "action" property to point to the cgi.
That's done.
In IIS 6 of Win2003, you'll have to enable Perl first.(Default state of
Perl on IIS6 is
prohibited)


That's fine - my hosting company will do that.
Nov 18 '05 #5

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> ¦b¶l¥ó
news:ut******** *****@TK2MSFTNG P11.phx.gbl ¤¤¼¶¼g...
"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
That'll depend on what function does your CGI script use.

ActivePerl is not a full clone of Perl on *nix systems. Some of it's
function will not work correctly(e.g.: file locks) and some doesn't even
ported. You'll have to go to ActiveState's website to check it first. I've been told that it will run OK in ActivePerl.

That's good. :)
Once confirmed it's OK, on IIS 5 it's simple. Just set the ASP.NET
directory
to enable perl.exe to process .cgi extension files. At the application settings, How do I do that?

In your IIS management console, right click your website and select
"properties ",
then click configure. See if ".cgi" extension exist. If not, create one with
exec path
set to:

C:\Perl\bin\per l.exe "%s" %s

You should actually see that ".pl" have been set automatically. But it won't
touch
the cgi extension as ".cgi" is not necessarily a Perl script.

Not that you have to explicitly declare ActivePerl responsible for handling
".cgi"
in the VD in other to make it work as IIS won't check the
"#C:\Perl\Perl. exe" header
as said by some Perl programming books.
(This should be set when creating new ADs, but don't know whether it's
affect existing ADs.)

New ADs? New Active Directories...? ??

Emmm... Sorry, I mean VD actually...
Then set the form's "action" property to point to the cgi.


That's done.
In IIS 6 of Win2003, you'll have to enable Perl first.(Default state of
Perl on IIS6 is
prohibited)


That's fine - my hosting company will do that.

Nov 18 '05 #6
"Lau Lei Cheong" <le****@yehoo.c om.hk> wrote in message
news:eQ******** ******@TK2MSFTN GP15.phx.gbl...
How do I do that?

In your IIS management console, right click your website and select
"properties ",
then click configure. See if ".cgi" extension exist. If not, create one
with exec path
set to:

C:\Perl\bin\per l.exe "%s" %s

You should actually see that ".pl" have been set automatically. But it
won't touch
the cgi extension as ".cgi" is not necessarily a Perl script.

Not that you have to explicitly declare ActivePerl responsible for
handling ".cgi"
in the VD in other to make it work as IIS won't check the
"#C:\Perl\Perl. exe" header
as said by some Perl programming books.


Excellent! It's working now. I'll need to read up on the Perl syntax so that
I can modify the script so that the output looks and feels like the rest of
the site, but at least it's working. Thanks for your help with that.
>(This should be set when creating new ADs, but don't know whether it's
>affect existing ADs.)

New ADs? New Active Directories...? ??

Emmm... Sorry, I mean VD actually...


I've modified the Default website too, so hopefully any new virtual
directories should "inherit" the configuration.
Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8581
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character reference (i.e.  ) and it seems to be converting the character to its UNICODE representation. Take this source XML document: <?xml version="1.0" encoding="UTF-8"?>
1
11445
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a href="mailto:DrTebi@yahoo.com">DrTebi</a> This would work like a regular mailto link in any browser, but wouldn't be visible to spiders if they don't have a function to decode it.
0
2425
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a href="http://blah.com/?test=test&amp;amp;test2=test2">Test2&amp;amp;</a> This results in the following HTML Code:
4
3033
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: /mypage.asp?value1=1&amp;value2=4&amp; ... which of course means nothing to asp.
4
3230
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know that I could externalize my JavaScript, but that will not be practical throughout this application. Is there any way to get around this issue? Xalan processor. Stripped down stylesheet below along with XHTML output. <?xml version='1.0'?>...
8
2819
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);" TextBox2.Attributes.Add("onKeyPress", jscode) You will notice that jscode contains the JavaScript Logical And operator (&&). However, ASP.NET renders this as &amp;&amp; in the code that is
11
6445
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved and
14
5937
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary changed to "&" by a browser when or other software, when editing and uploading the file to the web...
12
10122
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b) ..... // xsl contents abc.aspx?p1=v1&amp;p2=<xsl:value-of select="$v2" />
7
4631
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get BeautifulSoup to clean those up? There are various parsing options related to "&" handling, but none of them seem to do quite the right thing. If I write the BeautifulSoup parse tree back out with "prettify", the loose "&" is still in there. So...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.