LiveCodeServer: redirecting with 'put header'

Pierre Sahores sc at sahores-conseil.com
Wed Dec 7 21:30:26 EST 2011


Hi,

get "<?xml version=" & setquote("1.0") && "encoding=" & setquote("UTF-8") & "?>" & return & \
            "<!DOCTYPE html>" & return & "<html xmlns=" & setquote("http://www.w3.org/1999/xhtml") & ">" & return & \
            "<head>" & return & "<meta http-equiv=" & setquote("content-type") && "content=" & setquote("text/html; charset=UTF-8") && "/>" & return & \
            "<meta http-equiv=" & setquote("refresh") && "content=" & setquote("0; url=http://www.exemple.com/") && "/>" & return & \
            "<title>widestep</title>" & return & "<meta name=" & setquote("robots") && "content=" & setquote("all") && "/>" & return & \
            "</head>" & return & "<html><body> </body></html>"
put it

OK with Rev/LC server 3.5 to 5

HTH,

Le 8 déc. 2011 à 01:39, Matthias Rebbe a écrit :

> Hi,
> 
> i am trying to redirect to another URL 
> 
> with
> 
> <?lc
> put "http://www.google.com" into tURL
> put  header "Status: 301"
> put header "Location:" && tURL
> ?>  
> 
> I tried it with 'put new header' also. I always get an Internal Server error.
> 
> Does anyone know, how i can redirect with  'put header'?
> 
> Tried it now with LiveCodeSerer 3.5, 4.64 and 5.0.
> 
> Any suggestions?
> 
> Regards,
> 
> Matthias
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com







More information about the use-livecode mailing list