Witam, mam programik który pobiera torrenty, używam Synapse, próbowałem z MimeType (application/octet-stream,application/x-bittorrent;application/x-torrent) jednak wszystko zapisuje tak że po otworzeniu torrenta w uTorrent otrzymuje błąd typu :
Unable to load "plik.torrent": torrent is not valid bencoding!
kod :
const
UserAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko)';
var
syn: THttpSend;
begin
syn := THTTPSend.Create;
syn.UserAgent := UserAgent;
syn.MimeType := 'application/octet-stream';
syn.HTTPMethod('GET','http://domena.com/plik.torrent');
syn.Document.SaveToFile('c:\torrents\plik.torrent');
syn.Free;
end;