<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic There to be a bug in the… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/WebApi-Unable-to-set-Content-Type-header-via-parameter/m-p/55381#M9729</link>
    <description>There to be&amp;nbsp;a bug in the current WebAPI that does not allow dynamic assignment of special reserved HTTP headers such as “Host”, “Content-Type”, etc.</description>
    <pubDate>Thu, 17 Jan 2019 00:52:00 GMT</pubDate>
    <dc:creator>BenKaiser</dc:creator>
    <dc:date>2019-01-17T00:52:00Z</dc:date>
    <item>
      <title>WebApi: Unable to set Content-Type header via parameter</title>
      <link>https://community.blueprism.com/t5/Product-Forum/WebApi-Unable-to-set-Content-Type-header-via-parameter/m-p/55380#M9728</link>
      <description>I am able to set other custom headers to the parameters passed into a webapi using [parameter name] or to be more specific my parameter is named "content type" so [content type].

However when I attempt to set the header Content-Type it takes this value as a literal string and in fiddler I see:&amp;nbsp;

POST &lt;A href="https://example.com/rest/integration&amp;nbsp;HTTP/1.1" target="test_blank"&gt;https://example.com/rest/integration&amp;nbsp;HTTP/1.1&lt;/A&gt;
Content-Type: [content type]
kaiser-header: application/json
Authorization: Basic YWRtaW4udefsXNlcjmVlZHRvYWRtaW5pc3Rlcg==
Host: example.com
Content-Length: 15

{"blah":"blah"}</description>
      <pubDate>Thu, 17 Jan 2019 00:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/WebApi-Unable-to-set-Content-Type-header-via-parameter/m-p/55380#M9728</guid>
      <dc:creator>BenKaiser</dc:creator>
      <dc:date>2019-01-17T00:36:00Z</dc:date>
    </item>
    <item>
      <title>There to be a bug in the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/WebApi-Unable-to-set-Content-Type-header-via-parameter/m-p/55381#M9729</link>
      <description>There to be&amp;nbsp;a bug in the current WebAPI that does not allow dynamic assignment of special reserved HTTP headers such as “Host”, “Content-Type”, etc.</description>
      <pubDate>Thu, 17 Jan 2019 00:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/WebApi-Unable-to-set-Content-Type-header-via-parameter/m-p/55381#M9729</guid>
      <dc:creator>BenKaiser</dc:creator>
      <dc:date>2019-01-17T00:52:00Z</dc:date>
    </item>
  </channel>
</rss>

