Hello,
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.
Cheers,
How to download a file from an https URL ?
Started by
nitulandia
, Apr 02 2012 04:07 PM
4 replies to this topic
#1
Posted 02 April 2012 - 04:07 PM
#2
Posted 02 April 2012 - 04:47 PM
There certainly is code which interacts with Google Docs, but I don't know if any of it allows you to download files. Here's one example - https://decibel.ni.c.../docs/DOC-15430
#3
Posted 02 April 2012 - 05:08 PM
Hi Yair,
Yes, I had looked at this as well. In the example referenced above they use the datasockets, which is what I'm trying to use.
Do you know what other options I would have if datasocket is not the right tool ?
Yes, I had looked at this as well. In the example referenced above they use the datasockets, which is what I'm trying to use.
Do you know what other options I would have if datasocket is not the right tool ?
#4
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.
#5
Posted 06 April 2012 - 06:44 PM
This is from an NI applications engineer: "it looks like you're going to need the Internet Toolkit. You can download an evaluation version here and try it out before purchasing."
http://sine.ni.com/n...ang/en/nid/2501
Best of luck!
Jeff S.
Applications Engineer
National Instruments
http://sine.ni.com/n...ang/en/nid/2501
Best of luck!
Jeff S.
Applications Engineer
National Instruments












