php - convert setHeader to use https -
can please in converting bit of code send header response via https in php
protected function _senduploadresponse($filename, $content, $contenttype='application/octet-stream') { $response = $this->getresponse(); $response->setheader('http/1.1 200 ok',''); $response->setheader('pragma', 'public', true); $response->setheader('cache-control', 'must-revalidate, post-check=0, pre-check=0', true); $response->setheader('content-disposition', 'attachment; filename='.$filename); $response->setheader('last-modified', date('r')); $response->setheader('accept-ranges', 'bytes'); $response->setheader('content-length', strlen($content)); $response->setheader('content-type', $contenttype); $response->setbody($content); $response->sendresponse(); die; }
Comments
Post a Comment