unit Unit1;//连接数据库,加载用户帐号。
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,unit2,unit3,StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Edit1: TEdit;
Label1: TLabel;
Label2: TLabel;
ComboBox1: TComboBox;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
with datamodule2 do
begin
adoquery1.Connection:=adoconnection1;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select * from login where user='''+trim(combobox1.Text)+''' and psw='''+trim(edit1.Text)+'''');
adoquery1.Active:=true;
if not adoquery1.Eof then
我先用idhttp 的get方法访问一个网站,网站返回了一段cookie,当我 调用 idhttp post方法的时候,我如何把服务器返回的这段cookies带上 ,先谢谢各位了
读取 HTTP Response Header
里面有 Set-Cookies 域 ......