Search found 2 matches

by Siddhanathaswami
Sun Nov 30, 2014 11:44 pm
Forum: CGIs and the Server
Topic: Using old RunRev 2.x CGI scripts on LiveCode Community Serve
Replies: 1
Views: 5485

Re: Using old RunRev 2.x CGI scripts on LiveCode Community S

I've converted CGIs from Rev to Livecode. I had to use the "header" command to return headers instead of just putting it: put header "Content-Type: text/html"&cr&cr&"<HTML><BODY>"&cr& [*RETURNED RESULT FROM CGI DISPLAYED AS HTML*] Be sure not to put a "& cr" at the end of the put header or it worn't...
by Siddhanathaswami
Sun Nov 30, 2014 11:38 pm
Forum: CGIs and the Server
Topic: Put Header Used for Redirects
Replies: 1
Views: 3321

Put Header Used for Redirects

Aloha, I'm having a strange issue with redirects and http headers on a Ubuntu 14 server running Apache 2.4 and LiveCode 6.7 Community Server. This just returns an "Internal Server Error" when in a file such as redirecttest.lc: <?lc put header "Status: 301 Moved Permanently" put header "Location: /in...