]> 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>
Mon, 13 May 2019 08:51:03 +0000 (10:51 +0200)
commitc55af3c65ac116bbd935bd3d695869d88056c49c
treebd0ec68ecbce722de76af62dd9fc85f035cd36da
parent357da6bc59268755323bc924b0aae93374c7e227
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',
        ],
      ]),
    ]);
ext/soap/php_http.c
ext/soap/tests/custom_content_type.phpt [new file with mode: 0644]