 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
Download file from URL |
|
I need to download a file from a URL that prompts for username and password.
I tried to use WebGetFile but not having any luck. No file is downloaded.
Is this the correct command? Can someone provide a syntax example?
Thanks
Rob
|
|
Tue Dec 06, 2016 11:01 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
You should use either WebGetDataWithLogin or WebPostDataWithLogin.
As for the example, much depends on the site login implementation method and specific login tokens. In a simple case, it might be something like
 |
 |
WebGetDataWithLogin "http://mysite/login.htm", "user=MyUserName&password=MyPassword", "error,invalid,unknown", "http://mysite/files/somefile.zip", "application/zip", "C:\\data\\files\\somefile.zip", "http://mysite/login.htm" |
For help with parameters please see page 150 in the JAL Reference http://www.softtreetech.com/24x7/24x7JALScript.pdf
|
|
Tue Dec 06, 2016 3:57 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|