src/AbstractTransport.php
public function withoutCookie($cookieName = null)
    {
        $object = clone $this;
        if (! $this->configs['cookies'] instanceof CookieJarInterface) {
            return $object;
        }

        if (!$cookieName) {
            unset($object->configs['cookies']);
        } else {
            if (!is_array($cookieName)) {
                $cookieName = [$cookieName];
            }
            $cookies = $this->configs['cookies']->toArray();
            foreach ($cookieName as $cookie) {
                if (!is_string($cookie) || !$cookie) {
                    continue;
                }
                unset($cookies[$cookie]);
            }

            $this->configs['cookies'] = new CookieJar($cookies);
        }

        return $object->buildConfigClient();
    }
public function withoutCookie($cookieName = null)
    {
        $object = clone $this;
        if (! $this->configs['cookies'] instanceof CookieJarInterface) {
            return $object;
        }

        if (!$cookieName) {
            unset($object->configs['cookies']);
        } else {
            if (!is_array($cookieName)) {
                $cookieName = [$cookieName];
            }
            $cookies = $this->configs['cookies']->toArray();
            foreach ($cookieName as $cookie) {
                if (!is_string($cookie) || !$cookie) {
                    continue;
                }
                unset($cookies[$cookie]);
            }

            $this->configs['cookies'] = new CookieJar($cookies);
        }

        return $object->buildConfigClient();
    }
public function withoutCookie ( $ cookieName = null ) { $ object = clone $ this ; if ( ! $ this -> configs [ 'cookies' ] instanceof CookieJarInterface ) { return $ object ; } if ( ! $ cookieName ) { unset ( $ object -> configs [ 'cookies' ] ) ; } else { if ( ! is_array ( $ cookieName ) ) { $ cookieName = [ $ cookieName ] ; } $ cookies = $ this -> configs [ 'cookies' ] -> toArray ( ) ; foreach ( $ cookieName as $ cookie ) { if ( ! is_string ( $ cookie ) || ! $ cookie ) { continue ; } unset ( $ cookies [ $ cookie ] ) ; } $ this -> configs [ 'cookies' ] = new CookieJar ( $ cookies ) ; } return $ object -> buildConfigClient ( ) ; }
Without Send Cookie

@param string|array $cookieName
@return static
Without Send Cookie