Maybe create a lib connection for http://URL called say YourURL and then use it the script as :
Thus adding your variable to the end of the lib connection within the script.
I do have the same issue here, I ran below script but had an issue.. I'll be grateful if you check and let me know
for each vFile in FileList('lib://QlikData/*.qvd')
Load '$(vFile)' as FName,
FileTime( '$(vFile)' ) as FileTime
1 as dummy
Order By FileTime DESC;
drop table Files;
Load * from [lib://QlikData/'$(vMaxFile)'](qvd);
It doesn't load any file, the error is :
The following error occurred:
Cannot open file: 'lib://QlikData/'''