note 123604 added to soapclient.soapclient

From: Date: Mon, 11 Feb 2019 21:54:39 +0000
Subject: note 123604 added to soapclient.soapclient
Groups: php.notes 
Request: Send a blank email to php-notes+get-210231@lists.php.net to get a copy of this message
If you try to use a 'stream_context' option to set additional HTTP headers, you should be aware of a couple of things. First, even if you are using a https URL, the 'header' will be pulled from the 'http' section: $context = stream_context_create([ 'https' => [ 'header' => 'Test: this will be ignored' ], 'http' => [ 'header' => 'Test: this will be used' ] ]); Second, there are a number of headers that are ignored, and will never be used. Check the underlying C source file soap/php_http.c and search for "skip some predefined headers" for a list. This is the reason some people report problems trying to set Host, Authorization, and other headers in certain situations. ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.35 (proxied: 24.4.230.180) ---- Manual Page -- http://php.net/manual/en/soapclient.soapclient.php Edit -- https://master.php.net/note/edit/123604 Del: integrated -- https://master.php.net/note/delete/123604/integrated Del: useless -- https://master.php.net/note/delete/123604/useless Del: bad code -- https://master.php.net/note/delete/123604/bad+code Del: spam -- https://master.php.net/note/delete/123604/spam Del: non-english -- https://master.php.net/note/delete/123604/non-english Del: in docs -- https://master.php.net/note/delete/123604/in+docs Del: other reasons-- https://master.php.net/note/delete/123604 Reject -- https://master.php.net/note/reject/123604 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210231) next »