<?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 Re: Send JSON body in HTTP request in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Send-JSON-body-in-HTTP-request/m-p/368708#M1845</link>
    <description>&lt;P&gt;You are probably missing a&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;clientConnection.Connect();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;right after you initialized clientConnection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 16:46:22 GMT</pubDate>
    <dc:creator>BrunoValads</dc:creator>
    <dc:date>2023-01-24T16:46:22Z</dc:date>
    <item>
      <title>Send JSON body in HTTP request</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Send-JSON-body-in-HTTP-request/m-p/319675#M1844</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to send data in JSON format in an HTTP request like this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GS::UniString uriString = "https://domain/api";
IO::URI::URI connectionUrl(uriString);
ClientConnection clientConnection(connectionUrl);    
GS::ObjectState requestOs;
requestOs.Add("param1", "val1");
requestOs.Add("testKey2", "val2");
JSON::CreateFromObjectState(requestOs, clientConnection.BeginSend(request));
clientConnection.FinishSend();&lt;/LI-CODE&gt;&lt;P&gt;But I am not receiving the JSON in the request on the server side (PHP).&lt;/P&gt;&lt;P&gt;Is this the correct way to send JSON data in an HTTP request?&lt;/P&gt;&lt;P&gt;Please help!&amp;nbsp; ( &lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11183"&gt;@Tibor Lorantfy&lt;/a&gt;&amp;nbsp; ? )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 07:50:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Send-JSON-body-in-HTTP-request/m-p/319675#M1844</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-11-04T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Send JSON body in HTTP request</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Send-JSON-body-in-HTTP-request/m-p/368708#M1845</link>
      <description>&lt;P&gt;You are probably missing a&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;clientConnection.Connect();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;right after you initialized clientConnection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:46:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Send-JSON-body-in-HTTP-request/m-p/368708#M1845</guid>
      <dc:creator>BrunoValads</dc:creator>
      <dc:date>2023-01-24T16:46:22Z</dc:date>
    </item>
  </channel>
</rss>

