From: Michael Buffington Date: 2005-04-21T09:27:26+09:00 Subject: Re: Newb CGI Question On 4/20/05, Paul Battley wrote: > You are reading the data, but not actually sending it to the client. > > - File.read("agent.gif") > + print(File.read("agent.gif")) > Adding print produces the same result - can't display the image due to errors. > I think that's the problem. You can also get rid of the 304 status; > it's not appropriate: > http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Fair enough - I added because when accessing the image directly, the returned status was 304. Interestingly, when I remove the 304, I get a broken image rather than an error message. > > Finally, you are sending the length of a different file in the code > sample you gave. Woops. Email editing faux pas. The code is correct. >