Mike,
Both methods are pretty equal. The traffic is all over HTTPS, so "data in transit" is encrypted. The appkey obfuscates a bit more, as the username isn't required (although is derived on the server side, as the key is unique). Really, it's down to preference and ease of use.
Sean
Incorrect File Size for Aqua, Terra and VIIRS SST and Chl files
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
-
- Posts: 22
- Joined: Wed Jan 27, 2021 1:52 pm America/New_York
Re: Incorrect File Size for Aqua, Terra and VIIRS SST and Chl files
Mark,
I believe if you use the curly braces with the variables, it delineates the variable context:
${listfiles[n]}?appkey=app-key-value
Ex:
produces:
$ ./test.csh
file1 file2 file3
getfile/file1?appkey=abc123
getfile/file2?appkey=abc123
getfile/file3?appkey=abc123
john
I believe if you use the curly braces with the variables, it delineates the variable context:
${listfiles[n]}?appkey=app-key-value
Ex:
Code: Select all
#!/usr/bin/tcsh
set arr=( "file1" "file2" "file3" )
echo ${arr}
@ i = 1
while ($i <= ${#arr})
echo "getfile/${arr[$i]}?appkey=abc123"
@ i++
end
$ ./test.csh
file1 file2 file3
getfile/file1?appkey=abc123
getfile/file2?appkey=abc123
getfile/file3?appkey=abc123
john