Anthony Gardner wrote:
> 
> Michael,
> 
> You are there, believe it or not.
> 
> Have a look at the attached and run it.
> 
> That pop up window is telling you that the script has finished and that it
> received no data.
> 
> Include Apache::Constants; and change unless to if where it's testing for
> header_only.
> 
> There are more than one type of method that the browser uses to request
> data. The two most common are GET and POST but another one is HEAD. That's
> what that line is checking for, whether the browser is just requesting HEAD
> information.
> 
> We are using GET so it should fail that test and return the HTML stuff
> thereafter.

That dit it! Change the 'unless' to 'if'. *chuckle*
You know, I sat and looked at the 'return OK unless ...' and thought it
didn't
make sense.
Thanks!
M. Dearman


> 
> >From: Michael Dearman <[EMAIL PROTECTED]>
> >To: Anthony Gardner <[EMAIL PROTECTED]>
> >Subject: Re: Newbie: Running script using Apache API
> >Date: Fri, 10 Dec 1999 08:49:28 -0700
> >
> >
> >
> >Anthony Gardner wrote:
> > >
> > > Does that mean you've solved it? If it does, what did yo do? I haven't
> > > really touched Registry (will do this weekend).
> >
> >No. Haven't solved it. Just that 'OK' is an internal return code. I'm
> >assuming
> >that means it should work without being addressed by Apache::Constants
> >qw(:common)
> >or whatever. Which I've tried in the script and that just makes things
> >worse.
> >Meaning that a window pops up saying something about 'no data in file'.
> >*shrug*
> >
> >M. Dearman
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
>   ------------------------------------------------------------------------
>                  Name: hello3.cgi
>    hello3.cgi    Type: unspecified type (application/octet-stream)
>              Encoding: base64

Reply via email to