09-17-2015 05:44 AM
Hi All,
I am trying to download files from a server using the Data Socket functions. I tried using the URL
**http://stb.site90.com/Plugins/LV GUI (CE).zip*[text] on the Data socket input terminal and was able to download the corresponding file (Code Attached ). But on copying the URL to browser (Google Chrome) the address bar displayed it as
**http://stb.site90.com/Plugins/LV %20GUI%20(CE).zip*[text].
I discovered that the browser tends to replace certain special characters in the URL with their corresponding UTF-8 codes.
*[text] is appeneded to the URL so that Data Socket functions returns the output in unformatted text.
**Please use a public URL. The above URL is provided just for a reference.
Regards,
S.P.Prasaanth
Solved! Go to Solution.
09-17-2015 05:50 AM - edited 09-17-2015 05:50 AM
Hi Prasaanth,
LabVIEW comes with ready-to-use functions to convert from and to "escaped" URLs.
Open QuickDrop and type "URL": you will easily find "Escape HTTP URL" and "Unescape HTTP URL". Then study their block diagram to know how they work and which chars get replaced by %-codes…
09-17-2015 06:04 AM
Hi GerdW,
Thanks for the reply.
I have clarification to make; I am able to download the file even if I give the URL as such. But are there any possible cases in which, presence of special characters will cause issue with Data Socket functions. If any please let me know, so that I could integrate the module you mentioned into my code.
Regards,
S.P.Prasaanth
09-17-2015 06:59 AM
Hi Prasaanth,
read this! It's not specific to DataSocket, not even to LabVIEW. It describes the standard used to encode URLs…