|Subject:||Re: Conditional TidHttp.GET()|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Mon, 5 Mar 2007|
"Joe Aley" <joealey20…@yahoo.com> wrote in message
> I am guessing that i will have to write a header somewhere
> with the "if-modified-since" date.
> How is that?
Set the TIdHTTP.Request.LastModified property before calling Get().
Note - if you are using Indy 9 or earlier, Get() will throw an
exception if it receives a 304 reply, though. You will have to wrap
the call in a try..except block, and then check the
TIdHTTP.Response.ResponseCode property in the except section.
If you are using Ind 10, on the other hand, then you can pass 304 to
Get()'s AIgnoreReplies parameter, and the exception will not be
Conditional TidHttp.GET() posted by Joe Aley on Mon, 05 Mar 2007