CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>

CGI sripts called by ASP Table of Contents PrintView CL1
<Previous> Browser Specific, Frames, Non ASP issues

Screen Resolution, Detecting <Next>


       

From: Andrew Stopford <andrew.stopford@virgin.net>
Organization: Freelance web site and software developer
Subject: [asp advanced] ASP and CGI

I want to use the output from the CGI within my ASP page correct. I don't think the exact form of the output is important, it basically is a string of data.

My ASP page is on our new NT (IIS 4.0) server and the CGI is on our RS6000 (UNIX) server. To make it even more interesting the CGI (RS6000) then connects to our IBM OS/390 Mainframe to run COBOL programs to produce the datastring.

I hope there is a way to do this!! 3 months of work depends on this.

Can any of you lot help me with this problem.

--
Andrew Stopford
webmaster@JavaLounge.com
ICQ: 4486466

Member HORB Core Work Group - Evaluation and Test Team
& IIOP Interoperability Team
Member HTML Writers Guild, International Webmasters Association
Unite for Java! - http://www.javalobby.org


From: "Paulo Antunes Veras" <paveras@tesla.com.br>
Subject: Re: [asp advanced] ASP and CGI
Date: Thu, 16 Apr 1998 09:42:19 -0300

That is in fact relatively simple. You just need a component from http://www.serverobjects.com/products.htm#Asphttp, which provides HTTP requesting capabilities to ASP. The component is called ASPHTTP.

Using it you can request data from the CGI directly from the ASP Page, and process it in any way before presenting data to the user.

Paulo Antunes Veras Tesla Tecnologia
paveras@tesla.com.br  CEP 04542-050
http://www.tesla.com.br R. Urussui, 71 cj.112
fone/fax 55 11 866-2090 Sao Paulo, SP - Brasil


From: "Freeman, Brian C." <bfreeman@tiger1.bns.att.com>
Subject: RE: [asp advanced] ASP and CGI - EXAMPLE CODE
Date: Thu, 16 Apr 1998 12:05:04 -0400

The below example works. It opens an URL and puts the output in to a string.

The Control comes with several MS Tools (VB5, ...) Most people have the control already installed. NOTE: Your Proxy settings and Cache Settings for IE will effect this control. It wraps the WININET API up into a nice COM Object. You can read more about WININET at the Internet Client SDK http://www.microsoft.com/msdn/sdk/inetsdk/asetup/default.htm.

Check your Registry to see if it's on your server. You should have the following enties.
[HKEY_CLASSES_ROOT\InetCtls.Inet]
@="Microsoft Internet Transfer Control, version 5.0 (SP3)"

[HKEY_CLASSES_ROOT\InetCtls.Inet\CLSID]
@="{48E59293-9880-11CF-9754-00AA00C00908}"

[HKEY_CLASSES_ROOT\InetCtls.Inet\CurVer]
@="InetCtls.Inet.1"

Brian Freeman

<%@ LANGUAGE="VBSCRIPT" %>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>

<% dim IC
Set ic = Server.CreateObject("InetCtls.Inet")
Dim rst
rst = ic.OpenURL( "http://127.0.0.1/default.htm")
%>
<%=rst%>
</BODY>
</HTML>


From: James Page [mailto:James.Page@Cedalion.co.uk]
Sent: Thursday, April 16, 1998 9:54 AM
Subject: RE: [asp advanced] ASP and CGI


Depends on how much data as well. As I recall, the GET method allows a  maximum of 255 characters appended to the URL


 

From: Rob Caron [mailto:RobC@SpectrumTech.com]
Sent: Thursday, April 16, 1998 12:34 PM
Subject: RE: [asp advanced] ASP and CGI

Actually, the HTTP protocol spec states that it,

"...does not place any 'a priori' limit on the length of a URI. Servers  MUST be able to handle the URI of any resource they serve, and SHOULD be  able to handle URIs of unbounded length if they provide GET-based forms  that could generate such URIs. A server SHOULD return 414 (Request-URI  Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers should be cautious about depending on  URI lengths above 255 bytes, because some older client or proxy   implementations may not properly support these lengths."

So isn't the 255 limit more of a glass ceiling? In the new Wrox ASP  book, they state a limit of around 1000 characters (p.89).

Of note though, GET restricts form data set values to ASCII characters.  Only POST is specified to cover the entire (ISO 10646) character set.

Rob Caron


From: Rob Caron <RobC@SpectrumTech.com>
Subject: RE: [asp advanced] ASP and CGI - URL Limit
Date: Thu, 16 Apr 1998 13:14:59 -0400

Since these are probably UNICODE (2 bytes/char), I guess the 2k sums up to be the 1000 characters tacked onto an address that Wrox was talking about?


From: "Freeman, Brian C." <bfreeman@tiger1.bns.att.com>
Subject: RE: [asp advanced] ASP and CGI - URL Limit

Here is a piece of the WININET.H. MS seems to be supporting about 2K URLS now. If I remember correct the first version of WININET had a much smaller size around 256.

//
// maximum field lengths (arbitrary)
//

#define INTERNET_MAX_HOST_NAME_LENGTH 256
#define INTERNET_MAX_USER_NAME_LENGTH 128
#define INTERNET_MAX_PASSWORD_LENGTH 128
#define INTERNET_MAX_PORT_NUMBER_LENGTH 5 // INTERNET_PORT is unsigned short
#define INTERNET_MAX_PORT_NUMBER_VALUE 65535 // maximum unsigned short value
#define INTERNET_MAX_PATH_LENGTH 2048
#define INTERNET_MAX_PROTOCOL_NAME "gopher" // longest protocol name
#define INTERNET_MAX_URL_LENGTH ((sizeof(INTERNET_MAX_PROTOCOL_NAME) - 1) \
+ sizeof("://") \
+ INTERNET_MAX_PATH_LENGTH)


From: "blaze" <blaze@coastnet.com>
To: <asp@mail.mailexperts.com>
Subject: [asp advanced] *****HERE IS HOW TO CONFIGURE IIS4 TO RUN CGI SCRIPTS
Date: Thu, 16 Apr 1998 11:40:10 -0700

Note on configuring IIS 4 server to run cgi scripts:
1. Download and install Perl 5 for windows
2. Then you get to play with your registry
a) from start button run regedit
b) go to this location:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/
Services/W3SVC/Parameters/ScriptMap
c) From edit menu select new string value
d) Name = ".cgi"
e) Value = "d:\perl\bin\perl.exe %s %s"


CL1 webserver: <Anantsystems<Ad info>

    AspnetEmail.com   AspNetPro.com

related sites: <FREE Help> <ASP> <Asp.net> <worldwide>  
feedback: <lovethat> <hatethat> <thanks> <credits> <contact us>