a-harvey 0 Posted July 1, 2019 Report Share Posted July 1, 2019 Hi, I have been using a script for a while to download images from urls and name then when they are downloaded.script is attached, for some reason it just will not work with the clients new site: I am getting:Error: The request was aborted: could not create SSL/TLS secure channel.Source "file name >loop>download file. Is there anything I can do my end ? Many thanksAndrew the csv silverim.csv just has a name be that 20 in first cell and url in next clear table(&images)create table from file("C:\\Users\\Andrew\\Desktop\\silverim.csv",&images)set(#row,0,"Global")create folder($special folder("Desktop"),"SilverstoneImages")set(#path,"{$special folder("Desktop")}/SilverstoneImages/","Global")loop($table total rows(&images)) { download file($table cell(&images,#row,1),"{#path}{$table cell(&images,#row,0)}.jpg") increment(#row)}shell("perl c:\\windows\\exiftool.pl -P -r \"-title<$\{filename;s/\\.[^\\.]+$//;s/[-]/ /g;s/_/ /\}\" -r -sep \" \" -ext jpg C:\\Users\\Andrew\\Desktop\\SilverstoneImages")shell("perl c:\\windows\\exiftool.pl -artist=\"Silverstone Auctions\" -copyright=\"2019 Silverstone Auctions\" C:\\Users\\Andrew\\Desktop\\SilverstoneImages")shell("perl c:\\windows\\exiftool.pl -subject=\"Silverstone Auctions RACE RETRO SALE 23rd February 2019\" C:\\Users\\Andrew\\Desktop\\SilverstoneImages")shell("perl c:\\windows\\exiftool.pl -creator=\"Silverstone Auctions\" C:\\Users\\Andrew\\Desktop\\SilverstoneImages")shell("perl c:\\windows\\exiftool.pl -P -r \"-description<$\{filename;s/\\.[^\\.]+$//;s/[-]/ /g;s/_/ /\}\" -r -sep \" \" -ext jpg C:\\Users\\Andrew\\Desktop\\SilverstoneImages")shell("perl c:\\windows\\exiftool.pl -P -r \"-IFD0:XPSubject<$\{filename;s/\\.[^\\.]+$//;s/[-]/ /g;s/_/ /\}\" -r -sep \" \" -ext jpg C:\\Users\\Andrew\\Desktop\\SilverstoneImages")shell("perl c:\\windows\\exiftool.pl -P -r \"-IFD0:XPComment<$\{filename;s/\\.[^\\.]+$//;s/[-]/ /g;s/_/ /\}\" -r -sep \" \" -ext jpg C:\\Users\\Andrew\\Desktop\\SilverstoneImages") Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 1, 2019 Report Share Posted July 1, 2019 Use Heopas HTTP Get Download its got the right Security Protocol on it that should fix this error. Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 Helloinsomnia,sorry lost me there what do I need to change in the code or add.many thanks Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 ok do you mean use this pluginhttps://network.ubotstudio.com/forum/index.php/topic/20002-free-heopas-custom-plugin-thread-lock-sqlite-thread-variables-email-ini-clipboard/ Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 ok installed that what command do I use, I cannot see get download Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 sorry, yes no idea what I have to change. are the green elements a paid element of the plugin Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 I don't have the function in the plugin - where do I get it? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 1, 2019 Report Share Posted July 1, 2019 Try this: set(#downloadFile,$plugin function("HeopasCustom.dll", "$Heopas HTTP Get Download", $table cell(&images,#row,1), "", "", "", "", "", "{#path}{$table cell(&images,#row,0)}.jpg"),"Global") 1 Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 Thank you, that is pulling them in now.ahahhhhhhhh been trying to get it to work for hours and have a catalogue to build without any images, many thanks What exactly is the issue have they not set their headers correctly. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 1, 2019 Report Share Posted July 1, 2019 Its this property: https://docs.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager.securityprotocol?view=netframework-4.8#System_Net_ServicePointManager_SecurityProtocol Quote Link to post Share on other sites
a-harvey 0 Posted July 1, 2019 Author Report Share Posted July 1, 2019 Thank you I will tell them to fix it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.