LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I download a file over the internet from a WebDAV server?

I am trying to download a file over the internet from a WebDAV server. I've tried doing it with Datasocket as suggested in these articles,
<a href="http://digital.ni.com/public.nsf/websearch/f3cc5f7e60a75cb2862567e700696abf?opendocument">Retrieving an Unformatted Text File via FTP or HTTP Using DataSocket</a>
<a href="http://digital.ni.com/public.nsf/websearch/4FA09E7B3674DA34C1256BD400555C41?OpenDocument">Download a Text File from a Password Protected URL Using DataSocket</a>
but all I get is error 1181 (protocol unrecognized by Datasocket).

I know I have the URL correct, because I can put it into a web browser and it works fine - I can download the file manually.
But I want to have a LabVIEW program do the download automatically.

I have the internet toolkit, but don't have the foggiest clue how to use it, and am using LabVIEW 7.1

I am a bit out of my depth here, so any advice welcome.

Regards,
Mark.
0 Kudos
Message 1 of 4
(3,379 Views)
MIG,
What is the URL to the website? Is it an FTP site? The articles you referenced are for specific transfer protocols. If the stie you're trying to get to doesn't follow these protocols, then you'll get the error you're seeing. You may have to use ActiveX to control IE and download the files programmatically.
 
Chris C
Message 2 of 4
(3,364 Views)
Hi Chris,

Thanks fot the reply.
No, it's not a ftp site, the URL starts with https://

I didn't think of using ActiveX to control internet explorer but maybe that would be a better way of doing it.
Of course, I know as little about ActiveX as I do about the internet stuff, so I may be none the wiser, but I'll have a play around with it.

Thanks,
Mark.

0 Kudos
Message 3 of 4
(3,363 Views)
0 Kudos
Message 4 of 4
(3,341 Views)