src/Moar/Net/Http/Request.php
public function submit ($failIfNot200 = null) {
    if ($this->wasSubmitted()) {
      throw new Exception("Request be reused!");
    }
    $ch = $this->createCurlRequest();
    $raw = curl_exec($ch);
    $this->processCurlResponse($ch, curl_errno($ch), curl_error($ch), $raw);
    $this->validateResponse($failIfNot200);
    return $this;
  }
public function submit ($failIfNot200 = null) {
    if ($this->wasSubmitted()) {
      throw new Exception("Request be reused!");
    }
    $ch = $this->createCurlRequest();
    $raw = curl_exec($ch);
    $this->processCurlResponse($ch, curl_errno($ch), curl_error($ch), $raw);
    $this->validateResponse($failIfNot200);
    return $this;
  }
public function submit ( $ failIfNot200 = null ) { if ( $ this -> wasSubmitted ( ) ) { throw new Exception ( "Request be reused!" ) ; } $ ch = $ this -> createCurlRequest ( ) ; $ raw = curl_exec ( $ ch ) ; $ this -> processCurlResponse ( $ ch , curl_errno ( $ ch ) , curl_error ( $ ch ) , $ raw ) ; $ this -> validateResponse ( $ failIfNot200 ) ; return $ this ; }
Submit this request.

This request will be updated with the results of the request which can
then be retrieved using getResponseHttpCode() and releated methods.

@param bool $failIfNot200 Throw an exception if a non-200 status was sent?
@return Request Request with response data populated
@throws Exception On cURL failure
Submit this request .