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

Phil Davis revdev at pdslabs.net
Tue Aug 15 15:38:18 EDT 2006


Don't you need to be using libURL for this to work? So before you issue 'put 
url', your CGI would need to 'start using' a stack that includes libUrl.

Phil Davis



RGould8 at aol.com wrote:
> Is the "put URL" command something that is not permitted when running Rev as 
> a CGI?   I'm getting no data back when I run this short script.   (I just put 
> Google in as a sample URL)
> 
> 
> #!revolution
> 
> on startup
> put "Content-Type: text/plain" & cr & cr
> 
>    put $QUERY_STRING into searchstring
>    
>    put "http://www.google.com" into searchURL
>    
>    put URL searchURL into databack
>    
>    put "trying to pull in " & searchURL
>    
>    put "databack = " & databack
>    
> end startup



More information about the use-livecode mailing list