Example HTTP flows for administration

You can construct HTTP requests and submit them to the WebSphere® MQ Managed File Transfer Web Gateway. These examples show you sample administration requests and the corresponding HTTP responses from the Web Gateway.

You can use various technologies to submit requests to, and interpret responses from, the Web Gateway. For example, you can write a web application. For information about the example web application which is included with the Web Gateway, see Sample web page.

If you want to communicate with the Web Gateway by using a web application, you can use either HTML forms or the Javascript XMLHttpRequest function. To upload a file, you must use an HTML form, because browsers prevent Javascript from accessing files from the local system, for security reasons. The form can be controlled and submitted by Javascript if you prefer. To request the status of a transfer, XMLHttpRequest is most likely to be appropriate, although other techniques are possible; loading content into an invisible iFrame element, for example.

You can also write a client application in a language such as Ruby or Perl to communicate with the Web Gateway API.