I am trying to make a connection to the Covington Association of Reators via PHRETS. I can do it with this curl command line:
But PHRETS gets an authorization failure.
    $this->rets_config = new \PHRETS\Configuration;
    ->setUsername( MYUSERNAME )
    ->setPassword( MYPASSWORD )
    ->setRetsVersion( '1.7.2' );
    $this->rets_session = new \PHRETS\Session( $this->rets_config );
    $connect = $this->rets_session->Login();
    This last line throws an exception "resulted in a `401 Unauthorized` response"
My suspicion is that the cookies have something to do with it. I can't figure out how to convert the curl cookie directives into something that PHRETS understands: 
    --cookie-jar 'cookies.txt' 
    --cookie 'cookies.txt'
    --junk-session-cookies
Any ideas? 
Thanks,
Andy