Jump to content



Photo

Having Some Sort Of Ssl Issue When Trying To Download Images Help Please


  • Please log in to reply
10 replies to this topic

#1 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 10:32 AM

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 thanks

Andrew

 

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")
 

 

 



#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3139 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 July 2019 - 11:41 AM

Use Heopas HTTP Get Download its got the right Security Protocol on it that should fix this error.



#3 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 11:48 AM

Helloinsomnia,

sorry lost me there what do I need to change in the code or add.

many thanks



#4 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 11:52 AM

ok do you mean use this plugin

https://network.ubot...-ini-clipboard/



#5 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 11:55 AM

ok installed that what command do I use, I cannot see get download



#6 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 12:04 PM

sorry, yes no idea what I have to change. are the green elements a paid element of the plugin



#7 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 12:31 PM

I don't have the function in the plugin - where do I get it?



#8 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3139 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 July 2019 - 12:45 PM

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")


#9 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 01:07 PM

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.



#10 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3139 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 July 2019 - 01:26 PM

Its this property: https://docs.microso...ecurityProtocol



#11 a-harvey

a-harvey

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5
  • License:Professional Edition

Posted 01 July 2019 - 01:31 PM

Thank you I will tell them to fix it.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users