<?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 .NET Http/Https Get document in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405426#M201250</link>
    <description>Has anyone used .NET to do Http/Https services ? I used activex to talk to a webserver and read the contents using "Get document". I want to see if I can do via .NET since activeX has some inherent problems such as the update speed or cacheing.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sridhar</description>
    <pubDate>Thu, 17 Aug 2006 16:55:56 GMT</pubDate>
    <dc:creator>winterishere8</dc:creator>
    <dc:date>2006-08-17T16:55:56Z</dc:date>
    <item>
      <title>.NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405426#M201250</link>
      <description>Has anyone used .NET to do Http/Https services ? I used activex to talk to a webserver and read the contents using "Get document". I want to see if I can do via .NET since activeX has some inherent problems such as the update speed or cacheing.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sridhar</description>
      <pubDate>Thu, 17 Aug 2006 16:55:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405426#M201250</guid>
      <dc:creator>winterishere8</dc:creator>
      <dc:date>2006-08-17T16:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405713#M201379</link>
      <description>I haven't tried .NET, but one other option is to use DataSocket read function.&lt;BR /&gt;&lt;BR /&gt;-Khalid</description>
      <pubDate>Fri, 18 Aug 2006 07:37:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405713#M201379</guid>
      <dc:creator>Khalid</dc:creator>
      <dc:date>2006-08-18T07:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405848#M201442</link>
      <description>Problem with data socket is: The first few characters sent have a bug. If you send "Passed", you would read it as "PPPPed"&lt;BR /&gt;&lt;BR /&gt;I have used activeX before. It has some kind of cacheing when I do secure communication. ActiveX works fine if it http rather than https.&lt;BR /&gt;&lt;BR /&gt;So I want to use .NET to see if it's any better.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Aug 2006 13:05:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/405848#M201442</guid>
      <dc:creator>winterishere8</dc:creator>
      <dc:date>2006-08-18T13:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/406730#M201770</link>
      <description>Sridhar,&lt;BR /&gt;&lt;BR /&gt;From an NI perspective, I can offer support with how to use LabVIEW as a .NET client (linked below). I can also offer that I have not personally seen an application that utilized .NET to communicate with a web server. As for whether or not the functionality exists, I cannot say for sure. If you are able to utilize .NET to communicate with a web server, please post back to this forum, as I am also interested to know. Thanks, &lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;&lt;BR /&gt;Using .NET in LabVIEW:&lt;BR /&gt;http://zone.ni.com/reference/en-XX/help/371361A-01/lvconcepts/using__net_with_labview/&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Aug 2006 19:34:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/406730#M201770</guid>
      <dc:creator>DuffmanSays</dc:creator>
      <dc:date>2006-08-21T19:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/407126#M201926</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Another aspect to keep in mind - the .NET APIs will let you communicate via HTTP and HTTPS. The next question is what to do with the data. If you are talking to a web service, receiving XML, you might want to use the Web Service Proxy support in .NET instead. If it's custom XML, then you can use the System.Xml classes. If it's HTML, you'll probably be better off using the IE control set in ActiveX.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Speaking from first-hand experience, processing HTML - especially being able to handle the variety out on the web, with CSS and JS additions - is a nightmare and you'd be better off using the MS HTML parser and it's associated DOM.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Guess I'm not answering your question as much as giving you more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Aug 2006 14:46:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/407126#M201926</guid>
      <dc:creator>Lycangeek</dc:creator>
      <dc:date>2006-08-22T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/408260#M202383</link>
      <description>How you do communicate with HTTPS via .NET. Do you have an example ? I will be extracting the readout as a string and process them. I am thinking or hoping that .NET is better than activeX in communicating with HTTPS or atleast HTTP.</description>
      <pubDate>Thu, 24 Aug 2006 16:37:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/408260#M202383</guid>
      <dc:creator>winterishere8</dc:creator>
      <dc:date>2006-08-24T16:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/408347#M202425</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The class you want is System.Net.HttpWebRequest, and the programming is pretty simple. I wipped up a quick example below. Note that my reading portion is very primative - it's a fixed size array. You'll probaby want to "read until done" or similar actions.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Unfortunately, the ContentLength is usually not helpful as it's often -1. This means that the web server didn't send the length - it expects the client to "read until done".&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Aug 2006 19:54:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/408347#M202425</guid>
      <dc:creator>Lycangeek</dc:creator>
      <dc:date>2006-08-24T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/592917#M277104</link>
      <description>&lt;DIV&gt;Just in case someone stumbles on this thread, I've attached an extension to the .NET example shown by Lycangeek. This is a fairly quick web document fetcher (seems to be as fast as IE). There's probably a better way to do the proxy subsitution. That's required to prevent the first call from searching for a proxy (5 to 10 second delay).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The status code is a bitch sketchy right now as I'm searching for a .NET way to get this back using the WebRequest structure (Using .NET 2.0 here).&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The image is big (sorry), so you may need to open up your browser window size to see it clearly. If you need help locating the .NET modules/assemblies, just let me know and I'll gather the list. You can likely find them faster searching &lt;A href="http://msdn2.microsoft.com/en-us/library/aa139635.aspx" target="_blank"&gt;http://msdn2.microsoft.com/en-us/library/aa139635.aspx&lt;/A&gt;&amp;nbsp;for each method or property name. &lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Oct 2007 23:55:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/592917#M277104</guid>
      <dc:creator>Wiredup</dc:creator>
      <dc:date>2007-10-09T23:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/919584#M413818</link>
      <description>&lt;P&gt;One more question. Your code works great on HTTP and HTTPS. When I goto a website which asks me to accept the certificate, the code fails because by default it rejects the authentication. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see system.security.authentication.authenticationexception and I think it's got to do something with it. Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Spartan00 on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 06-03-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 03:56 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jun 2009 20:56:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/919584#M413818</guid>
      <dc:creator>winterishere8</dc:creator>
      <dc:date>2009-06-03T20:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/987534#M442056</link>
      <description>&lt;P&gt;Here is a VI snippet for those interested in working with this code: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/da587e13151257f2addb40aa60dc0c7a59aff690/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f3435363269324530454545393238364631453530382f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="dotNET https.png" title="dotNET https.png" align="CENTER" /&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2009 21:34:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/987534#M442056</guid>
      <dc:creator>mishkin</dc:creator>
      <dc:date>2009-09-18T21:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/1095520#M484592</link>
      <description>&lt;P&gt;Note that there are different security protocols for SSL.&lt;/P&gt;&lt;P&gt;These examples here work only for&amp;nbsp;the TLS protocol which is the default.&lt;/P&gt;&lt;P&gt;But if the server doesn't support TLS you won't get a response.&lt;/P&gt;&lt;P&gt;You can change the protocol by adding a property node for the SecurityProtocol of&amp;nbsp;the class System.NET.ServicePointManager.&lt;/P&gt;&lt;P&gt;A possible value would be "Ssl3" for example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.securityprotocol.aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.securityprotocol.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2010 09:19:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/1095520#M484592</guid>
      <dc:creator>schuller</dc:creator>
      <dc:date>2010-03-22T09:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/1095622#M484637</link>
      <description>&lt;P&gt;I want to download an xml document that has a https url, so this thread should really help me accomplish that. Unfortunately I can't even find the .NET assembly that contains the WebRequest methods. Anayone know which assembly I should choose in the Labview Class browser to find these methods?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW. the code snippet has the method nodes removed when I drag it into Labview. Maybe that means that the assembly is not present in my installation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Aart-Jan &lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2010 11:08:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/1095622#M484637</guid>
      <dc:creator>aartjan</dc:creator>
      <dc:date>2010-03-22T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527474#M767429</link>
      <description>&lt;P&gt;Hi, I'm trying to do the exact same thing with no success any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 20:20:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527474#M767429</guid>
      <dc:creator>ethmx</dc:creator>
      <dc:date>2013-08-16T20:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527516#M767441</link>
      <description>&lt;P&gt;What version of .NET is installed ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 20:46:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527516#M767441</guid>
      <dc:creator>winterishere8</dc:creator>
      <dc:date>2013-08-16T20:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527526#M767445</link>
      <description>&lt;P&gt;The webpage i'm trying to parse is: &lt;A href="https://192.168.254.254/XML/DeviceInfo.xml" target="_blank"&gt;https://192.168.254.254/XML/DeviceInfo.xml&lt;/A&gt;&amp;nbsp;where the IP is the device I'm trying to query. I was wondering if there's a way to do the File - Save As of IE explorer programatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using LabVIEW 2009 and .NET Framerwork 3.5 SP1&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 20:50:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527526#M767445</guid>
      <dc:creator>ethmx</dc:creator>
      <dc:date>2013-08-16T20:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527556#M767453</link>
      <description>&lt;P&gt;If you are trying to store the contents of the web page, you could use HttpResponse. I've not done the "Save As" ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/071a388f5fc653035da2808fed765e398b96b0c3/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31313832333869374133344143443741453939373636462f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Untitled.jpg" title="Untitled.jpg" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 21:17:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527556#M767453</guid>
      <dc:creator>winterishere8</dc:creator>
      <dc:date>2013-08-16T21:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527570#M767455</link>
      <description>&lt;P&gt;I end up doing this (see attached VI). Seems to works, but you need to run it at least twice to get the proper text on the indicator "inner text" Any idea why? or any improvement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got this idea from one of the NI Examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 21:31:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2527570#M767455</guid>
      <dc:creator>ethmx</dc:creator>
      <dc:date>2013-08-16T21:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2529238#M767742</link>
      <description>&lt;P&gt;Hi ethmx,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried running your code with highlight execution turned on? Does the 'inner text' indicator populate correctly on the first try withe exeuction highlighting turned on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andy C.&lt;/P&gt;
&lt;P&gt;Applications Engineer&lt;/P&gt;
&lt;P&gt;National Instruments&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 20:42:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2529238#M767742</guid>
      <dc:creator>Andy-C</dc:creator>
      <dc:date>2013-08-19T20:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2541927#M770155</link>
      <description>&lt;P&gt;I'm also very interested in seeing this work with .NET .&amp;nbsp; HttpRequest &amp;gt; write to excel file &amp;gt; save to web server..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 16:21:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/2541927#M770155</guid>
      <dc:creator>HeavyD</dc:creator>
      <dc:date>2013-08-30T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Http/Https Get document</title>
      <link>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/3342714#M981799</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i was using your fantastic Example To make a HTTPS POST .&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But now I have to do to log into a site What use HTTPS , dove I can INSERT into Your "VI" The credentials ( username and password) ???&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 18:19:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/NET-Http-Https-Get-document/m-p/3342714#M981799</guid>
      <dc:creator>NTampelloni</dc:creator>
      <dc:date>2016-09-03T18:19:54Z</dc:date>
    </item>
  </channel>
</rss>

