亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? idhttpheaderinfo.pas

?? delphi indy9.0.18組件包
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
{ $HDR$}
{**********************************************************************}
{ Unit archived using Team Coherence                                   }
{ Team Coherence is Copyright 2002 by Quality Software Components      }
{                                                                      }
{ For further information / comments, visit our WEB site at            }
{ http://www.TeamCoherence.com                                         }
{**********************************************************************}
{}
{ $Log:  10193: IdHTTPHeaderInfo.pas
{
{   Rev 1.3    29/11/2003 7:37:04 AM  GGrieve
{ make TIdHTTPHeaderInfo.authentication a property and destroy it
}
{
{   Rev 1.2    20/4/2003 3:48:34 PM  SGrobety
{ Fix to previous fix (Dumb me)
}
{
{   Rev 1.0    2002.11.12 10:41:12 PM  czhower
}
{
  HTTP Header definition - RFC 2616

  Copyright: (c) Chad Z. Hower and The Indy Pit Crew.

  Author: Doychin Bondzhev (doychin@dsoft-bg.com)
}


unit IdHTTPHeaderInfo;

{
REVIEW:   public - Authentication: TIdAuthentication;
  This nees to be a property
}

interface

uses
  Classes, SysUtils, IdAuthentication, IdGlobal, IdHeaderList;

Type
  TIdEntityHeaderInfo = class(TPersistent)
  protected
    FCacheControl: String;
    FRawHeaders: TIdHeaderList;
    FConnection: string;
    FContentEncoding: string;
    FContentLanguage: string;
    FContentLength: Integer;
    FContentRangeEnd: Cardinal;
    FContentRangeStart: Cardinal;
    FContentType: string;
    FContentVersion: string;
    FCustomHeaders: TIdHeaderList;
    FDate: TDateTime;
    FExpires: TDateTime;
    FLastModified: TDateTime;
    FPragma: string;
    FHasContentLength: Boolean;
    //
    procedure AssignTo(Destination: TPersistent); override;
    procedure ProcessHeaders; virtual;
    procedure SetHeaders; virtual;
    procedure SetContentLength(const AValue: Integer);
    procedure SetCustomHeaders(const AValue: TIdHeaderList);
  public
    procedure Clear; virtual;
    constructor Create; virtual;
    destructor Destroy; override;
    //
    property HasContentLength: Boolean read FHasContentLength;
    property RawHeaders: TIdHeaderList read FRawHeaders;
  published
    property CacheControl: String read FCacheControl write FCacheControl;
    property Connection: string read FConnection write FConnection;
    property ContentEncoding: string read FContentEncoding write FContentEncoding;
    property ContentLanguage: string read FContentLanguage write FContentLanguage;
    property ContentLength: Integer read FContentLength write SetContentLength;
    property ContentRangeEnd: Cardinal read FContentRangeEnd write FContentRangeEnd;
    property ContentRangeStart: Cardinal read FContentRangeStart write FContentRangeStart;
    property ContentType: string read FContentType write FContentType;
    property ContentVersion: string read FContentVersion write FContentVersion;
    property CustomHeaders: TIdHeaderList read FCustomHeaders write SetCustomHeaders;
    property Date: TDateTime read FDate write FDate;
    property Expires: TDateTime read FExpires write FExpires;
    property LastModified: TDateTime read FLastModified write FLastModified;
    property Pragma: string read FPragma write FPragma;
  end;

  TIdProxyConnectionInfo = class(TPersistent)
  protected
    FAuthentication: TIdAuthentication;
    FPassword: string;
    FPort: Integer;
    FServer: string;
    FUsername: string;
    FBasicByDefault: Boolean;

    procedure AssignTo(Destination: TPersistent); override;
    procedure SetProxyPort(const Value: Integer);
    procedure SetProxyServer(const Value: string);
  public
    constructor Create;
    procedure Clear;
    destructor Destroy; override;
    procedure SetHeaders(Headers: TIdHeaderList);
    //
    property Authentication: TIdAuthentication read FAuthentication write FAuthentication;
  published

    property BasicAuthentication: boolean read FBasicByDefault write FBasicByDefault;
    property ProxyPassword: string read FPassword write FPassword;
    property ProxyPort: Integer read FPort write SetProxyPort;
    property ProxyServer: string read FServer write SetProxyServer;
    property ProxyUsername: string read FUsername write FUserName;
  end;

  TIdRequestHeaderInfo = class(TIdEntityHeaderInfo)
  protected
    FAccept: string;
    FAcceptCharSet: string;
    FAcceptEncoding: string;
    FAcceptLanguage: string;
    FExpect: string;
    FFrom: string;
    FPassword: string;
    FReferer: string;
    FUserAgent: string;
    FUserName: string;
    FHost: string;
    FBasicByDefault: Boolean;
    FProxyConnection: string;
    FAuthentication: TIdAuthentication;
    //
    procedure AssignTo(Destination: TPersistent); override;
  public
    destructor destroy; override;

    //
    procedure Clear; override;
    procedure ProcessHeaders; override;
    procedure SetHeaders; override;
    property Authentication: TIdAuthentication read FAuthentication write FAuthentication;

  published
    property Accept: string read FAccept write FAccept;
    property AcceptCharSet: string read FAcceptCharSet write FAcceptCharSet;
    property AcceptEncoding: string read FAcceptEncoding write FAcceptEncoding;
    property AcceptLanguage: string read FAcceptLanguage write FAcceptLanguage;
    property BasicAuthentication: boolean read FBasicByDefault write FBasicByDefault;
    property Host: string read FHost write FHost;
    property From: string read FFrom write FFrom;
    property Password: String read FPassword write FPassword;
    property Referer: string read FReferer write FReferer;
    property UserAgent: string read FUserAgent write FUserAgent;
    property Username: String read FUsername write FUsername;
    property ProxyConnection: string read FProxyConnection write FProxyConnection;
  end;

  TIdResponseHeaderInfo = class(TIdEntityHeaderInfo)
  protected
    FLocation: string;
    FServer: string;
    FProxyConnection: string;
    FProxyAuthenticate: TIdHeaderList;
    FWWWAuthenticate: TIdHeaderList;
    //
    procedure SetProxyAuthenticate(const Value: TIdHeaderList);
    procedure SetWWWAuthenticate(const Value: TIdHeaderList);
  public
    procedure Clear; override;
    constructor Create; override;
    destructor Destroy; override;
    procedure ProcessHeaders; override;
  published
    property Location: string read FLocation write FLocation;
    property ProxyConnection: string read FProxyConnection write FProxyConnection;
    property ProxyAuthenticate: TIdHeaderList read FProxyAuthenticate write SetProxyAuthenticate;
    property Server: string read FServer write FServer;
    property WWWAuthenticate: TIdHeaderList read FWWWAuthenticate write SetWWWAuthenticate;
  end;

implementation

const
  DefaultUserAgent = 'Mozilla/3.0 (compatible; Indy Library)'; {do not localize}

{ TIdGeneralHeaderInfo }

constructor TIdEntityHeaderInfo.Create;
begin
  inherited Create;

  FRawHeaders := TIdHeaderList.Create;
  FRawHeaders.FoldLength := 1024;

  FCustomHeaders := TIdHeaderList.Create;

  Clear;
end;

destructor TIdEntityHeaderInfo.Destroy;
begin
  FreeAndNil(FRawHeaders);
  FreeAndNil(FCustomHeaders);
  inherited Destroy;
end;

procedure TIdEntityHeaderInfo.AssignTo(Destination: TPersistent);
begin
  if Destination is TIdEntityHeaderInfo then
  begin
    with Destination as TIdEntityHeaderInfo do
    begin
      FRawHeaders.Assign(Self.FRawHeaders);
      FContentEncoding := Self.FContentEncoding;
      FContentLanguage := Self.FContentLanguage;
      FContentLength := Self.FContentLength;
      FContentRangeEnd:= Self.FContentRangeEnd;
      FContentRangeStart:= Self.FContentRangeStart;
      FContentType := Self.FContentType;
      FContentVersion := Self.FContentVersion;
      FDate := Self.FDate;
      FExpires := Self.FExpires;
      FLastModified := Self.FLastModified;
    end;
  end
  else
    inherited AssignTo(Destination);
end;

procedure TIdEntityHeaderInfo.Clear;
begin
  FConnection := '';
  FContentVersion := '';
  FContentEncoding := '';
  FContentLanguage := '';
  // S.G. 20/4/2003: Was FContentType := 'Text/HTML'
  // S.G. 20/4/2003: Shouldn't be set here but in response.
  // S.G. 20/4/2003: Requests, by default, have NO content-type. This caused problems
  // S.G. 20/4/2003: with some netscape servers
  FContentType := '';
  FContentLength := -1;
  FContentRangeStart := 0;
  FContentRangeEnd := 0;
  FDate := 0;
  FLastModified := 0;
  FExpires := 0;
  FRawHeaders.Clear;
end;

procedure TIdEntityHeaderInfo.ProcessHeaders;
Var
  LSecs, LMinutes, LHours: Integer;
begin
  // Set and Delete so that later we copy remaining to optional headers
  with FRawHeaders do
  begin
    FConnection := Values['Connection']; {do not localize}
    FContentVersion := Values['Content-Version']; {do not localize}
    FContentEncoding := Values['Content-Encoding']; {do not localize}
    FContentLanguage := Values['Content-Language']; {do not localize}
    FContentType := Values['Content-Type']; {do not localize}
    FContentLength := StrToIntDef(Trim(Values['Content-Length']), -1); {do not localize}
    FHasContentLength := FContentLength >= 0;

    FDate := idGlobal.GMTToLocalDateTime(Values['Date']); {do not localize}
    FLastModified := GMTToLocalDateTime(Values['Last-Modified']); {do not localize}
    if StrToIntDef(Values['Expires'], -1) <> -1 then begin
      // This is happening when expires is returned as integer number in seconds
      LSecs := StrToInt(Values['Expires']);
      LHours := LSecs div 3600;
      LMinutes := (LSecs mod 3600) div 60;
      LSecs := (LSecs mod 3600) mod 60;
      FExpires := Now + EncodeTime(LHours, LMinutes, LSecs, 0);
    end
    else begin
      FExpires := GMTToLocalDateTime(Values['Expires']); {do not localize}
    end;
    FPragma := Values['Pragma'];  {do not localize}
  end;
end;

procedure TIdEntityHeaderInfo.SetHeaders;
begin
  RawHeaders.Clear;
  with RawHeaders do
  begin
    if Length(FConnection) > 0 then
    begin
      Values['Connection'] := FConnection; {do not localize}
    end;
    if Length(FContentVersion) > 0 then
    begin
      Values['Content-Version'] := FContentVersion; {do not localize}
    end;
    if Length(FContentEncoding) > 0 then
    begin
      Values['Content-Encoding'] := FContentEncoding; {do not localize}
    end;
    if Length(FContentLanguage) > 0 then
    begin
      Values['Content-Language'] := FContentLanguage; {do not localize}
    end;
    if Length(FContentType) > 0 then
    begin
      Values['Content-Type'] := FContentType; {do not localize}
    end;
    if FContentLength >= 0 then
    begin
      Values['Content-Length'] := IntToStr(FContentLength); {do not localize}
    end;
    if Length(FCacheControl) > 0 then
    begin
      Values['Cache-control'] := FCacheControl; {do not localize}
    end;
    if FDate > 0 then
    begin
      Values['Date'] := DateTimeToInternetStr(FDate); {do not localize}
    end;
    if FExpires > 0 then
    begin
      Values['Expires'] := DateTimeToInternetStr(FExpires); {do not localize}
    end;

    if (FLastModified > 0) then
    begin
      Values['Last-Modified'] := DateTimeGMTToHttpStr(FLastModified); { do not localize}
    end;

    if Length(FPragma) > 0 then
    begin
      Values['Pragma'] := FPragma; {do not localize}
    end;

    if FCustomHeaders.Count > 0 then
    begin
      // Append Custom headers
      Text := Text + FCustomHeaders.Text;
    end;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产裸体歌舞团一区二区| 欧美日韩一区二区在线视频| 麻豆精品视频在线| 亚洲一区二区三区在线| 欧美高清在线一区二区| 日韩一区二区三区av| 欧美日韩精品一区二区| 在线观看国产精品网站| 91亚洲资源网| 不卡av电影在线播放| 成人激情黄色小说| 成人激情电影免费在线观看| 国产白丝精品91爽爽久久| 国产麻豆精品久久一二三| 国内精品视频666| 国产成人免费高清| 成人免费av资源| 91一区二区在线观看| 色婷婷精品久久二区二区蜜臂av | 欧美成人精品3d动漫h| 日韩精品自拍偷拍| 国产亚洲综合色| 国产欧美日韩三区| 亚洲视频一二区| 亚洲最新视频在线观看| 亚洲国产日韩综合久久精品| 日韩—二三区免费观看av| 精品一区二区三区久久久| 国产一区二区三区免费| 成人sese在线| 欧美性大战久久久| 欧美成人一级视频| 日韩伦理av电影| 日本中文字幕一区| 国产白丝网站精品污在线入口| 国产精品国产三级国产aⅴ入口| 亚洲色图制服丝袜| 天堂成人国产精品一区| 国产成人综合在线观看| 在线观看免费一区| 久久久久久99久久久精品网站| 日韩美女久久久| 麻豆精品新av中文字幕| 99re8在线精品视频免费播放| 欧美美女一区二区在线观看| 久久久精品天堂| 亚洲成av人影院在线观看网| 国产成人夜色高潮福利影视| 在线精品视频免费观看| 久久精品亚洲精品国产欧美| 午夜精品福利一区二区蜜股av | 久久久久久久久蜜桃| 一区二区不卡在线播放| 国内外精品视频| 91麻豆精品国产91久久久资源速度| 国产精品毛片高清在线完整版| 日产国产欧美视频一区精品| 一本一本久久a久久精品综合麻豆| 精品久久久久久无| 日韩激情视频网站| 91麻豆福利精品推荐| 国产色一区二区| 国产在线精品国自产拍免费| 欧美色爱综合网| 一区二区三区国产精品| 福利一区二区在线观看| 欧美成人女星排行榜| 美女免费视频一区二区| 欧美人与性动xxxx| 亚洲国产aⅴ天堂久久| 一本大道综合伊人精品热热 | 亚洲午夜在线电影| 91蜜桃婷婷狠狠久久综合9色| 国产亚洲精品久| 国产精一品亚洲二区在线视频| 欧美一区二区性放荡片| 日韩国产欧美在线视频| 欧美日韩综合在线| 午夜成人免费电影| 91麻豆精品国产91久久久久久久久| 亚洲第一综合色| 欧美精品九九99久久| 蜜桃视频在线一区| 欧美mv日韩mv国产网站| 国精品**一区二区三区在线蜜桃| 日韩欧美成人一区| 国产精品亚洲成人| 亚洲视频一区在线| 色综合久久99| 日韩电影免费在线| 精品99一区二区| 高清不卡在线观看| 亚洲女性喷水在线观看一区| 欧美亚洲动漫精品| 蜜臀久久久久久久| 国产午夜一区二区三区| 99精品欧美一区二区蜜桃免费 | 国产欧美综合在线| 99v久久综合狠狠综合久久| 亚洲一区在线观看网站| 精品毛片乱码1区2区3区| 国产91精品在线观看| 有码一区二区三区| 日韩欧美自拍偷拍| 成人app在线观看| 亚洲成a人在线观看| 国产亚洲一二三区| 欧美色中文字幕| 国产一区91精品张津瑜| 夜夜亚洲天天久久| 精品av综合导航| 欧美探花视频资源| 粉嫩在线一区二区三区视频| 亚洲va国产va欧美va观看| 国产欧美精品一区| 欧美一级片在线看| 99国产精品久| 韩国在线一区二区| 亚洲成av人片观看| 亚洲桃色在线一区| 久久久久久久性| 欧美一区二区三区不卡| 91久久精品日日躁夜夜躁欧美| 国产一区二区三区国产| 亚洲成年人影院| 1000精品久久久久久久久| 日韩欧美视频一区| 欧美日韩精品高清| 91丝袜美腿高跟国产极品老师| 国产一区二区三区在线观看免费视频 | 一区二区三区中文在线观看| 中文字幕国产精品一区二区| 精品三级在线看| 欧美一区日韩一区| 91精品国产aⅴ一区二区| 精品1区2区3区| 欧美日韩精品久久久| 欧美中文字幕亚洲一区二区va在线| 中文字幕乱码亚洲精品一区| 久久精品欧美日韩精品| 国产日韩欧美一区二区三区乱码| 欧美成人三级在线| 精品国产自在久精品国产| 精品女同一区二区| 欧美成人欧美edvon| 日韩一区二区精品在线观看| 91精品国产福利在线观看| 日韩美一区二区三区| 久久久亚洲精华液精华液精华液| 精品国产乱码久久久久久久| 日韩美女在线视频| 久久久精品tv| 成人欧美一区二区三区白人| 国产精品久久久久久久久免费丝袜| 中文字幕av一区二区三区高| 国产精品久久福利| 一区二区三区不卡视频| 亚洲一区视频在线| 成人午夜av影视| 亚洲小说欧美激情另类| 亚洲靠逼com| 婷婷久久综合九色综合伊人色| 极品少妇一区二区| 本田岬高潮一区二区三区| 欧美日韩大陆在线| 中文字幕乱码日本亚洲一区二区 | 欧美性一二三区| 欧美大片在线观看一区二区| 欧美国产1区2区| 日韩电影在线观看电影| 成人av中文字幕| 日韩一区二区三区视频| 亚洲少妇30p| 久久国产精品99精品国产| 91高清在线观看| 亚洲一区二区精品3399| 狠狠色伊人亚洲综合成人| 91美女精品福利| 欧美tickling网站挠脚心| 亚洲精品乱码久久久久久久久 | 中文字幕一区二区日韩精品绯色| 丝袜美腿亚洲一区二区图片| 成人精品在线视频观看| 日韩一区二区三区免费观看| 一区免费观看视频| 国产乱码精品一区二区三区忘忧草 | 免费看日韩精品| 色美美综合视频| 国产精品视频看| 精品影院一区二区久久久| 一本久道久久综合中文字幕 | 日韩一区日韩二区| 国内精品伊人久久久久av一坑| 欧美日韩一卡二卡| 最近日韩中文字幕| 国产不卡在线播放| 日韩视频国产视频| 亚洲第一电影网| 色婷婷av一区二区三区大白胸 | 久久99久久99精品免视看婷婷|