Question Send Request To .ASP/.PHP Component?

anthor

Member
Joined
Jul 12, 2008
Messages
20
Programming Experience
Beginner
We need to use what component?
actually i m Delphi 7.0 Programmer but since i found VB.NET it is so user friendly..so i decided to change the language...
in DELPHI we will use the IdHTTP component this is the delphi code how i write to Request
IdHTTP1 := TIdHTTP.Create(nil);
aParams := TStringList.Create;
aStream := TStringStream.Create('');
username:=UserEdit.text;
password:=PassEdit.Text;
GetURL := ServerMainAddress +'/Login1.php';
PostURL := ServerMainAddress+'/Login1.php?Username='+Username+'&Password='+Password;
aParams.Clear;
aParams.Add(sParams);
IdHTTP1.Request.ContentType := 'application/x-www-form-urlencoded';
IdHTTP1.Post(PostURL, aParams, aStream);
 
Back
Top