Does anyone know how to use Web Request?

It would be helpful if someone had an example of how to write a program containing a Web Request Class.

Thanks