web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Simple AX / old WinInet class and DLL i...

old WinInet class and DLL in AX2012

Daniele Ferraretto Profile Picture Daniele Ferraretto

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.

Comments

*This post is locked for comments