Re: cgi (correction)
- Posted by rolf.schroeder at desy.de Oct 11, 2001
- 369 views
Hi Cassidy, if you want to send back an image only to the Browser, just use only: --------------------------------------------------------------------- puts(1,"Content-Type: text/html\n\n") -- Essential for CGI execution! puts(1,"<!doctype html public " & "\"-//W3C//DTD HTML 4.0 transitional//EN\">\n") puts(1,"<html>\n") puts(1,"<head>\n") puts(1,"<meta http-equiv=\"Content-Type\" " & "content=\"text/html; charset=iso-8859-1\">") puts(1,"<title>Test of CGI reply</title>\n") puts(1,"</head>\n") puts(1,"<body>\n") -- puts(1,"CGI test OK!\n") -- No text output! puts(1,"<img SRC=\"Pinguin.gif\" ALT=\"Dancing bird\" " & "HSPACE=10 VSPACE=10 BORDER=0>\n") --------------------------------------------------------------------- The Content-Type still is text/html. But you probably want something different I haven't understood yet. Please let me know. Have a nice day, Rolf