03-22-2010 04:19 AM
Note that there are different security protocols for SSL.
These examples here work only for the TLS protocol which is the default.
But if the server doesn't support TLS you won't get a response.
You can change the protocol by adding a property node for the SecurityProtocol of the class System.NET.ServicePointManager.
A possible value would be "Ssl3" for example:
http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.securityprotocol.aspx
03-22-2010 06:08 AM
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?
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?
Thanks!
Aart-Jan
08-16-2013 03:20 PM
Hi, I'm trying to do the exact same thing with no success any ideas?
08-16-2013 03:46 PM
What version of .NET is installed ?
08-16-2013 03:50 PM
The webpage i'm trying to parse is: https://192.168.254.254/XML/DeviceInfo.xml 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?
I'm using LabVIEW 2009 and .NET Framerwork 3.5 SP1
08-16-2013 04:17 PM
If you are trying to store the contents of the web page, you could use HttpResponse. I've not done the "Save As" ...
08-16-2013 04:31 PM
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?
I got this idea from one of the NI Examples.
Thank you!
08-19-2013 03:42 PM
Hi ethmx,
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?
Cheers,
Andy C.
Applications Engineer
National Instruments
08-30-2013 11:21 AM
I'm also very interested in seeing this work with .NET . HttpRequest > write to excel file > save to web server..
09-03-2016 01:19 PM - edited 09-03-2016 01:19 PM
Hi,
i was using your fantastic Example To make a HTTPS POST .
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) ???
Thank you