HTTP SERVER

Hello:

I am trying to perform basic user authentication and password from my own login, the question is:

How do I have to collect the user's login details to validate them and thus send them to the next page.?