SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Download file from URL

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Download file from URL
Author Message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Download file from URL Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6509

Post Reply with quote
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
Code:
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.