Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: id http missing redirect?

www.cryer.info
Managed Newsgroup Archive

Re: id http missing redirect?

Subject:Re: id http missing redirect?
Posted by:"dk_sz" (dk_..@hotmail.com)
Date:Tue, 11 Sep 2007 22:13:35

Hi,

> I just tested that URL with both TIdHTTP and IE6.  There is a server-side
> 301 redirect occuring on that file, and TIdHTTP does trigger the
> OnRedirect
> event accordingly for me.

Yes, it seems to depend on what the given
TidHTTP object has been doing before.

If it is the first, there are no problems. I am still
trying to find out what the exact conditions are.


> transmitted.  For it to call RaiseConnClosedGracefully() immediately, the
> ClosedGracefully property would have had to already been set to True
> before

Mmm... Property is not true...
I just tried stepping through it :


TIdIOHandlerStack.CheckForDisconnect[
  if ClosedGracefully then begin

// does not enter here!

  end else begin

// enters here
    LDisconnected := not BindingAllocated;
// BindingAllocated returns false because of
// "Result := FBinding.HandleAllocated;"
// Thus: LDisconnected = "not BindingAllocated" = true

  end;

  if LDisconnected then begin

// AIgnoreBuffer  is true so RaiseConnClosedGracefully gets called
    if (InputBufferIsEmpty or AIgnoreBuffer) and
ARaiseExceptionIfDisconnected then begin
      RaiseConnClosedGracefully;
    end;

  end;


> sending the request.  Which suggests that it is not being cleared from an
> earlier request/response operation.

If you have any ideas for what I
should research, let me know :-)


best regards
Thomas Schulz

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive