<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to HttpClient header</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21c3a18006/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21c3a18006/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/21c3a18006/</id><updated>2022-07-19T01:10:29.716000Z</updated><subtitle>Recent posts to HttpClient header</subtitle><entry><title>HttpClient header</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21c3a18006/?limit=25#ab48" rel="alternate"/><published>2022-07-19T01:10:29.716000Z</published><updated>2022-07-19T01:10:29.716000Z</updated><author><name>nothinrandom</name><uri>https://forge.codesys.com/u/nothinrandom/</uri></author><id>https://forge.codesys.com7cfc578c253cfc003e8a72c6b9f4b885279edfd7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;there should be an input field called &lt;code&gt;eContentType&lt;/code&gt;.  Fill out this field with &lt;code&gt;Web_Client.CONTENT_TYPE.APPLICATION_JSON&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>HttpClient header</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/21c3a18006/?limit=25#525d" rel="alternate"/><published>2022-07-05T06:12:09.027000Z</published><updated>2022-07-05T06:12:09.027000Z</updated><author><name>dako</name><uri>https://forge.codesys.com/u/dako/</uri></author><id>https://forge.codesys.comf5e49193ad27a83fc647952e558e8e7d0140eb63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We want to send in Codesys the POST request with a header consisting of two parts:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;'Authorization': "Basic ZGlzdHJpYnV0b3I6NjJxNA=="&lt;/span&gt;
&lt;span class="err"&gt;'Content-Type': "application/json"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The Post Commands was tested successfully with a python script so we are sure, that our request is built correctly. &lt;/p&gt;
&lt;p&gt;We are able in Codesys to successfully send a header which consist of one part only:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;wsHeader := "Authorization: Basic ZGlzdHJpYnV0b3I6NjJxNA=="&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;We have no idea how to send in Codesys a header which has more than one part. We tried a lot of syntax, split parts with $R$N, commas, etc.. And nothing works. We got all the time a response from the server:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;"{"error_human": "missing_content_type_json_header", "error_code": "missing_content_type_json_header", "args": {}}$N"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Could anyone help us? Examples from Codesys contain only one-part headers.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>