<?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 PUT/ GET METHOD in G Web Development Software</title>
    <link>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413311#M841</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I trie to develop a webserver to visualize and send command at a raspberry pi4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My VI run on the raspberry, and with the Webservice and G-Web, I can display on a web site many values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I want to send a new value with the web site to the raspberry, with the PUT method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- with the command in a web browser "&lt;A href="http://192.168.1.168:8001/WebService1/PUT_VALUE?GUIValue=10" target="_blank"&gt;http://192.168.1.168:8001/WebService1/PUT_VALUE?GUIValue=10&lt;/A&gt;" &lt;BR /&gt;I have the error "Access Error: 404 -- Not Found"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- with G-Web Developpment software, with "PUT buffer.vi" in a diagram, I have the error below &lt;BR /&gt;"Javascript message: Failed to load &lt;A href="http://192.168.1.168:8001/WebService/PUT_VALUE" target="_blank"&gt;http://192.168.1.168:8001/WebService/PUT_VALUE&lt;/A&gt;: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' Header is present on the request ressource.&lt;BR /&gt;Origin '&lt;A href="http://hpi7-ob:8001" target="_blank"&gt;http://hpi7-ob:8001&lt;/A&gt;' is therefore not allowed access. The response had HTTP Status code 404."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea about my error? How pass the"access control check"?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I tried different setup of CORS, but still stuck.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sat, 07 Dec 2024 16:17:44 GMT</pubDate>
    <dc:creator>olivier83</dc:creator>
    <dc:date>2024-12-07T16:17:44Z</dc:date>
    <item>
      <title>PUT/ GET METHOD</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413311#M841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I trie to develop a webserver to visualize and send command at a raspberry pi4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My VI run on the raspberry, and with the Webservice and G-Web, I can display on a web site many values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I want to send a new value with the web site to the raspberry, with the PUT method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- with the command in a web browser "&lt;A href="http://192.168.1.168:8001/WebService1/PUT_VALUE?GUIValue=10" target="_blank"&gt;http://192.168.1.168:8001/WebService1/PUT_VALUE?GUIValue=10&lt;/A&gt;" &lt;BR /&gt;I have the error "Access Error: 404 -- Not Found"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- with G-Web Developpment software, with "PUT buffer.vi" in a diagram, I have the error below &lt;BR /&gt;"Javascript message: Failed to load &lt;A href="http://192.168.1.168:8001/WebService/PUT_VALUE" target="_blank"&gt;http://192.168.1.168:8001/WebService/PUT_VALUE&lt;/A&gt;: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' Header is present on the request ressource.&lt;BR /&gt;Origin '&lt;A href="http://hpi7-ob:8001" target="_blank"&gt;http://hpi7-ob:8001&lt;/A&gt;' is therefore not allowed access. The response had HTTP Status code 404."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea about my error? How pass the"access control check"?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I tried different setup of CORS, but still stuck.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 16:17:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413311#M841</guid>
      <dc:creator>olivier83</dc:creator>
      <dc:date>2024-12-07T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: PUT/ GET METHOD</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413327#M842</link>
      <description>&lt;P&gt;You haven't said what actual CORS handling you've tried so we won't know what's different/wrong to try something else.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 20:18:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413327#M842</guid>
      <dc:creator>IlluminatedG</dc:creator>
      <dc:date>2024-12-07T20:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: PUT/ GET METHOD</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413337#M843</link>
      <description>&lt;P&gt;Thanks to have take time to answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Gweb I allow remote connections from any client, and I have enabled CORS for all origins, like screen capture below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For information, I use apache2 web serveur on raspberry.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 09:06:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413337#M843</guid>
      <dc:creator>olivier83</dc:creator>
      <dc:date>2024-12-08T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: PUT/ GET METHOD</title>
      <link>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413573#M844</link>
      <description>&lt;P&gt;That's for the g web app, how are you deploying the web service? Likely need to set the cors headers on the requests being handled by the LabVIEW web service.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 15:48:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/G-Web-Development-Software/PUT-GET-METHOD/m-p/4413573#M844</guid>
      <dc:creator>IlluminatedG</dc:creator>
      <dc:date>2024-12-09T15:48:32Z</dc:date>
    </item>
  </channel>
</rss>

