HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 28th, 2000, 07:04 AM
Rui Rui is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 6 Rui User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I want to put the result of a .cgi file in a html page, what I mean is that I want to embebed the .cgi file into a .html file.
I can't use SSI because the .CGI file is in other server.

Any suggestions!?
Thanks
Rui

Reply With Quote
  #2  
Old June 28th, 2000, 08:55 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>I can't use SSI because the .CGI file is in other server

You actually can.

1) http://yourserver.com/cgi-bin/grap.cgi

#!/usr/local/bin/perl
print "Content-type: text/htmlnn";
use LWP::Simple;
$target_file = "http://otherserver.com/cgi-bin/script.cgi";
my $file = get($target_file);
print "$filen";

2) http://yourserver.com/myfile.html

<html>
<body>
<!--#include virtual="cgi-bin/grab.cgi"-->
</body>
</html>

To use Simple.pm, you need to download http://www.perl.com/CPAN-local/modules/by-module/LWP/libwww-perl-5.48.tar.gz
Readme file at -> http://www.perl.com/CPAN-local/modules/by-module/LWP/libwww-perl-5.48.readme

If that cgi script on other server only accepts POST method, you then need to use UserAgent.pm. For GET method, Simple.pm should be fine.

Please note this message has nothing to do with javascript. Please post similar message to Perl forum next time.

[This message has been edited by freebsd (edited June 28, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Cgi resuts in a html page!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway