Cisco Cisco Configuration Engine 3.5.3 Guida Dello Sviluppatore

Pagina di 348
3-8
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5.3
OL-17661-04
Chapter 3      Configuration Service
Template File Manager
Examples
The following section contains Client, XML Request, and Response examples.
Client Examples
This section contains Client examples in HTML and Java.
HTML
Below is a simple HTML example of posting an XML file to the TFM (Template File Manager) servlet 
using the multipart/form-data MIME content type.
<HTML>
  <HEAD>
    <TITLE>
     Template File Manager Client
    </TITLE>
  </HEAD>
  <BODY>
    <CENTER>
      <FORM METHOD="POST"
            ENCTYPE="multipart/form-data"
            ACTION="http://beethoven/cns/CommandProcessor">
        <p>
          Browse to a <B>cns-request</B> XML document
          <br>to POST to the CommandProcessor:
        </p>
        <INPUT NAME="command" TYPE="file"><BR><BR>
        <INPUT TYPE="submit">
        <INPUT TYPE="reset">
      </FORM>
    </CENTER>
  </BODY>
</HTML>