Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

FTP.ahk doesn't work for me unless I change the code to use passive mode #6

Closed
Cerberus-tm opened this issue Dec 14, 2017 · 1 comment

Comments

@Cerberus-tm
Copy link

I'm a total layman with respect to FTP, but here is my experience. It didn't work for me when I tried the example; that is, I got files with a size of 0 bytes and other errors. It did work when I changed line 112. It was this:
this.InternetConnectFlags := 0
I changed it into this in order to use passive mode:
this.InternetConnectFlags := 0x08000000 ; Passive mode
I got the code from this forum post:
https://autohotkey.com/board/topic/68473-ftp-class-library-ftp-as-easy-as-1-2-3/page-3#entry635216
So I don't understand what passive mode does or anything, but it might be nice to have this message here as a warning to future users.

@rshipp rshipp changed the title Doesn't work for me unless I change the code to use passive mode FTP.ahk doesn't work for me unless I change the code to use passive mode May 4, 2018
rshipp added a commit that referenced this issue Nov 26, 2018
@rshipp
Copy link
Owner

rshipp commented Nov 26, 2018

Linked to this issue from the README.

@rshipp rshipp closed this as completed Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants