Can Rev as CGI pull an URL's HTML into a variable?

rgould8 at aol.com rgould8 at aol.com
Tue Aug 15 23:49:39 EDT 2006


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: revdev at pdslabs.net
To: use-revolution at 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 
 use-revolution at lists.runrev.com 
  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.



More information about the use-livecode mailing list