]> granicus.if.org Git - php/commit
Support content_type stream context option in soap
authorVincent JARDIN <vjardin@free.fr>
Tue, 23 Apr 2019 21:10:38 +0000 (23:10 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 21 May 2019 08:04:15 +0000 (10:04 +0200)
commit5f8c22d41536768298354218fe238691ae750f75
tree95df7588f77fb1c1fd13d959fcd57591de37ed88
parent202e6936d6fa319fdda16c5c61d70ce19c2ecef6
Support content_type stream context option in soap

Allows overriding the HTTP header using the HTTP context:

    $client = new SoapClient('http://url.wsdl&v=latest', [
      'stream_context' => stream_context_create([
        'http' => [
          'content_type' => 'foobarX',
        ],
      ]),
    ]);

This is a backport of c55af3c65ac116bbd935bd3d695869d88056c49c
to the PHP 7.2 branch.
ext/soap/php_http.c
ext/soap/tests/custom_content_type.phpt [new file with mode: 0644]