\ DriveHQ Customer Support Forum \
Đã đọc/Trả lời : 39397/3
  • omio
  • (3bài đăng)

Hi,

I've been trying to upload/download files by using Borland C++. Unfortunately it comes up with an error saying that 'socket readln aborted'. Any ideas about what the problem could be. I've tried to logon to other ftp sites using Borland and they all work fine, only seems to be the drivehq one that doesn't work. Any suggestions would be appreciated.

Cheers,

Omio


06/09/2009 9:31:52 CH

  • wacker
  • (2bài đăng)
Chủ thể: Re: Uploading a file via Borland C++
I'm having the exact same problem with AutoIT which is VB based. I can upload to all other FTP sites just not to DriveHQ. Can any1 point us in the right direction?

Hồi đáp
06/09/2009 10:33:47 CH

  • wacker
  • (2bài đăng)
Chủ thể: Uploading a file via Borland C++ solution :-)

Người dùng: wacker  -  06/09/2009 10:33:47 CH

I'm having the exact same problem with AutoIT which is VB based. I can upload to all other FTP sites just not to DriveHQ. Can any1 point us in the right direction?
I got my program to work by setting the FTP session to PASSIVE mode. Not to sure how u connect to FTP in C++ but I'm using AutoIT which uses the wininet.dll $Connection = _FTP_Connect($SessionRef, $Host, $Username, $Password, $Flag) For the 'flag' I changed it to the value of 1 for passive mode. Everything is working just fine now :-) Yay Hope this will help! Good luck!

Hồi đáp
07/09/2009 11:34:09 SA

  • omio
  • (3bài đăng)
Chủ thể: Re: Uploading a file via Borland C++ solution :-)

Người dùng: wacker  -  07/09/2009 11:34:09 SA

Người dùng: wacker  -  06/09/2009 10:33:47 CH

I'm having the exact same problem with AutoIT which is VB based. I can upload to all other FTP sites just not to DriveHQ. Can any1 point us in the right direction?
I got my program to work by setting the FTP session to PASSIVE mode. Not to sure how u connect to FTP in C++ but I'm using AutoIT which uses the wininet.dll $Connection = _FTP_Connect($SessionRef, $Host, $Username, $Password, $Flag) For the 'flag' I changed it to the value of 1 for passive mode. Everything is working just fine now :-) Yay Hope this will help! Good luck!

Hi wacker,

Thanks for the info. It helped cause it was the same problem for me (i.e. needed to turn it into passive mode connection).

Took a bit effort to get it working though since I'm using a ancient version of Borland (v4). The standard ftp object in BCB v4 doesn't have an option to connect in a passive mode. Had to download a separate component, which had that option.

Cheers.


Hồi đáp
10/09/2009 10:32:07 CH

Đánh dấu trang & Chia sẻ
Trả lời nhanh

Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003