You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/04/04 22:35:53 UTC
Re: WWW Form Bug Report: "Incorrect time in HTTP reply" on NeXT
Thanks for the report. I'll pass it on to the
developers list.
regards,
rob
>Submitter: kostya@seanet.com
>Operating system: NeXT, version: 3.3
>Extra Modules used: none, standard distribution
>URL exhibiting problem: http://www.seanet.bc.ca
>
>Symptoms:
>--
>The Date: header is not showing a correct time in HTTP reply. Example:
>--------------------------------------
>>telnet www.seanet.bc.ca 80
>Trying 204.182.92.66... Connected to karma.seanet.bc.ca.
>Escape character is '^]'.
>GET /abcd HTTP/1.0
>
>HTTP/1.0 404 Not found
>Date: Thu, 04 Apr 1996 ? GMT
>Server: Apache/1.0.3
>Content-type: text/html
>
><HEAD><TITLE>File Not found</TITLE></HEAD>
><BODY><H1>File Not found</H1>
>The requested URL /cd was not found on this server.<P>
></BODY>
>Connection closed by foreign host.
>--------------------------------------
>
>This is because strftime on NeXT doesn't support %T conversion specification.
>
>Fix: in http.h replace:
>
>#define HTTP_TIME_FORMAT "%a, %d %b %Y %T GMT"
>
>with this:
>
>#ifdef NEXT
># define HTTP_TIME_FORMAT "%a, %d %b %Y %X"
>#else
># define HTTP_TIME_FORMAT "%a, %d %b %Y %T GMT"
>#endif NEXT
>
>%X on NeXT gives the same output as %T on other systems plus GMT
>--
>
>Backtrace:
>--
>
>--
--
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb) http://www.imdb.com/
...more movie info than you can poke a stick at.