Can't retrieve a text file from a remote CGI folder

J. Landman Gay jacque at hyperactivesw.com
Wed Apr 10 22:37:26 EDT 2013


On 4/10/13 6:48 PM, Dave Cragg wrote:

> Does it make a difference if you put another cr after the header?
>
> on startup
>   open file "log.txt" for append
>   write "this is a test" & cr to file "log.txt"
>   close file "log.txt"
>   put "Content-Type: text/plain" & cr
>   put cr
>   put "done writing"
> end startup

Oh geez. Yeah, it does. I've been at this so long I can't read any more. 
Thanks.

Maybe you can tell me what's wrong with this then? Sent from a stack on 
my Mac:

put "http://NAME:PASS@hyperactivesw.com/cgi-bin/log.txt" into tURL
put url tUrl into fld 1

Is it that you can't directly read text files from the cgi folder? I 
don't usually do that, but someone else had the same problem so I 
started testing it.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list