Esta clase nos permite implementar de forma sencillísima un cliente HTTP 1.0 y 1.1 tanto para peticiones GET como POST. De hecho, hace algo parecido a lo que comentaba de la clase de perl WWW:Mechanize aunque con muchos menos detalles. Pese a eso puede ser muy útil para interactuar con otras webs desde nuestro código en PHP. Además es sencillísimo usar esta clase. HttpClient implementa las siguientes funcionalidades.
- Implements a useful subset of the HTTP 1.0 and 1.1 protocols.
- Includes cookie support.
- Ability to set the user agent and referal fields.
- Can automatically handle redirected pages.
- Can be used for multiple requests, with any cookies sent by the server resent for each additional request.
- Support for gzip encoded content, which can dramatically reduce the amount of bandwidth used in a transaction.
- Object oriented, with static methods providing a useful shortcut for simple requests.
- The ability to only read the page headers - useful for implementing tools such as link checkers.
- Support for file uploads.
Para más información recomiendo que miréis los ejemplos que hay en la web de la clase, es realmente simple de usar.