how to construct an https POST request with drupal_http_request?
问题 I want to send a POST request to an https server. $data = 'name=value&name1=value1'; $options = array( 'method' => 'POST', 'data' => $data, 'timeout' => 15, 'headers' => array('Content-Type' => 'application/x-www-form-urlencoded'), ); $result = drupal_http_request('http://somewhere.com', $options); I can't figure out out to implement the https options in the POST example code above. Can anyone please explain me how to do this? I am quite new to PHP coding with Drupal, and I could definitely