CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Small question.

 



Drew
Deleted

Jun 25, 2000, 6:20 PM

Post #1 of 3 (380 views)
Small question. Can't Post

How would I do this....

A user loads a page, that page activates a CGI script on a different server/website and that script returns data to that page.

I really need to know, thanks.


Kanji
User / Moderator

Jun 25, 2000, 11:12 PM

Post #2 of 3 (380 views)
Re: Small question. [In reply to] Can't Post

Use the LWP::Simple module.

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

#!/usr/bin/perl -w


use strict;
use LWP::Simple;


my $url = "http://www.perlguru.com/";


print "Content-Type: text/html\n\n";

print get( $url ) &#0124; &#0124; "Oh dear, couldn't load $url";</pre><HR></BLOCKQUOTE>

Note: this board has a terribly habit of inserting spaces in the OR operator, so if you cut and paste, make sure you remove the extra space from between &#0124; &#0124;.


DreamWeaver
Deleted

Jun 26, 2000, 10:19 AM

Post #3 of 3 (380 views)
Re: Small question. [In reply to] Can't Post

You mean using SSI (Server side Include)?
You can use small script to return plain text while user loading the page of .shtml.......

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives