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 ...
Search found 2 matches
- 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: 6604
- Sun Nov 30, 2014 11:38 pm
- Forum: CGIs and the Server
- Topic: Put Header Used for Redirects
- Replies: 1
- Views: 4279
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 ...
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 ...