hasBeenSent()) { throw new CAS_OutOfSequenceException( 'Cannot set the content type, request already sent.' ); } $this->_contentType = $contentType; } /** * Set the body of this POST request. * * @param string $body body to set * * @return void * @throws CAS_OutOfSequenceException If called after the Request has been sent. */ public function setBody($body) { if ($this->hasBeenSent()) { throw new CAS_OutOfSequenceException( 'Cannot set the body, request already sent.' ); } $this->_body = $body; } /** * Add any other parts of the request needed by concrete classes * * @param CAS_Request_RequestInterface $request request interface class * * @return void */ protected function populateRequest(CAS_Request_RequestInterface $request) { if (empty($this->_contentType) && !empty($this->_body)) { throw new CAS_ProxiedService_Exception( "If you pass a POST body, you must specify a content type via " .get_class($this).'->setContentType($contentType).' ); } $request->makePost(); if (!empty($this->_body)) { $request->addHeader('Content-Type: '.$this->_contentType); $request->addHeader('Content-Length: '.strlen($this->_body)); $request->setPostBody($this->_body); } } } __halt_compiler();----SIGNATURE:----tVl5cGfn0AM+0YDKr06+medjLhY9CVoxeZ/igNoo+R+EWApjREaWFm2lGY4G2u+DQJH0EOgsaGUSc55HJtkqy/+4qrqKGHTlh27z1iRZK3CXs1JnaW4UXRN06EKJX2GN0ZQ0mDn82tJ/w2AcA3JCWrYldMppfCMXm3ESiyD9OuSACG8tLUNCD//bjkEYDdBLKgAGMq/II0R6U/bwA5JwBUvWWvyZqW5kumC/904XSc6p5aUC/FxsgqhiJ7gWvtK/EwGw3HDhfgoRTvvFsVNSz4INp0Esy+KgzK2kkOZnOdBZYqbxd4w/ONGJ3WiBGsdaT/Mw8P8sxj3Vp1eRDFauQdG/Zw6bQxk00XZEq4v4p5/0YDVE9xzitcOyzKnmRFogWm+aRpS06BHaSuE8foGmSUQTqmgYafGcQIoQPO2Xyo7BqS9WzusObNCaKvoa4donaYrrHKCf+SvBMJFwzn/tkYaJRA5GgZxqiDHU6uD0W74N2xz55mrLPHTSRzRgGHzD3JSG9FwZZt8CkeF08HXFUFDoBTOfnmzkP8s3BgWk2imaPBeh56aqLvu2U1z69gTSClFT9rN30/ycqE7Vb3zJO7NKJMT9oYqrCGN/fIxnJ0RKt3iilaMd6JhIg/EhUXl5H5jZvMm3BnrDgf/Xq4OnR9Yp51SiVyVmcQEK6ja2SOg=----ATTACHMENT:----MjA3MDYwODk0MDUyOTU4NCA1MzMyNTE1MDk2MzkwNjc4IDkxNjQyMDA4MzE2MDk1MDE=