procedure TForm1.clHttpServer1ReceiveRequest(Sender: TObject; AConnection: TclHttpUserConnection; const AMethod, AUri: string; AHeader: TclHttpRequestHeader; ABody: TStream); var request: TclHttpRequest; user, password, response: string; field: TclFormFieldRequestItem; begin request := TclHttpRequest.Create(nil); try //assign the request header request.Header := AHeader; //load and parse the request ABody.Position := 0; request.RequestStream := ABody; //extract the form fields field := request.FormFields['username']; if (field <> nil) then begin user := field.FieldValue; end; field := request.FormFields['password']; if (field <> nil) then begin password := field.FieldValue; end; //process the extracted fields and send a response response := '<html><body><p>The user logged in.</p></body></html>'; (Sender as TclHttpServer).SendResponse(AConnection, 200, 'OK', response); finally request.Free(); end; end;
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add admin@clevercomponents.com to your trusted senders list in your email software.