RE: cgi
- Posted by Ryan Johnson <rywilly at rywilly.com> Oct 12, 2001
- 457 views
I don't understand cgi, but I was thinking about trying it one of these days... Anyway, although I don't know cgi, I do know that from my experience, when you run a euphoria program (in windows), it does not create a prompt window unless it needs to. Correct me if I'm wrong, but when you use "puts(1, "text")", doesn't "1" represent the screen? And when you put to the screen, Euphoria creates a console window so it can "puts" to it. If you want to put to an open file, you would use whatever number represents that open file, which should be a number other than 1. Are you putting to a file? Maybe you should use the number 2. Am I helping? Or should I just be quiet now? :) rolf.schroeder at desy.de wrote: > Cassidy Napoli wrote: > > ... > > puts(1,"Location: /resource.xxx\n\n") > > This tells the browser to load whatever the resource is, from the server > > running the cgi. This is in place of content-type. Nothing else needs > > to be sent to the browser, the browser just gets whatever is at the > > location and displays that. It could be an image, video, another > > webpage, whatever. > > ... > > Hi Cassidy, > > is it absolutely clear that the program line: > > puts(1,"Location: /resource.xxx\n\n") > > is the first output of the program at the CGI SERVER SIDE called by the > client browser? > > I append an example including an image. make a DIR 'test' under > 'cgi-bin' on your CGI server, copy all files into the 'test' dir, run > 'bindw test' to create en win32 executable and call from your browser: > > 'http://ServerName/cgi-bin/test/test.exe' > > enjoy! > > Have a nice day, Rolf > >