You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Thuy Do <th...@starglobe.com> on 1997/12/10 22:27:05 UTC

mod_negotiation/1545: Problem: got empty document when displaying gif content.

>Number:         1545
>Category:       mod_negotiation
>Synopsis:       Problem: got empty document when displaying gif content.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Dec 10 13:30:01 PST 1997
>Last-Modified:
>Originator:     thuy@starglobe.com
>Organization:
apache
>Release:        1.3b2 for NT
>Environment:
OS: WindowsNT 4.0
Compiler: VC++ 5.0


>Description:
Sending the content of the gif file using the following perl source (
or even C program), I got an empty result document.  However, 
if I open the gif file directly under Netscape, it is OK.
>How-To-Repeat:
#!c:\perl\bin\perl

print "Content-type: image/gif\n\n"; 
open F, "c:/www/us/en/what1but.gif"; 
while (read F, $r, 16384) { print $r; } 
close F; 
exit 0;
>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]