Home > SOAP, Troubleshooting > Undefined offset: 0 in ..\SOAP\Transport\HTTP.php on line 341

Undefined offset: 0 in ..\SOAP\Transport\HTTP.php on line 341

'HTTP/1.1 200 OK
Date: Mon, 13 Dec 2010 19:42:59 GMT
Server: Apache/2.2.16 (Win32) PHP/5.3.3
X-Powered-By: PHP/5.3.3
Set-Cookie: symfony=c7negjfjla0njaej17lo89hjl2; path=/
Content-Length: 2701
Connection: close
Content-Type: text/xml; charset=UTF-8
X-Pad: avoid browser bug'

 

SOAP\Transport\HTTP.php

    /**
     * Parses the headers.
     *
     * @param array $headers  The headers.
     */
    function _parseHeaders($headers)
    {
        /* Largely borrowed from HTTP_Request. */
        $this->result_headers = array();
        $headers = explode("\r?\n", $headers);
        foreach ($headers as $value) {
            if (strpos($value,':') === false) {
                $this->result_headers[0] = $value;
                continue;
            }
            list($name, $value) = explode(':', $value);
            $headername = strtolower($name);
            $headervalue = trim($value);
            $this->result_headers[$headername] = $headervalue;

 

    /**
     * Parses the headers.
     *
     * @param array $headers  The headers.
     */
    function _parseHeaders($headers)
    {
        /* Largely borrowed from HTTP_Request. */
        $this->result_headers = array();
        $headers = str_replace("\r","",$headers);
        $headers = explode("\n",$headers);
        foreach ($headers as $value) {
            if (strpos($value,':') === false) {
                $this->result_headers[0] = $value;
                continue;
            }
            list($name, $value) = explode(':', $value);
            $headername = strtolower($name);
            $headervalue = trim($value);
            $this->result_headers[$headername] = $headervalue;

 

Categories: SOAP, Troubleshooting Tags:
  1. No comments yet.
  1. No trackbacks yet.