Re: cgi

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.
--------------0D57AB8739B5A9A178F21953

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


--------------0D57AB8739B5A9A178F21953
Content-Type: application/x-zip-compressed;
 name="test.zip"
Content-Transfer-Encoding: base64

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu