<?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 HTTP 400 bad request correct body in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/http-400-bad-request-correct-body/m-p/32471#M13745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to perform a simple HTTP task and this is my resultant xml file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.flowable.org/processdef"&amp;gt;&lt;BR /&gt; &amp;lt;process id="Login" name="Login" isExecutable="true"&amp;gt;&lt;BR /&gt; &amp;lt;startEvent id="startEvent1"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt; &amp;lt;serviceTask id="LoginTask" flowable:type="http"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;flowable:field name="requestMethod"&amp;gt;&lt;BR /&gt; &amp;lt;flowable:string&amp;gt;&amp;lt;![CDATA[POST]]&amp;gt;&amp;lt;/flowable:string&amp;gt;&lt;BR /&gt; &amp;lt;/flowable:field&amp;gt;&lt;BR /&gt; &amp;lt;flowable:field name="requestUrl"&amp;gt;&lt;BR /&gt; &amp;lt;flowable:string&amp;gt;&amp;lt;![CDATA[https://reqres.in/api/login]]&amp;gt;&amp;lt;/flowable:string&amp;gt;&lt;BR /&gt; &amp;lt;/flowable:field&amp;gt;&lt;BR /&gt; &amp;lt;flowable:field name="requestBody"&amp;gt;&lt;BR /&gt; &amp;lt;flowable:string&amp;gt;&amp;lt;![CDATA[{"email": "peter@klaven" , "password" : "cityslicka"}]]&amp;gt;&amp;lt;/flowable:string&amp;gt;&lt;BR /&gt; &amp;lt;/flowable:field&amp;gt;&lt;BR /&gt; &amp;lt;flowable:field name="failStatusCodes"&amp;gt;&lt;BR /&gt; &amp;lt;flowable:string&amp;gt;&amp;lt;![CDATA[400]]&amp;gt;&amp;lt;/flowable:string&amp;gt;&lt;BR /&gt; &amp;lt;/flowable:field&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/serviceTask&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="sid-36A665CF-4FA6-4849-80F2-7FF8EAAD3A49" sourceRef="startEvent1" targetRef="LoginTask"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;endEvent id="sid-CA6A51E8-3EA5-4E1E-B580-5F8E9078B50D"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="sid-62654832-D11C-4B49-AE8D-E95BDF435AAF" sourceRef="LoginTask" targetRef="sid-CA6A51E8-3EA5-4E1E-B580-5F8E9078B50D"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;email and password are correct, in fact if I perform a POST on Postman with these values it works. But when I run an instance it gives me HTTP 400 error. Any idea why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2019 15:16:31 GMT</pubDate>
    <dc:creator>todomary</dc:creator>
    <dc:date>2019-04-12T15:16:31Z</dc:date>
    <item>
      <title>HTTP 400 bad request correct body</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/http-400-bad-request-correct-body/m-p/32471#M13745</link>
      <description>Hi, I'm trying to perform a simple HTTP task and this is my resultant xml file:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flow</description>
      <pubDate>Fri, 12 Apr 2019 15:16:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/http-400-bad-request-correct-body/m-p/32471#M13745</guid>
      <dc:creator>todomary</dc:creator>
      <dc:date>2019-04-12T15:16:31Z</dc:date>
    </item>
  </channel>
</rss>

