LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing dotnet HttpWebRequest support?

I was hoping to use the dotnet HttpWebRequest and HttpWebResponse methods that are part of the System.Net namespace in LabVIEW like I can in C# but when I look within the System.Net constructor under those names I just find for them "This class contains no public constructors." 

Am I looking in the wrong place or are these not implemented in LabVIEW (11.0.1f1)?

httpwebresponse.png

 

Thanks!

0 Kudos
Message 1 of 2
(2,779 Views)

As far as I can tell the constructors for HttpWebResponse and HttpWebRequest have been deprecated since .NET 1.1 - see here for details: http://msdn.microsoft.com/en-us/library/kc8dsx61.aspx.

 

Microsoft's documentation says to use WebRequest.Create and WebRequest.GetResponse instead, in LabVIEW this would look like this:

 

Screen Shot 2012-07-09 at 10.19.18 AM.png

(VI attached)

 

Hope this helps.

 

Simon

 

 

 

 

 

0 Kudos
Message 2 of 2
(2,776 Views)