These are chat archives for IndySockets/Indy

29th
Nov 2018
Ремонт Компьютера
@exkomp_twitter
Nov 29 2018 09:54

There is a problem: When using a Socks4 proxy is not running https, the redirect goes to http. Libraries are, uses are connected.
[code]
var
https: TIdHTTP;
ssl: TIdSSLIOHandlerSocketOpenSSL;
sock: TIdSocksInfo;
begin
https:=TIdHTTP.Create(nil);
ssl := TIdSSLIOHandlerSocketOpenSSL.Create(https);
ssl.SSLOptions.CipherList := 'ALL';
ssl.PassThrough := False;
sock := TIdSocksInfo.Create;
sock.authentication := sanoauthentication;
sock.version := svSocks4;
sock.host := '201.222.29.86';
sock.port := 4145;
ssl.transparentproxy := sock;
https.IOHandler := ssl;
https.HandleRedirects:=true;
try
https.get('https://www.facebook.com/');
except

end;
FreeAndNil(sock);
FreeAndNil(ssl);
FreeAndNil(https);[code]

Marcos Douglas B. Santos
@mdbs99
Nov 29 2018 11:40
@exkomp_twitter to format the code, use this
image.png
Remy Lebeau
@rlebeau
Nov 29 2018 17:50
@exkomp_twitter see my comment to your same question on StackOverflow and AToZed's Indy forum.