old WinInet class and DLL in AX2012
Views (888)
Hi to everybody, I have use the old Wininet class and DLL declaration for access to the INET interface and create a FTP connection to download and upload files.
For some FTP site I suggest to add the PASSIVE flag as below
define constant declaration:
#define.INTERNET_FLAG_PASSIVE(0x08000000)
and in your code (example):
inet = new WinInet();
handle = inet.internetConnect(ftpServer, user,password, 21, 1, #INTERNET_FLAG_PASSIVE, 0);
About the code of class WinInet with a simple search on internet you find the class in X++. If you need ask me with a private message.
This was originally posted here.

Like
Report
*This post is locked for comments