From owner-freebsd-questions@FreeBSD.ORG Fri May 14 07:58:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D28E116A4CF for ; Fri, 14 May 2004 07:58:22 -0700 (PDT) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4FC943D39 for ; Fri, 14 May 2004 07:58:21 -0700 (PDT) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i4EF2Ox0084456; Fri, 14 May 2004 16:02:25 +0100 (BST) (envelope-from peter@circlesquared.com) Message-ID: <40A4DF80.1070109@circlesquared.com> Date: Fri, 14 May 2004 16:02:24 +0100 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040327 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andy Holyer References: <3F8352AE-A5AB-11D8-BEB2-000D93511A6A@hhbb.co.uk> <40A4D5C4.4020501@circlesquared.com> <91406E56-A5B5-11D8-BEB2-000D93511A6A@hhbb.co.uk> In-Reply-To: <91406E56-A5B5-11D8-BEB2-000D93511A6A@hhbb.co.uk> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Apache returning multiple (Identical) pages? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 14:58:22 -0000 Andy Holyer wrote: > > On 14 May 2004, at 15:20, Peter Risdon wrote: > >> Andy Holyer wrote: >> >>> This is a weird one. I'm setting up a PHP page on the web server >>> (Apache2, FreeBSD 5.2). When I fetch from a browser, the server >>> delivers index.php over and over again, as fast as it can as far as >>> I can tell. >>> >>> However if I telnet to port 80 and type in the get request manually, >>> it delivers the page correctly, as far as I can tell. Once, only. >>> >>> Has anyone seen anything like this before? >> >> >> >> I think a little bit more info would help. >> >> Does the apache access log confirm that there are repeated GET >> requests for the page? >> > Sure does. > >> Is the page actually refreshing, or does it never seem to have >> finished loading, without the window actually being re-drawn over and >> over again? Infinite loops are a common prob in scripts. >> > It never gets drawn by the browser. Safari complains of multiple > redirect directives, whereas http-access-log reports on multiple sends > of index.php > >> Have you eliminated the possibility of errors in your PHP script by >> trying a very trivial script indeed, or one that you know works? >> > Squirrelmail works perfectly on the same server > > I've tested it on every web browser I can think of, from Mozillla to > lynx. Same behavior. > > I've just been fiddling with telnet a bit further and I may be getting > somewhere. I've not been reading deeply enough into the http log - it > is indeed returning a 302 response to the browser. Hmmm... It's an error in your script. Running scripts on the command line is a great debugging technique but doesn't help if there's an error like some kind of problematic meta refresh tag, which might be consistent with a 302 response code. PWR.