See the documentation for the HTTP module for a full example:
https://nodejs.org/api/http.html#http_http_request_options_callback
See the documentation for the HTTP module for a full example:
https://nodejs.org/api/http.html#http_http_request_options_callback