3 Replies - 252 Views - Last Post: 26 December 2017 - 09:22 AM Rate Topic: -----

#1 greatchap   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 31-March 09

Unable to download file from https server

Posted 26 December 2017 - 12:36 AM

Hello Everyone,

I download file from my website using url: https://www.example.com/abc.txt and through my.computer.network.downloadfile command.

However it is working fine in all version of Windows except XP. In Windows XP it gives error connection was closed by server or something.

What can I do ? How to solve it ?

Regards,
GR

Is This A Good Question/Topic? 0
  • +

Replies To: Unable to download file from https server

#2 andrewsw   User is online

  • Bouncy!
  • member icon

Reputation: 6563
  • View blog
  • Posts: 26,619
  • Joined: 12-December 12

Re: Unable to download file from https server

Posted 26 December 2017 - 12:46 AM

Quote the exact error message. Provide some relevant code as well, between code tags.
Was This Post Helpful? 0
  • +
  • -

#3 greatchap   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 31-March 09

Re: Unable to download file from https server

Posted 26 December 2017 - 01:23 AM

Exact error message is :
"The underlying connection was closed. An unexpected error occurred on a send."

Code is :
 My.Computer.Network.DownloadFile("https://www.example.com/abc.txt", "abc.txt")


Was This Post Helpful? 0
  • +
  • -

#4 Radius Nightly   User is offline

  • D.I.C Regular

Reputation: 33
  • View blog
  • Posts: 291
  • Joined: 07-May 15

Re: Unable to download file from https server

Posted 26 December 2017 - 09:22 AM

System.Net.WebClient.DownloadFile?
For various reasons i drop support for XP.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1