Network API
The Network API calls simplify networking with the goal of minimizing the amount and complexity of code in your application.
net_download_file
Download a file located at a URL on the network
Parameter Descriptions
| Name | Type | Default | Description |
|---|---|---|---|
| encoding | str | utf-8 | Encoding data is in. If binary set to '' |
| raise_exception_on_error | bool | False | If True, pass back error by raising an exception |
| url | str | The address of the file | |
| RETURN | None or str or bytes | The file contents. Returns None if an error happened |
net_download_file_binary
Download a binary file located at a URL on the network. Can also use the plain download_file to accomplish
Parameter Descriptions
| Name | Type | Default | Description |
|---|---|---|---|
| url | str | The address of the file | |
| RETURN | None or bytes | The file contents. Returns None if an error happened |