HTTP Put
- Last Updated: November 28, 2024
- 1 minute read
- MOVEit Automation
- Version 2024.1
- Version 2024
- Documentation
HTTP Put uploads a file to a website, using HTTP[S] with the PUT verb.
Note:
PUT is not the usual way to upload files, and is not accepted by many websites. The
HTTP Post script might work as an alternative for these sites. However, when available, the HTTP PUT technique is preferable because it is simpler.
Use this script like a destination, as a per-file process. Typically you would use this in a task with one or more sources.
Input Parameters
- HTTP_URL (Required) - The URL of the folder to upload to; for example, https://myserver/reports. Can include macros.
- HTTP_IgnoreCertProblems - Whether to ignore problems with the remote server certificate (such as signer not trusted). Default is False.
- HTTP_User - The username, for HTTP authentication.
- HTTP_Password - The password, for HTTP authentication.
- HTTP_DestFilename - The destination filename. If not specified, the original filename is used.
- HTTP_MaxFileSizeMB - If a file is larger than the specified number of (MB), then skip that file and signal an error. Default 100; max value 500.
Notes
HTTP Put works only when the website requires either no authentication, or HTTP authentication.
HTTP Put does not work for websites that require the user to sign on via a web form to authenticate.
To enable PUT on a remote webserver running Microsoft IIS 6.0, use IIS Manager on that webserver to enable the WebDAV Web Service Extension, and turn on Write access to the virtual directory.
This script is not suitable for files larger than a few dozen megabytes, because it loads the entire file into memory before saving it.