Forms Test Http Method GET |
Hidden sessionId
An easy form with two hidden fields sent to the server
using the get method.
The first hidden field holds the constant 1
The second hidden field holds a sessionId
Identifying attribute name=form1
Attribute action=forms.asp
Result:
Two hidden fields:
Two select controls:
Build 625 problems:
Build 651 ok
Hidden sessionId and a hidden id string
Like the example above but this form contains a hidden field whose value changes after each submit.
Identifying attribute name=form2
Result:
Like the example above and a additional hidden field
Build 625 problems
Build 651 ok One hidden field and two
listboxes with multiple select enabled
Reset Button recorded
Each attribute of the first listbox is assigned an ordinal number using the attribute
value. The second listbox doesn't define any value attributes. The strings displayed have
to be submitted instead.
The structure of this form:
<form> <!--
no action attribute defined, no method attribute defined, no identifying attribute set
-->
hidden field
text field
<select multiple> <option value=1>Option1 ...
</select> <!-- values specified in the value
attribte -->
<select multiple> <option>Opt1 ...
</select>
<!-- no value attribute specified -->
</form>
Result:
Build 625 problems:
Build 651 ok
Build 652 nok
Form was submitted using WebPageUrl
Checkboxes and radiobuttons
Netscape - IExplorer 4.0 differences
Since IExplorer 4.0 the attribute disabled may be set for each control. Effect: The value of disabled controls won't be sent to the server. Netscape simply ignores the disabled attribute.
Identifying attribute name=form3
Result when using IExplorer 4.0
Result when using Netscape
Build 651 ok Build 652 nok Forms that should be ignored
by the recorder
WebPageUrl used instead of WebPageSubmit
<form action="mailto:Kligor.T@Gee.whiz.com" action="post" enctype= ".... >
The following form doesn't cause network traffic anyway.
<form action="javascript:for(i= 0; i < 10;
i++) alert(it)>
<input type="submit">
</form>
Result:
Build 652 ok
Enctype=multipart/form-data, HTTP
Method Get
Netscape and IExplorer handle this problem in a different way
The attribute enctype specifies the content type when the
value of 'method' is 'post'. Default is 'application/x-www-form-urlencoded'. Therefore,
'mulitpart/form-data' should only be used with method 'post' and an input control of type
'file'.
IExplorer and Netscape have different ways to solve this problem in conjunction with the
'get' method.
Identifying attribute name='malMultipart 1'
Result:
Build 614:
Build 651 ok
Build 652 error: Enctype=multipart/form-data, HTTP
Method Get
When using netscape the formsubmit was recored with WebPageForm instead of WebPageSubmitBin
Netscape and IExplorer handle this problem in a different way
Result: Same as above. Netscapes sends all controls using enctype 'multipart/form-data'.
IExplorer ignores the enctype uses method 'get' instead.
<form action=data2html.asp enctype=mulitpart/form-data
method=get name='malMulitpart 2'>
<input name=someText value=ACTIVE_OPEN>
<input type=submit value=Commit>
</form>
Identifying attribute name='malMultipart 2'
Result:
Build 651 ok
Build 652 error
When using netscape recording the formsubmit was recorded with WebPageForm instead of WebPageSubmitBin
Wrong attribute enctype with input type 'file'
What happens if we have an input control of type
'file' and a false enctype?
Result: Netscape and IExplorer behave the same. Default enctype
'application/x-www-form-urlencoded' will be used with methods 'post' or 'get'.
The following two forms looks like:
<form action=data2html.asp enctype=multipart/kaputt-data
method=get/post>
Identifying attribute name='malMultipart 3'
Identifying attribute name='malMultipart 4'
Build 651 ok
Build 652 ok
Forms with invalid method
Identifying attribute name=ConfusedForm1
Default enctype
Wrong http method
The form looks like:
<form action=data2html.asp method=submit>
≶input type=file name=fname>
etc...
</form>
Results:
Build 652 error:
WebPageUrl was used
Forms with invalid method
Identifying attribute name=ConfusedForm2
Mulitpart/form-data enctype
Wrong http method
The form looks like:
<form action=data2html.asp enctype=multipart/form-data method=submit>
≶input type=file name=fname>
etc...
</form>
Results:
Build 651 ok
Build 652 errors: Parameters in query string and in
the form block
When using netscape (uses in this examples method post by default) recording the upload fails
When using IExplorer (here by default method get), submitting was recorded with WebPageUrl
Value pairs attached to action string: id='random' tengo='random'
Value pairs in the form: cfm='random' quick='random'
No enctype and no method defined. Use default.
Theformlookslike:<br><formaction=data2html.asp?id='rndvalue'&tengo='rndValue'>
<input name=cfml value='rndvalue'>
etc...
</form>
Result:
Build 651 ok
Build 652 error
WebPageUrl was used
Form that only has hidden fields and one anonymous Submitbutton
The submit button below submits a form with four hidden fields.
Build 651 error.
Script couldnt be compiled
Build 652 ok