| FILENAME RESTRICTION
There is a restriction on the filename you can
use to send in a file. An upload filename can be 1 to 32 characters.
A filename can be one name segment or a series of joined name segments.
The filename can be composed of alphanumeric (a-z,A-Z,0-9) and a period,
dash or an underscore. The period, dash or underscore cannot be repeating
nor be the first character of the filename. In other words, the period,
dash or underscore is used to separate alphanumeric characters for legibility.
The filename is case insensitive. The total length of the data set name,
including all name segments and periods, must not exceed 32 characters.
|
| HTTP_GET
This is a command line HTTP file grabber. It is made available here for the convenience of DES users. This is a 32 bit Microsoft NT and Windows 95 program. It will operate through a proxy service and can communicate using Secure Socket Layer (SSL). This program defaults to copying the file specified in the command line URL to the console screen. You may, optionally, supply a filename to send it to a local file. File size is limited only by local disk space. A second program, HTTP_PUT.EXE and its source code, is also provided. This program operates like HTTP_GET.EXE but uses the "PUT" request to send files to a web server. 7/26/99 There is a new version of HTTP_PUT.EXE that fixes a problem with IE5. The IE4 and before DLLs could not send large files so there was a work-around. IE5 corrected the bugs but make the work-around fail. If you still have IE4 or earlier versions, you do not need this new version. If you still download this version for use with IE4 or earlier versions, you will need to set an environment switch. You simply add an environment variable named "FLPATCH" to turn the old code back on. SET FLPATCH = anything |
USAGE: HTTP_GET URL [filename] where: URL is in the form http://server/filename or https://server/filename for SSL. [filename] is an optional local save filename. Environment Variables that may be used: HTTP_USER - Service Authentication User ID. HTTP_PASSWORD - Service Authentication Password. PROXY - Proxy in form: http://proxy:80 PROXY_USER - Authentication User ID for proxy. PROXY_PASSWORD - Authentication Password for proxy. Example: The following commands get file ESP123.991223012333 from ESP's outbound directory. C:\TEST>set HTTP_USER=espid C:\TEST>set HTTP_PASSWORD=esppass C:\TEST>http_get https://mads.pge.com/m/nph-mads.exe?ESP/ESP.9912233012333 The following commands send in a file to ESP upload directory. C:\TEST>set HTTP_USER=espid C:\TEST>set HTTP_PASSWORD=esppass C:\TEST>http_put https://mads.pge.com/m/nph-mads.exe?ESP/file1.txt file1.txt |
| DOWNLD
This is a command line MADAWG HTTP directory downloader. It is made available here for the convenience of DES users. This is a 32 bit Microsoft NT and Windows 95 program. It will operate through a proxy service and can communicate using Secure Socket Layer (SSL). DOWNLD.EXE requires two command line parameters, a MDMA service URL and the name of a local directory to store the downloaded files in. It operates by fetching the "dir" file from the target MDMA server to determine which files to download. The format of the MDMA service URL is conventional. Some examples are:
DOWNLD.EXE creates a file in the default directory to retain file download status between runs. The name of this file is formed by using the directory name paramter from the command line and adding the extension ".dir". (Only that part of the directory name up to the first slash will be used.) This file is updated each time a file is downloaded so a file will be downloaded only once. An additional file named "index.dat" is created in the target directory. This file contains comma separated ASCII text lines of filename, file size, and file creation time in "CCYYMMDDHHMMSS" format. It contains a list of downloaded files that currently exist in the directory. It is updated each time a file is downloaded but only after download is completed successfully. Entries for previously downloaded files that have been deleted from the target directory by other processes are deleted from this file at each time "index.dat" is updated by "DOWNLD.EXE". The operation of "DOWNLD.EXE" is potentially complex. To assist in troubleshooting problems, some debugging aids are built in. They are activated with command line switches. They are as follows: "-d" - do not delete intermediate files.
"-v" - set verbose mode.
|
Usage: DOWNLD URL dir-name where: URL is in the form http://server/directory or https://server/filename for SSL. dir-name is the name of a subdirectory to receive downloaded files. Environment Variables that may be used: HTTP_USER - Service Authentication User ID. HTTP_PASSWORD - Service Authentication Password. PROXY - Proxy in form: http://proxy:80 PROXY_USER - Authentication User ID for proxy. PROXY_PASSWORD - Authentication Password for proxy. Example: The following commands retrieve any new files from ESP's outbound directory to local RESPONSE directory. C:\TEST>md RESPONSE C:\TEST>set HTTP_USER=espid C:\TEST>set HTTP_PASSWORD=esppass C:\TEST>downld https://mads.pge.com/m/nph-mads.exe?ESP RESPONSE |
Services, such as DES, that require a basic User ID and Password may be accessed by supplying environment variables "HTTP_USER" and "HTTP_PASSWORD". HTTP_GET.EXE, HTTP_PUT.EXE, and DOWNLD.EXE will use these strings for authentication. Services may also be accessed through a proxy service if necessary. Supply the proxy service name and port number using the "PROXY" environment variable. If your proxy requires a User Id and Password, they may be supplied using the "PROXY_USER" and "PROXY_PASSWORD" environment variables. These programs are supplied as a courtesy by PG&E. They are available for test purposes only. No warranty of safety, reliability, functionality, or suitability is made or implied. Thank you.
|
