src/Moar/Net/Http/Request.php
public function setCookieJar ($file) {
    if (null !== $file) {
      $this->addCurlOption(CURLOPT_COOKIEFILE, $file); //read from file
      $this->addCurlOption(CURLOPT_COOKIEJAR, $file); //write to file
    }
    return $this;
  }
public function setCookieJar ($file) {
    if (null !== $file) {
      $this->addCurlOption(CURLOPT_COOKIEFILE, $file); //read from file
      $this->addCurlOption(CURLOPT_COOKIEJAR, $file); //write to file
    }
    return $this;
  }
public function setCookieJar ( $ file ) { if ( null !== $ file ) { $ this -> addCurlOption ( CURLOPT_COOKIEFILE , $ file ) ; //read from file $ this -> addCurlOption ( CURLOPT_COOKIEJAR , $ file ) ; //write to file } return $ this ; }
Read and store cookies in the provided file.

@param string $file Path to cookie storage file
@return Request Self, for message chaining
Read and store cookies in the provided file .