How to download a file from an https URL ?
Posted 02 April 2012 - 04:07 PM
Hopefully one of you gurus out there can help out by pointing me in the right direction.
Details: I'm trying to use google docs API to retrieve a document from a collection.
What I have accomplished so far: I'm able to successfully retrieve the path to a file in the collection! The problem I'm running into is when I attempt to download the file to my local machine.
I've been trying to use LabVIEW's datasocket for such task (attempting to download the file from the internet), however, have not been successful at it.
During my manual tests (just using the datasocket vis) what I have noticed is that if I use the datasocket with any URL (as long as it is not "secure" -https- all works as expected. However, if I try to use the datasocket with a secured URL (https) then I get an 1181 error everytime.
If datasocket is not the right approach for this, may I ask what would it be? are there any VIs out there that I could use to download my files? e.g GET_FILE_FROM_HTTPS or similar?
I look forward to your suggestions.
Posted 03 April 2012 - 09:07 AM
Do you know what other options I would have if datasocket is not the right tool ?
No, but I never did any work with this. I see that my copy of LV 2011 has an HTTP client palette which also seems to have support for SSL, so it's possible that it will know how to work with HTTPS, but that's just a guess.
Posted 06 April 2012 - 06:44 PM
Best of luck!