1,593
社区成员
发帖
与我相关
我的任务
分享
fstream := TFileStream.Create(qrcodefile,fmCreate);
iohandle := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
FIDHTTP.IOHandler := iohandle;
FIDHTTP.Request.ContentType := 'application/x-www-form-urlencoded';
FIDHTTP.Request.Accept := 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*';
FIDHTTP.Request.UserAgent:='Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F70 Safari/600.1.4';
try
FIDHTTP.Get(qrcodeurl,fstream);
except
end;
FreeAndNil(fstream);
FreeAndNil(iohandle);