<?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: HTTP POST Multipart - Error 1072 in G Web Development Software</title>
    <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230718#M258</link>
    <description>&lt;P&gt;Hey MilanR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response but that's bad news for me cause I need to upload and send a firmware file. The file itself is basically a text file so I could use the file example from &lt;A href="https://github.com/rajsite/webvi-experiments/tree/main/File" target="_blank"&gt;https://github.com/rajsite/webvi-experiments/tree/main/File&lt;/A&gt;. But the web API is expecting the file and a few parameters as multipart form data. I'm not a web development expert at all so I'm not sure if it is even possible to create the web request "by hand".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder why these VI's are even there if we can't use them, that's very misleading.&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 06:30:59 GMT</pubDate>
    <dc:creator>Jens_S</dc:creator>
    <dc:date>2022-05-16T06:30:59Z</dc:date>
    <item>
      <title>HTTP POST Multipart - Error 1072</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230402#M256</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to send a few parameters and a file to an web server by using the HTTP POST method of G WEB. Unfortunately I'm running into error 1072 which has zero documentation or error explanation. All I could "find" is that all of the polymorphic instances of the POST method are making use of an disable structure. The enabled case is "TARGET_TYPE == WebServer" which is raising the error but only for "POST Multipart" and "POST File".&lt;BR /&gt;&lt;BR /&gt;The documentation states nothing about a reason why I can't use Multipart or File for the POST method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to send the POST request with multipart/form-data but I'm stuck here. It still feels like I'm missing something but I can't figure it out. Maybe someone else can enlighten me a bit &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 15:14:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230402#M256</guid>
      <dc:creator>Jens_S</dc:creator>
      <dc:date>2022-05-13T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP POST Multipart - Error 1072</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230434#M257</link>
      <description>&lt;P&gt;Hey Jens_S,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the POST File and POST Multipart VIs are not supported in G Web. It's partly because G Web does not have built-in support for the File types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are your use-cases for using POST File / POST Multipart?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 16:16:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230434#M257</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2022-05-13T16:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP POST Multipart - Error 1072</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230718#M258</link>
      <description>&lt;P&gt;Hey MilanR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response but that's bad news for me cause I need to upload and send a firmware file. The file itself is basically a text file so I could use the file example from &lt;A href="https://github.com/rajsite/webvi-experiments/tree/main/File" target="_blank"&gt;https://github.com/rajsite/webvi-experiments/tree/main/File&lt;/A&gt;. But the web API is expecting the file and a few parameters as multipart form data. I'm not a web development expert at all so I'm not sure if it is even possible to create the web request "by hand".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder why these VI's are even there if we can't use them, that's very misleading.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:30:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4230718#M258</guid>
      <dc:creator>Jens_S</dc:creator>
      <dc:date>2022-05-16T06:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP POST Multipart - Error 1072</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4239681#M290</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey Jens_S,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the latest release of the &lt;A href="https://forums.ni.com/t5/Example-Code/File-for-WebVI/ta-p/4129229" target="_self"&gt;File for WebVI&lt;/A&gt; example I added an example library called HTTPExtensions with a Post Multipart Ex - String VI that is capable of creating HTTP Post requests using the Content-Type multipart/form-data. It may be a useful starting point / example for creating Post Multipart requests from a WebVI.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 04:46:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4239681#M290</guid>
      <dc:creator>MilanR</dc:creator>
      <dc:date>2022-06-28T04:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP POST Multipart - Error 1072</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4239697#M291</link>
      <description>&lt;P&gt;Hey Milan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your message, that's some good news. I'm gonna take a look into it when I have some spare time. It's really nice to see that the WebVi-Experiments are still being updated. A lot of the projects there should already be part of G Web cause they just work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So thanks for your update!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 06:12:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4239697#M291</guid>
      <dc:creator>Jens_S</dc:creator>
      <dc:date>2022-06-28T06:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP POST Multipart - Error 1072</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4253139#M346</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/633550"&gt;@Jens_S&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The documentation states nothing about a reason why I can't use Multipart or File for the POST method.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you're still looking for a solution, you can use the JavaScript Library Interface to sent multipart POST requests (see &lt;A href="https://forums.ni.com/t5/SystemLink/Systemlink-API-requests-via-javascript/m-p/4102197/highlight/true#M1642" target="_blank"&gt;https://forums.ni.com/t5/SystemLink/Systemlink-API-requests-via-javascript/m-p/4102197/highlight/true#M1642&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 03:05:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/HTTP-POST-Multipart-Error-1072/m-p/4253139#M346</guid>
      <dc:creator>JKSH</dc:creator>
      <dc:date>2022-09-02T03:05:20Z</dc:date>
    </item>
  </channel>
</rss>

