#1 2019-02-01 14:41:17

egold2005
Member
Registered: 2019-01-28
Posts: 16

Error 505 with THttpClientSocket

Hello,

I am using the following code to make a request and getting error 505

    vBase64 := TBase64Encoding.Create;
    try
      vUsername := 'Dispatch';
      vPassword := '1234';
      vLogin := vUsername + ':' + vPassword;
      vAuth := 'Authorization: Bearer ' + vBase64.Encode(vLogin);
    finally
      vBase64.Free
    end;

    FClient.Open('127.0.0.1', '8095', cslTCP, 0, FALSE);

    //FClient.HeaderAdd(vAuth);
    result := FClient.Get(vURL, 5000, vAuth);

With setup like this, do i get HTTP 1.1 request or do i need some other settings?

Thanx,

Offline

Board footer

Powered by FluxBB