Hi, thank you Piere and Jim,
that works, although it is not very easy to read. I will use that solution until i found out, why "put header" does not work. Regards, Matthias Am 08.12.2011 um 04:17 schrieb Jim Ault: > This is a version of the 'get' command that I use > it requires less characters > does not require a function call > it is easier to read for me > > Note: in HTML the single and double quotes work the same way, > and space runs count as only one space. > > get "<?xml version='1.0' encoding='UTF-8' ?> rrr" & \ > "<!DOCTYPE html> rrr<html xmlns='http://www.w3.org/1999/xhtml'> > rrr" & \ > "<head> rrr<meta http-equiv='content-type' content='text/html; > charset=UTF-8' /> rrr" & \ > "<meta http-equiv='refresh' content='0; > url=http://www.exemple.com/' /> rrr" & \ > "<title>widestep</title> rrr<meta name='robots' content='all' > /> rrr" & \ > "</head> rrr<html><body> </body></html>" > > replace "rrr" with CR in IT > > Jim Ault > > > On Dec 7, 2011, at 9:30 PM, Pierre Sahores wrote: > >> 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 >>> [email protected] >>> 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 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
