src/FlexiPeeHP/FlexiBeeRO.php
public function saveDebugFiles()
    {
        $tmpdir   = sys_get_temp_dir();
        $fname    = $this->evidence.'-'.$this->curlInfo['when'].'.'.$this->format;
        $reqname  = $tmpdir.'/request-'.$fname;
        $respname = $tmpdir.'/response-'.$fname;
        if (file_put_contents($reqname, $this->postFields)) {
            $this->addStatusMessage($reqname, 'debug');
        }
        if (file_put_contents($respname, $this->lastCurlResponse)) {
            $this->addStatusMessage($respname, 'debug');
        }
    }
public function saveDebugFiles()
    {
        $tmpdir   = sys_get_temp_dir();
        $fname    = $this->evidence.'-'.$this->curlInfo['when'].'.'.$this->format;
        $reqname  = $tmpdir.'/request-'.$fname;
        $respname = $tmpdir.'/response-'.$fname;
        if (file_put_contents($reqname, $this->postFields)) {
            $this->addStatusMessage($reqname, 'debug');
        }
        if (file_put_contents($respname, $this->lastCurlResponse)) {
            $this->addStatusMessage($respname, 'debug');
        }
    }
public function saveDebugFiles ( ) { $ tmpdir = sys_get_temp_dir ( ) ; $ fname = $ this -> evidence . '-' . $ this -> curlInfo [ 'when' ] . '.' . $ this -> format ; $ reqname = $ tmpdir . '/request-' . $ fname ; $ respname = $ tmpdir . '/response-' . $ fname ; if ( file_put_contents ( $ reqname , $ this -> postFields ) ) { $ this -> addStatusMessage ( $ reqname , 'debug' ) ; } if ( file_put_contents ( $ respname , $ this -> lastCurlResponse ) ) { $ this -> addStatusMessage ( $ respname , 'debug' ) ; } }
Save RAW Curl Request & Response to files in Temp directory
Save RAW Curl Request & Response to files in Temp directory