Check [drupal_http_request()][1].

> Performs an HTTP request.
>
This is a flexible and powerful HTTP client implementation. Correctly handles GET, POST, PUT or any other HTTP requests. Handles redirects.


  [1]: http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_http_request/7