1,316
社区成员
发帖
与我相关
我的任务
分享
TIdHTTP *nhttp = new TIdHTTP(0);
TIdCookieManager * My_Cookie = new TIdCookieManager(0);
nhttp->AllowCookies = true;
nhttp->CookieManager = My_Cookie;
nhttp->Request->AcceptLanguage="zh-CN";
nhttp->Request->Connection="Keep-Alive";
nhttp-> HandleRedirects=true;
TMemoryStream *tmp = new TMemoryStream();
AnsiString pic_url = "http://captcha.qq.com/getimage?aid=15000101";
nhttp->Get(pic_url, tmp);
nhttp->Get(pic_url, tmp);