src/Moar/Net/Http/Request.php
public static function postContent (
      $url, $content, $contentType = 'text/xml', $options = null) {
    $headers = array("Content-type: {$contentType}");
    $r = new Request(
        $url, self::METHOD_POST, $content, $headers, $options);
    return $r->submit();
  }
public static function postContent (
      $url, $content, $contentType = 'text/xml', $options = null) {
    $headers = array("Content-type: {$contentType}");
    $r = new Request(
        $url, self::METHOD_POST, $content, $headers, $options);
    return $r->submit();
  }
public static function postContent ( $ url , $ content , $ contentType = 'text/xml' , $ options = null ) { $ headers = array ( "Content-type: {$contentType}" ) ; $ r = new Request ( $ url , self :: METHOD_POST , $ content , $ headers , $ options ) ; return $ r -> submit ( ) ; }
Convenience method to POST content in the form of a raw string to a URL.

This is useful for manually constructed SOAP requests and other document
body type operations. Default content type is text/xml.

@param string $url Full URL to post to (eg
https://www.keynetics.com/page.php)
@param string $content Raw HTTP request body to be posted
@param string $contentType Value of the HTTP Content-Type header
@param array $options Array of extra options to pass to cURL
@return Request Submitted request
@throws Exception On failure
Convenience method to POST content in the form of a raw string to a URL .