As of May 31, 2023, we have updated our Code of Conduct.

Use it for questions about HTTP requests, sending and receiving requests, status codes and more.

drupal_http_request() is the function implemented by Drupal 7 and prior versions for the purpose. It correctly handles GET, POST, PUT or any other HTTP requests.