Lines Matching refs:headers

218 	* @param	array	$headers	The HTTP headers
223 function parseResponse($headers, $data) { argument
224 …seResponse() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
226 if (strstr($headers['content-type'], 'multipart/related')) {
229 foreach ($headers as $k => $v) {
240 if (!isset($part->disposition) && (strstr($part->headers['content-type'], 'text/xml'))) {
241 $this->debug('Have root part of type ' . $part->headers['content-type']);
243 $return = parent::parseResponse($part->headers, $part->body);
245 $this->debug('Have an attachment of type ' . $part->headers['content-type']);
248 $info['contenttype'] = $part->headers['content-type'];
249 $info['cid'] = $part->headers['content-id'];
263 return parent::parseResponse($headers, $data);
459 * @param array $headers The HTTP headers
464 function parseRequest($headers, $data) { argument
465 …rseRequest() for payload of length ' . strlen($data) . ' and type of ' . $headers['content-type']);
467 if (strstr($headers['content-type'], 'multipart/related')) {
470 foreach ($headers as $k => $v) {
481 if (!isset($part->disposition) && (strstr($part->headers['content-type'], 'text/xml'))) {
482 $this->debug('Have root part of type ' . $part->headers['content-type']);
483 $return = parent::parseRequest($part->headers, $part->body);
485 $this->debug('Have an attachment of type ' . $part->headers['content-type']);
488 $info['contenttype'] = $part->headers['content-type'];
489 $info['cid'] = $part->headers['content-id'];
502 return parent::parseRequest($headers, $data);