Skip to content

idHttp - IPv6 - IPVersion-ProtocolSwitch on Redirect (HandleRedirects=true) #528

@tobfel

Description

@tobfel

First reqest is done via IPv6, but when the server response with 301, the RedirectUrl ist not called with the same IP-Protocol-Version.
Can be fixed via:

if Request.IPVersion=Id_IPv6 then
    begin
    with TIdURI.Create(LLocation) do
         begin
         URI := LLocation;
         IPVersion := Id_IPv6;
         LLocation := URI;
         Free;
         end;
    end;

in

function TIdHTTPProtocol.ProcessResponse(AIgnoreReplies: array of Int16): TIdHTTPWhatsNext;
...
after:
LLocation := Response.Location;
LMethod := Request.Method;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Element: HTTPIssues related to HTTP handling, TIdHTTP, TIdHTTPServer, TIdHTTPProxyServer, etcStatus: Review NeededIssue needs further review to decide next statusType: BugIssue is a bug in existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions