LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Http/Https Get document

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

 

 

0 Kudos
Message 11 of 21
(3,716 Views)

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

0 Kudos
Message 12 of 21
(3,704 Views)

Hi, I'm trying to do the exact same thing with no success any ideas?

0 Kudos
Message 13 of 21
(3,233 Views)

What version of .NET is installed ?


Kudos are the best way to say thanks 🙂
0 Kudos
Message 14 of 21
(3,227 Views)

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

0 Kudos
Message 15 of 21
(3,225 Views)

If you are trying to store the contents of the web page, you could use HttpResponse. I've not done the "Save As" ...

 

Untitled.jpg


Kudos are the best way to say thanks 🙂
0 Kudos
Message 16 of 21
(3,218 Views)

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!

0 Kudos
Message 17 of 21
(3,215 Views)

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 

0 Kudos
Message 18 of 21
(3,193 Views)

I'm also very interested in seeing this work with .NET .  HttpRequest > write to excel file > save to web server..

 

0 Kudos
Message 19 of 21
(3,178 Views)

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

0 Kudos
Message 20 of 21
(2,996 Views)