How are you sending this request - using HTTP through an URLConnection or a library like HttpClient? If so, then HTTP provides a response that you can check. If you meant something else then please TellTheDetails.
(my interviewer asked simply " how you know your reques sent to server or not)
Just consider mvc-2 design pattern. Am sending username and password to server. If HttpRequest means how can i get HttpResponse (acknowledgement )
Joined: Mar 22, 2005
HTTP is a request/response protocol - if a request is sent, then a response is returned, provided that the request reached the server. Whatever HTTP library you're using will tell you one way or the other.
I don't understand what MVC or username/password have to do with this.