Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.
This repository was 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

@Cerberus-tm

Description

@Cerberus-tm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions