
Attributo METHOD: Questo attributo definisce il metodo usato per
inviare dati al server.
GET e POST sono i due metodi supportati.
ENCTYPE invece non è supportato.
GET
è il metodo di default con cui un client,
tramite un browser, invia richiestead un server. Il
metodo GET invia dati al server allegando i dati
contenuti nella formall’URL dopo un punto di
domanda (?) separatore.
POST
: simile al metodo precedente. La differenza
principale è che i dati non vengono inseriti
nell’URL della richiesta, ma vengono inviati alla
fine,dopo gli header della richiesta stessa. Una
volta che il WebGate ha ricevuto una richiesta
con modalità POST, sa di dover continuare ad
“ascoltare”, dopo gli header della richiesta, i
parametri contenuti nella form.
Per ragioni di sicurezza si consiglia di
utilizzare POST invece di GET. Con il metodo
GET, infatti, tutte le informazioni appaiono
nel campo URL del browser.
Attributo NAME:
Fa sì che il programma CGI controlli i dati prima
dell’invio. Nel nostro caso, questo attributo non
viene utilizzato.
7.3.2.2 Gli elementi della form
In una form possono essere utilizzati diversi oggetti per la
personalizzazione delle informazioni inviate al server.
Oggetti della Form
Text-Box
List-Menu
Jump-Menu
Button
Check-Box
Radio-Button
Tab. 7.3.2.2.1
Text-Box:
E’ un campo nel quale l’utente può scrivere un testo
alfanumerico, come ad esempio password, nomi,
valori numerici e così via. Potete utilizzare questo tag
quando volete modificare il valore di una variabile di
rete.
List-Menu:
Questo tipo di menù è utile quando si vogliono offrire
scelte multiple in uno spazio limitato. Un esempio
potrebbe essere la selezione dei baudrate per la
comunicazione seriale da un insieme di valori
standard (1200,2400, 4800, 9600, 19200).
METHOD attribute: This attribute defines the method used to send
data to the server.
GET and POST are the two supported methods.
ENCTYPE is not supported.
GET
is the default method for a client, trough a
browser, to submit requests to a server. GET
method sends data to the server by appending the
data to the URL form itself after a question mark
(?) separator.
POST
: it is similar to the previous method: the
main difference is that data do not come into a
unique request, but after the headers of the
request itself. Once the WebGate has received a
request from a form using POST, it knows it has to
continue “listening”, after the requested headers,
the parameters contained in the form.
for the rest of information data.
The usage of POST instead of GET is
reccomended for security reason, because
using the GET method all the information
appears in the URL textbox of the browser.
NAME attribute:
This attribute is important for a CGI program to
check data before submission. This isn’t our case.
7.3.2.2 The form elements
A form generally has different objects, useful to customise information
that will be sent to the server.
FORM Objects
Text-Box
List-Menu
Jump-Menu
Button
Check-Box
Radio-Button
Tab. 7.3.2.2.1
Text-Box:
It’s a field inside which user can write an alphanumeric
text, as passwords, names, numeric values, and so on.
For example, use this tag when you want to modify a
network variable value.
List-Menu: Useful when you want to present multiple choices in a
limited space. An example maybe the selection of the
baudrates for serial communication in a set of standard
values (1200,2400, 4800, 9600, 19200).
25
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003
Fig. 7.3.2.2.1
Fig. 7.3.2.2.2