{"id":8187,"date":"2015-11-30T00:50:37","date_gmt":"2015-11-30T00:50:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/30\/the-provided-uri-scheme-https-is-invalid-expected-http-parameter-name-via-open-source-projects-haskell-http\/"},"modified":"2022-08-30T15:02:58","modified_gmt":"2022-08-30T15:02:58","slug":"the-provided-uri-scheme-https-is-invalid-expected-http-parameter-name-via-open-source-projects-haskell-http","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/30\/the-provided-uri-scheme-https-is-invalid-expected-http-parameter-name-via-open-source-projects-haskell-http\/","title":{"rendered":"The provided URI scheme &#39;https&#39; is invalid; expected &#39;http&#39;. Parameter name: via-open source projects haskell\/HTTP"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/665023a42b3506f0f3d31ce493c2b26f?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>chillfire<\/strong><\/p>\n<p>Its a good to remember that config files can be split across secondary files to make config changes easier on different servers (dev\/demo\/production etc), without having to recompile code\/app etc. For example we use them to allow onsite engineers to make endpoint changes without actually touching the &#8216;real&#8217; files.<\/p>\n<p>First step is to move the bindings section out of the WPF App.Config into it&#8217;s own separate file.<\/p>\n<p>The behaviours section is set to allow both http and https (doesn&#8217;t seem to have an affect on the app if both are allowed)<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>And we move the bindings section out to its own file;<\/p>\n<pre><code>  \n<\/code><\/pre>\n<p>In the bindings.config file we switch the security based on protocol<\/p>\n<pre><code>  \n  \n  \n<\/code><\/pre>\n<p>Now the on site engineers only need to change the Bindings.Config file and the Client.Config where we store the actual URL for each endpoint.<\/p>\n<p>This way we can change the endpoint from http to https and back again to test the app without having to change any code.<\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>chillfire Its a good to remember that config files can be split across secondary files to make config changes easier on different servers (dev\/demo\/production etc), without having to recompile code\/app etc. For example we use them to allow onsite engineers to make endpoint changes without actually touching the &#8216;real&#8217; files. First step is to move [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8187","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8187"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8187\/revisions"}],"predecessor-version":[{"id":8552,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8187\/revisions\/8552"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}