Downloading pdf file from HTTP URL

In some cases we need to download PDF files from HTTP URL’s, below are two functions that can be used in Navision to download a PDF file from HTTP URL’s (which does not require authentication).

DownloadPDF

Sample Code:

HTTP_WebClient

Some website might require a credential, in that case, we can add additional code to pass the credentials using –¬†System.Net.NetworkCredential.

Please do let me know your suggestion and share this post. Thanks

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s