我要做这样一个程序,在form下有一个edit在里面输入要搜索的内容,然后点击button.程序将你要搜索的内容提交到www.baidu.com然后把搜索到的内容显示在memo中.我的程序如下:
unit Unit1;interfaceuses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Psock, NMHttp, StdCtrls;type
  TForm1 = class(TForm)
    Edit1: TEdit;
    Button1: TButton;
    Memo1: TMemo;
    NMHTTP1: TNMHTTP;
    Edit2: TEdit;
    Memo2: TMemo;
    procedure Button1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;var
  Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
 nmhttp1.InputFileMode:=false;
 nmhttp1.OutputFileMode:=false;
 nmhttp1.Post(edit1.text,edit2.text);
 nmhttp1.Get(edit1.text);
 memo1.Text:=nmhttp1.Header;
 memo2.Text:=nmhttp1.Body;
end;procedure TForm1.FormCreate(Sender: TObject);
begin
 edit1.text:='http://www.baidu.com/baidu';//百度搜索的CGI地址
end;end.
这个程序返回值却显示服务器无法理解我提交的内容,错在哪里了?