\ DriveHQ Customer Support Forum \
已读/回复 : 38374/3
  • omio
  • (3帖子)

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


2009/9/6 21:31:52

  • wacker
  • (2帖子)
主题: 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?

回复
2009/9/6 22:33:47

  • wacker
  • (2帖子)
主题: Uploading a file via Borland C++ solution :-)

User: wacker  -  2009/9/6 22:33:47

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!

回复
2009/9/7 11:34:09

  • omio
  • (3帖子)
主题: Re: Uploading a file via Borland C++ solution :-)

User: wacker  -  2009/9/7 11:34:09

User: wacker  -  2009/9/6 22:33:47

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.


回复
2009/9/10 22:32:07

收藏并分享
快速回复

请 登录 回复如下: 还不是DriveHQ会员?


Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003