http://shenwufzwp.cccpan.com/password: SWFZ
This is forever to realize E dish website! Want to realize automatic landing! But didn't also the Post a night, I don't know why!
Also please the great god help, thank you!
procedure TForm1. Button1Click (Sender: TObject);
Var
ResParams: TStringStream;
PostParams: TStringList;
The begin
ResParams:=TStringStream. Create (");
PostParams:=TStringList. Create;
IdHTTP1. Request. Accept:='application/x - the rest - flash, image/GIF image/x - xbitmap, image/jpeg, image/pjpeg, */*';
IdHTTP1. Request. AcceptEncoding:='gzip, deflate';
IdHTTP1. Request. AcceptLanguage:='useful - cn;
IdHTTP1. Request. CacheControl:='no - cache;
IdHTTP1. Request. Connection:='Keep - the Alive;
IdHTTP1. Request. ContentLength:=464;
IdHTTP1. Request. ContentType:='application/x - WWW - form - urlencoded';
PostParams. Add (' teqtbz=SWFZ ');
IdHTTP1. Post (' http://shenwufzwp.cccpan.com/login.aspx? D=shenwufzwp ', PostParams resParams);
Memo1. Lines. The Add (resParams DataString);
end;
This is my code! I'm 30 points! Still hope everyone a great god help the sa! I try to reply to earn points to add
CodePudding user response:
Var
AStr: string;
AStrstrean: TStringStream;
The begin
AStr:='http://shenwufzwp.cccpan.com/login.aspx? D=shenwufzwp& Teqtbz=SWFZ ';
AStrstrean:=TStringStream. Create (' ', TEncoding UTF8);
Try
IdHTTP1. Get (IdHTTP1. URL. URLEncode (aStr), aStrstrean);
AStr:=aStrstrean. DataString;//the return value
The finally
FreeAndNil (aStrstrean);
end;
CodePudding user response:
The