We are working on converting the wiki to a static website controlled by markdown files in https://github.com/nsis-community. You can already see there how plug-ins will be posted. The end-user interface will still be a website but with a fresh coat of paint. Come meet us at Discord to talk about it.
Internet plug-in
From NSIS Wiki
Jump to navigationJump to search
| Author: Joel (talk, contrib) |
Links
Main
Internet.zip (11 KB)
Description
Handy functions related to the internet:
- Get the host name of the local machine.
- Get the IP of the local machine.
- Get the status code of urls. For example 404 code is for urls that don't exist.
Functions
GetLocalHostName
Internet::GetLocalHostName return_var
- Returns the name of your local host.
GetLocalHostIP
Internet::GetLocalHostIP return_var
- Returns the IP of the machine were is running the plugin.
GetUrlCode
Internet::GetUrlCode "site" "file" return_var
- Returns the status code of a input url to see if a file exists in the server. See the status code page.
- Note: remove the "http" or "ftp" in your links. For example: if you url is "http://www.loco.com/file.zip" then you should input "www.loco.com" as the site and "file.zip" as file.