Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Axapta 2009 X++ download text file from a website

I would like to download a text file from a website, given I know the URL of it.

like image 456
user733916 Avatar asked Dec 21 '25 01:12

user733916


1 Answers

There are a few examples in Axaptapedia.com, loading Web Documents. The examples use the Microsoft .NET Framework. The code below is from Axaptapedia:

public static void TEST_DownloadString (Args _args)
{
    System.Net.WebClient webClient = new System.Net.WebClient();
    ;
    info(webClient.DownloadString('http://axaptapedia.com'));
}
like image 182
ian_scho Avatar answered Dec 24 '25 10:12

ian_scho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!