Re: [PHP] libxml_set_streams_context

2005-05-18 Thread Bill Hoffman
On May 18, 2005, at 7:07 PM, Jared Williams wrote: Heh, yes indeed most baffling... Libxml must be performing some sort of cacheing, I guess. Doesn't appear to be requesting twice (once with the if-modified-since header, and again without atleast) well, thanks for the confirm on that. I thought o

RE: [PHP] libxml_set_streams_context

2005-05-18 Thread Jared Williams
> -Original Message- > From: Bill Hoffman [mailto:[EMAIL PROTECTED] > Sent: 19 May 2005 00:46 > To: php-general@lists.php.net > Subject: Re: [PHP] libxml_set_streams_context > > > On May 18, 2005, at 4:10 PM, Jared Williams wrote: > > > Sure the ser

Re: [PHP] libxml_set_streams_context

2005-05-18 Thread Bill Hoffman
On May 18, 2005, at 4:10 PM, Jared Williams wrote: Sure the server is checking if modified since headers? I'm capturing the response headers from the remote server, so I can see that. Just tried a bit of code here and it seems to be working as expected (5.0.4 Win32) 1) I made an initial mistak

RE: [PHP] libxml_set_streams_context

2005-05-18 Thread Jared Williams
> > I'm trying to use libxml_set_streams_context() to load a > remote xml file via HTTP conditional GET with > DOMDocument::load() by stuffing an > 'If-Modified-Since: --- " HTTP header into the stream, but no > matter how I try it I always get an HTTP 200 response when I > know the last- modi

Re: [PHP] libxml_set_streams_context

2005-05-18 Thread Bill Hoffman
On May 18, 2005, at 1:20 PM, Richard Lynch wrote: *YOU* have check their return value to see if it's 'false' or -1 or 0 and, if so, *YOU* have to call another function to get the error message and error code. This is what I am suggesting is missing big-time in your code. Yes, you made your poi

Re: [PHP] libxml_set_streams_context

2005-05-18 Thread Richard Lynch
On Tue, May 17, 2005 11:12 pm, Bill Hoffman said: > > > On May 17, 2005, at 10:24 PM, Richard Lynch wrote: > >> I don't know much about that fancy new stream stuff, or the XML >> crap, but >> you've got zero (0) lines of code in there to do anything useful >> when the >> functions fail. > > no func

Re: [PHP] libxml_set_streams_context

2005-05-18 Thread Bill Hoffman
On May 17, 2005, at 10:24 PM, Richard Lynch wrote: I don't know much about that fancy new stream stuff, or the XML crap, but you've got zero (0) lines of code in there to do anything useful when the functions fail. no functions fail. what I'm expecting is that with libxml_set_streams_context()

Re: [PHP] libxml_set_streams_context

2005-05-17 Thread Richard Lynch
On Tue, May 17, 2005 9:03 pm, Bill Hoffman said: > I'm trying to use libxml_set_streams_context() to load a remote xml > file via HTTP conditional GET with DOMDocument::load() by stuffing an > 'If-Modified-Since: --- " HTTP header into the stream, but no matter > how I try it I always get an HTTP 2

[PHP] libxml_set_streams_context

2005-05-17 Thread Bill Hoffman
I'm trying to use libxml_set_streams_context() to load a remote xml file via HTTP conditional GET with DOMDocument::load() by stuffing an 'If-Modified-Since: --- " HTTP header into the stream, but no matter how I try it I always get an HTTP 200 response when I know the last- modified date is