Cookie

IdHTTP1.CookieManager.AddCookies();
IdHTTP1.Post();
IdHTTP1.Get('http://1.1.1.1:9000/');
for i := 0 to IdHTTP1.CookieManager.CookieCollection.Count-1 do
Memo1.Lines.Add(IdHTTP1.CookieManager.CookieCollection.Items[i] );

IdHTTP1.Request.CustomHeaders.Count;
IdHTTP1.Request.CustomHeaders[i];
IdHTTP1.Request.CustomHeaders.Delete(0);
IdHTTP1.Request.CustomHeaders.Add('Cookie: username=bcoder');

posted on 2015-10-29 10:03  lypzxy  阅读(530)  评论(0编辑  收藏  举报