Thanks for the reference to the MS error code. After ensuring that the time on the remote PC was correct, we ran a SFC /scannow on it (recommendation from the MS KB), which found no issues, but apparently reset the certificate database that the installer took issue with enough that the next time the opener ran, it completed successfully without having to scrub everything GTA off the PC and install the standalone.
The method will not throw an error when any valid HTTP status code is returned by the remote server, including 404 "Not Found" and 500 "Internal Server Error". The status code for such responses can be retrieved by calling response.status().
HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will complete with page.on('requestfinished') event and not with page.on('requestfailed'). A request will only be considered failed when the client cannot get an HTTP response from the server, e.g. due to network error net::ERR_FAILED.
In HTTP, redirection is triggered by a server sending a special redirect response to a request. Redirect responses have status codes that start with 3, and a Location header holding the URL to redirect to.
Returns action: 'deny' action: 'allow', outlivesOpener?: boolean, overrideBrowserWindowOptions?: BrowserWindowConstructorOptions - deny cancels the creation of the newwindow. allow will allow the new window to be created. Specifying overrideBrowserWindowOptions allows customization of the created window.By default, child windows are closed when their opener is closed. This can bechanged by specifying outlivesOpener: true, in which case the opened windowwill not be closed when its opener is closed.Returning an unrecognized value such as a null, undefined, or an objectwithout a recognized 'action' value will result in a console error and havethe same effect as returning action: 'deny'.
prot p sets data connections to be protected (encrypted);
prot c sets data connections to be cleartext (unencrypted). tls-c-ccc like "tls-c", except that after signon, the CCC command is sent to switch the control connection to unencrypted mode. Data connections will not be encrypted. See the above discussion of "on-ccc". implicit encrypts both connections without the use of an AUTH command; usually to port 990. implicit-ccc the same as "implicit", except that after signon, the CCC command is sent to switch the control connection to unencrypted mode. Data connections will be encrypted. See the above discussion of "on-ccc".
- -n to not prompt for username and password at startup.
- -natact:ip to use ip as our IP address in "Client NAT" mode in active (as opposed to passive) FTP mode. See Client NAT.
- -natpasv to ignore the IP address in the PASV reply in "Client NAT" mode when in passive FTP mode. Instead, use the address of the control connection. See Client NAT.
- -password:pw is the default password. If this is not specified, the program will prompt for a password upon initial connect.
- -pfxfile:filename specifies a file from which a client certificate is to be read. The first private certificate in the file will be used. This is an alternative to the -ccn parameter, for when the client certificate is not installed in a Windows store. The filename must be in .PFX format (also known as .P12 format). If the file is protected by a password, use the -pfxpw parameter.
- -pfxpw:password specifies the password to be used with -pfxfile. See also -pfxpwfile.
- -pfxpwfile:filename specifies the name of a file that contains the password to the file given by -pfxfile. Do not use both -pfxpw and -pfxpwfile.
- -ports:low-high specifies the port range to use on the client side of TCP data connections. For example, you might specify -ports:8000-8009. MOVEit Freely will restrict the port numbers it uses to be greater than or equal to low, and less than or equal to high. For active mode, this restricts the port numbers sent by the PORT command. For passive mode, this controls the port number of the originating end of the connection. This very rarely used option exists to accommodate highly restrictive firewall rules. Without this option, MOVEit Freely will allow the operating system to choose port numbers.
- -quiterror to quit on any error. This will exit a script file without reading any more commands.
- -resume to attempt to resume transfers if the destination files exist.
- -s:filename to read commands from a script file (do not use redirection). The default is to read commands from the console.
- -t:data_timeout_secs to set the data socket timeout in seconds. This applies to both the amount of time to wait for the server to connect back (on a non-passive data port), and the amount of time to wait without data before declaring a data socket dead. The default is 120 seconds.
- -user:username is the default username. If this is not specified, the program will prompt for a username upon initial connect.
- -z to not warn about problems with FTP server certificates, instead accepting any certificate. By default, if there is a problem with a certificate, MOVEit Freely will display a dialog, asking whether you want to accept the certificate. The most common problem is that a certificate was issued by a non-trusted certification authority, as happens with test certificates.
hostname is the domain name or numeric IP address of an FTP server.
MOVEit Freely will return an exit value of zero (0) if no errors occurred during theprocessing of a file transfer session. See the example below for a batch file that checksthe return code for errors. Several different exit codes are returned by MOVEit Freely.
1 is returned for syntax errors in the command line parameters.
2 is returned if the -s: parameter points to a file or directory that does not exist.
3 is returned if any command during the session caused an error, either a4xx or 5xx response from the server or a syntax or file error detected by MOVEit Freely itself.
13 is returned if the -s: parameter points to a file whose sharing mode does notallow read access, or if the path is a directory, not a file.
If the -quiterror parameter is specified, MOVEit Freely will exit immediately with anexit code of 3 as soon as an error occurs without reading any more commands from the script fileor console.
Resuming TransfersThe -resume parameter can be used to cause MOVEit Freely to attempt to resume a transferthat may have been interrupted in a previous execution. Specifying -resume will change theway that get and put (also mget/mput) work. Resuming transfers requires support on thecorresponding FTP server, but not all server implementations have that support. Here ishow the -resume parameter works:When a
get operation is performed,MOVEit Freely will first check to see if there is already a local file present. If so, a"REST xxxxx" command is sent to the server with "xxxxx" being the size in bytes of local copyof the file. Then, when the file is transferred, the first "xxxxx" number of bytes are skippedby the server and MOVEit Freely will write the data sent to the end of the local file.When a
put operation is performs, MOVEit Freely will first send a "SIZE (filename)"command to the server to ask for the number of bytes in the file. Next, MOVEit Freely willsend a "REST xxxxx" command is to the server with "xxxxx" being the number of bytes to skipwhen the transfer takes place. The server is responsible for writing the data to the endof the file.It is important to note that use of the -resume parameter will cancel the ability of MOVEitFreely to overwrite a file if it already exists. A destination file, if it exists, is assumed to bea partially transferred version of the source file. If you often transfer different versionsof a file with the same name with overwrite, do not use -resume.When MOVEit Freely "file integrity mode" is used with MOVEit Transfer, a partial transfer that iscompleted by using the -resume parameter is verified, by checksum, that the entire destination filematches the source file.When using -resume for
put operations with MOVEit Transfer, only files that havebeen detected by MOVEit Transfer as previously incomplete transfers can be resumed. That is, afile which was completely received by MOVEit Transfer cannot be extended using the -resume feature.
CommandsOnce MOVEit Freely is started, it prompts for and reads single-line commands. Thecommands are read from the console, or from the script filename if the -sparameter has been specified on the command line. If the -quiterror parameter has beenused and an error is encountered, (either a 4xx or 5xx response from the server or a syntaxor file error detected by MOVEit Freely itself), MOVEit Freely will exit without readingany more commands from the console or script file.
This batch file checks the exit code from MOVEit Freely to see if any errors occurred. The-quiterror parameter will make the program exit as soon as there is an error without reading any morecommands from the script file.ftps -user:dave -password:super -quiterror -s:script.txt myhostif %ERRORLEVEL%==0 goto greatecho ftps returned error code: %ERRORLEVEL%if %ERRORLEVEL%==3 goto outif %ERRORLEVEL% GEQ 1 goto oopsecho Unknown File Transfer Problemgoto done:oopsecho Error in File Transfer syntaxgoto done:outecho An error occurred in the File Transfergoto done:greatecho The File Transfer completed successfully:doneSecure FTP Host to Insecure FTP HostIncluded with this documentation is a longer script example ("samplecopy.bat") which retrieves all the files from a folder on a secure FTP server and places them into a folder of an insecure FTP server.
df19127ead