Thanks so much for your help! That liburl stack seems to be doing the trick - - - - except for one thing:

When I run the below script as a CGI, I get, maybe 90% of the html back, but it hangs at the end for some reason. Is there a character-limit to how much text libURL can retrieve at once?



#!revolution

on startup

 start using stack "liburl_1.1.5_minus.rev"

 put "Content-Type: text/plain" & cr & cr
 put "parameter   = " & urlDecode($QUERY_STRING)

 put $QUERY_STRING into searchstring

 put "http://www.imdb.com/find?s=tt&q="; & searchstring into searchURL
 put URL searchURL into databack
 put "databack = " & databack

 -- you'll never see this, because it's never done.
 put "done!"
end startup





-----Original Message-----
From: [EMAIL PROTECTED]
To: use-revolution@lists.runrev.com
Sent: Tue, 15 Aug 2006 9:16 PM
Subject: Re: Can Rev as CGI pull an URL's HTML into a variable?

  Thanks Dave. 
 
Phil 
 
Dave Cragg wrote: 
> > On 15 Aug 2006, at 21:30, Phil Davis wrote: 
> >> Second thoughts... 
>> 
>> An alternate approach would be to forget the 'libraryStack' handler >> and just set the script of your new stack to the script of the >> "revLiburl" button. Then do everything else as already stated. This is
a little more simple conceptually. 
> > Unfortunately, this won't work. libUrl relies on some properties of the > button as well.  > > But you can download a ready-made libUrl stack at the following page: 
> > http://www.lacscentre.co.uk/liburl/releases.html 
> > Look at the section at the foot of the page named "libUrl for CGI scripts". 
> > Cheers 
> Dave 
_______________________________________________ 
use-revolution mailing list 
[EMAIL PROTECTED]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
http://lists.runrev.com/mailman/listinfo/use-revolution 


________________________________________________________________________
Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free.
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to