The following reply was made to PR general/1380; it has been noted by GNATS.
From: Marc Slemko <[EMAIL PROTECTED]>
To: Apache bugs database <[EMAIL PROTECTED]>
Cc: Subject: Re: general/1380: cgi script fails to load gif (fwd)
Date: Fri, 7 Nov 1997 10:09:28 -0700 (MST)
---------- Forwarded message ----------
Date: Fri, 07 Nov 1997 16:39:51 +0000
From: Ferret <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: general/1380: cgi script fails to load gif
>Synopsis: cgi script fails to load gif
>
>State-Changed-From-To: open-analyzed
>State-Changed-By: marc
>State-Changed-When: Fri Nov 7 08:29:25 PST 1997
>State-Changed-Why:
>I'm afraid I don't entirely understand.
>The script you include doesn't have any link to any
>GIF anywhere. How are you thinking this CGI should
>display a GIF?
Because i was having to cut and paste it on ntg and I messed up.
#include <stdio.h>
#include <stdlib.h>
int main()
{
(void)printf("Content-type: text/html\n\n");
(void)printf("<html>\n");
(void)printf("<head><title>Crossflight Ltd</title></head>\n");
(void)printf("<body bgcolor=\"#ffffff\">\n");
(void)printf("<center>");
(void)printf("<h1>Crossflight Ltd</h1>");
(void)printf("<img src=\"xflt2.gif\" align=\"MIDDLE\""
"width=\"240\" height=\"150\">");
(void)printf("</center>");
(void)printf("<p>");
(void)printf("<center><h1>Proof of delivery query.</h1></center>\n");
(void)printf("<p>\n");
(void)printf("<center><table border=1 cellpadding=2>\n");
(void)printf("<td colspan=2><h2>Waybill number %s</h2></td><tr>\n",
getenv("QUERY_STRING"));
(void)printf("<tr>\n");
(void)printf("<td>Client code</td>\n");
(void)printf("<td>XXXXXXX</td>\n");
(void)printf("</tr>\n");
(void)printf("<tr>\n");
(void)printf("<td>Consignee data</td>\n");
(void)printf("<td>1XXXXXX<br>");
(void)printf("2XXXXXX<br>");
(void)printf("3XXXXXX<br>");
(void)printf("4XXXXXX<br>");
(void)printf("5XXXXXX</td>\n");
(void)printf("</tr>\n");
(void)printf("<tr>\n");
(void)printf("<td>POD date</td>\n");
(void)printf("<td>XXXXXXX</td>\n");
(void)printf("</tr>\n");
(void)printf("<tr>\n");
(void)printf("<td>POD time</td>\n");
(void)printf("<td>XXXXXXX</td>\n");
(void)printf("</tr>\n");
(void)printf("<tr>\n");
(void)printf("<td>Recipient</td>\n");
(void)printf("<td>XXXXXXX</td>\n");
(void)printf("</tr>\n");
(void)printf("<tr>\n");
(void)printf("<td>Job cost</td>\n");
(void)printf("<td>XXXXXXX</td>\n");
(void)printf("</tr>\n");
(void)printf("</center></table>\n");
(void)printf("</body>\n");
(void)printf("</html>\n");
sleep(5);
return(TRUE);
}
Try that. :)
>
>Is there anything logged in the error log? Does the access
>log have an entry for the GIF?
Nothing obvious in the error log, but yes it does appear in the access
log.
>
>If the GIF is bigger than 16k, does replacing it with
>one smaller than 16k fix the problem?
>
It is less than 11k.
Ferret
--
I'm no upstanding citizen, but I'm standing up just the same -- Poison
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ [EMAIL PROTECTED] | Micro$oft: Just say no! ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~