diamond-mechanize 2.1 → 2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- metadata +222 -167
- data/Rakefile +0 -49
- data/lib/mechanize/content_type_error.rb +0 -13
- data/lib/mechanize/cookie.rb +0 -232
- data/lib/mechanize/cookie_jar.rb +0 -194
- data/lib/mechanize/download.rb +0 -59
- data/lib/mechanize/element_matcher.rb +0 -36
- data/lib/mechanize/file.rb +0 -65
- data/lib/mechanize/file_connection.rb +0 -17
- data/lib/mechanize/file_request.rb +0 -26
- data/lib/mechanize/file_response.rb +0 -74
- data/lib/mechanize/file_saver.rb +0 -39
- data/lib/mechanize/form/button.rb +0 -6
- data/lib/mechanize/form/check_box.rb +0 -12
- data/lib/mechanize/form/field.rb +0 -54
- data/lib/mechanize/form/file_upload.rb +0 -21
- data/lib/mechanize/form/hidden.rb +0 -3
- data/lib/mechanize/form/image_button.rb +0 -19
- data/lib/mechanize/form/keygen.rb +0 -34
- data/lib/mechanize/form/multi_select_list.rb +0 -94
- data/lib/mechanize/form/option.rb +0 -50
- data/lib/mechanize/form/radio_button.rb +0 -55
- data/lib/mechanize/form/reset.rb +0 -3
- data/lib/mechanize/form/select_list.rb +0 -44
- data/lib/mechanize/form/submit.rb +0 -3
- data/lib/mechanize/form/text.rb +0 -3
- data/lib/mechanize/form/textarea.rb +0 -3
- data/lib/mechanize/form.rb +0 -543
- data/lib/mechanize/headers.rb +0 -23
- data/lib/mechanize/history.rb +0 -82
- data/lib/mechanize/http/agent.rb +0 -1004
- data/lib/mechanize/http/auth_challenge.rb +0 -59
- data/lib/mechanize/http/auth_realm.rb +0 -31
- data/lib/mechanize/http/content_disposition_parser.rb +0 -188
- data/lib/mechanize/http/www_authenticate_parser.rb +0 -155
- data/lib/mechanize/http.rb +0 -8
- data/lib/mechanize/monkey_patch.rb +0 -16
- data/lib/mechanize/page/base.rb +0 -7
- data/lib/mechanize/page/frame.rb +0 -27
- data/lib/mechanize/page/image.rb +0 -30
- data/lib/mechanize/page/label.rb +0 -20
- data/lib/mechanize/page/link.rb +0 -98
- data/lib/mechanize/page/meta_refresh.rb +0 -68
- data/lib/mechanize/page.rb +0 -440
- data/lib/mechanize/parser.rb +0 -173
- data/lib/mechanize/pluggable_parsers.rb +0 -144
- data/lib/mechanize/redirect_limit_reached_error.rb +0 -19
- data/lib/mechanize/redirect_not_get_or_head_error.rb +0 -21
- data/lib/mechanize/response_code_error.rb +0 -21
- data/lib/mechanize/response_read_error.rb +0 -27
- data/lib/mechanize/robots_disallowed_error.rb +0 -28
- data/lib/mechanize/test_case.rb +0 -663
- data/lib/mechanize/unauthorized_error.rb +0 -3
- data/lib/mechanize/unsupported_scheme_error.rb +0 -6
- data/lib/mechanize/util.rb +0 -101
- data/lib/mechanize.rb +0 -1079
- data/test/data/htpasswd +0 -1
- data/test/data/server.crt +0 -16
- data/test/data/server.csr +0 -12
- data/test/data/server.key +0 -15
- data/test/data/server.pem +0 -15
- data/test/htdocs/alt_text.html +0 -10
- data/test/htdocs/bad_form_test.html +0 -9
- data/test/htdocs/button.jpg +0 -0
- data/test/htdocs/canonical_uri.html +0 -9
- data/test/htdocs/dir with spaces/foo.html +0 -1
- data/test/htdocs/empty_form.html +0 -6
- data/test/htdocs/file_upload.html +0 -26
- data/test/htdocs/find_link.html +0 -41
- data/test/htdocs/form_multi_select.html +0 -16
- data/test/htdocs/form_multival.html +0 -37
- data/test/htdocs/form_no_action.html +0 -18
- data/test/htdocs/form_no_input_name.html +0 -16
- data/test/htdocs/form_order_test.html +0 -11
- data/test/htdocs/form_select.html +0 -16
- data/test/htdocs/form_set_fields.html +0 -14
- data/test/htdocs/form_test.html +0 -188
- data/test/htdocs/frame_referer_test.html +0 -10
- data/test/htdocs/frame_test.html +0 -30
- data/test/htdocs/google.html +0 -13
- data/test/htdocs/index.html +0 -6
- data/test/htdocs/link with space.html +0 -5
- data/test/htdocs/meta_cookie.html +0 -11
- data/test/htdocs/no_title_test.html +0 -6
- data/test/htdocs/noindex.html +0 -9
- data/test/htdocs/rails_3_encoding_hack_form_test.html +0 -27
- data/test/htdocs/relative/tc_relative_links.html +0 -21
- data/test/htdocs/robots.html +0 -8
- data/test/htdocs/robots.txt +0 -2
- data/test/htdocs/tc_bad_charset.html +0 -9
- data/test/htdocs/tc_bad_links.html +0 -5
- data/test/htdocs/tc_base_link.html +0 -8
- data/test/htdocs/tc_blank_form.html +0 -11
- data/test/htdocs/tc_charset.html +0 -6
- data/test/htdocs/tc_checkboxes.html +0 -19
- data/test/htdocs/tc_encoded_links.html +0 -5
- data/test/htdocs/tc_field_precedence.html +0 -11
- data/test/htdocs/tc_follow_meta.html +0 -8
- data/test/htdocs/tc_form_action.html +0 -48
- data/test/htdocs/tc_links.html +0 -19
- data/test/htdocs/tc_meta_in_body.html +0 -9
- data/test/htdocs/tc_pretty_print.html +0 -17
- data/test/htdocs/tc_referer.html +0 -16
- data/test/htdocs/tc_relative_links.html +0 -19
- data/test/htdocs/tc_textarea.html +0 -23
- data/test/htdocs/test_click.html +0 -11
- data/test/htdocs/unusual______.html +0 -5
- data/test/test_mechanize.rb +0 -1164
- data/test/test_mechanize_cookie.rb +0 -451
- data/test/test_mechanize_cookie_jar.rb +0 -483
- data/test/test_mechanize_download.rb +0 -43
- data/test/test_mechanize_file.rb +0 -61
- data/test/test_mechanize_file_connection.rb +0 -21
- data/test/test_mechanize_file_request.rb +0 -19
- data/test/test_mechanize_file_saver.rb +0 -21
- data/test/test_mechanize_form.rb +0 -875
- data/test/test_mechanize_form_check_box.rb +0 -38
- data/test/test_mechanize_form_encoding.rb +0 -114
- data/test/test_mechanize_form_field.rb +0 -63
- data/test/test_mechanize_form_file_upload.rb +0 -20
- data/test/test_mechanize_form_image_button.rb +0 -12
- data/test/test_mechanize_form_keygen.rb +0 -32
- data/test/test_mechanize_form_multi_select_list.rb +0 -84
- data/test/test_mechanize_form_option.rb +0 -55
- data/test/test_mechanize_form_radio_button.rb +0 -78
- data/test/test_mechanize_form_select_list.rb +0 -76
- data/test/test_mechanize_form_textarea.rb +0 -52
- data/test/test_mechanize_headers.rb +0 -35
- data/test/test_mechanize_history.rb +0 -103
- data/test/test_mechanize_http_agent.rb +0 -1225
- data/test/test_mechanize_http_auth_challenge.rb +0 -39
- data/test/test_mechanize_http_auth_realm.rb +0 -49
- data/test/test_mechanize_http_content_disposition_parser.rb +0 -118
- data/test/test_mechanize_http_www_authenticate_parser.rb +0 -146
- data/test/test_mechanize_link.rb +0 -80
- data/test/test_mechanize_page.rb +0 -118
- data/test/test_mechanize_page_encoding.rb +0 -182
- data/test/test_mechanize_page_frame.rb +0 -16
- data/test/test_mechanize_page_link.rb +0 -390
- data/test/test_mechanize_page_meta_refresh.rb +0 -127
- data/test/test_mechanize_parser.rb +0 -289
- data/test/test_mechanize_pluggable_parser.rb +0 -52
- data/test/test_mechanize_redirect_limit_reached_error.rb +0 -24
- data/test/test_mechanize_redirect_not_get_or_head_error.rb +0 -14
- data/test/test_mechanize_subclass.rb +0 -22
- data/test/test_mechanize_util.rb +0 -103
- data/test/test_multi_select.rb +0 -119
data/test/data/htpasswd
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
mech:44E/qORekFV0E
|
data/test/data/server.crt
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIICmzCCAgQCCQDq2kM3TCIM0DANBgkqhkiG9w0BAQQFADCBkTELMAkGA1UEBhMC
|
3
|
-
VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1NlYXR0bGUxEjAQBgNV
|
4
|
-
BAoTCU1lY2hhbml6ZTESMBAGA1UECxMJTWVjaGFuaXplMQ4wDAYDVQQDEwVBYXJv
|
5
|
-
bjEjMCEGCSqGSIb3DQEJARYUYWFyb25wQHJ1Ynlmb3JnZS5vcmcwHhcNMDYwODIz
|
6
|
-
MDU0NTMwWhcNMDcwODIzMDU0NTMwWjCBkTELMAkGA1UEBhMCVVMxEz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esmN/NQOtOpylewEs1bdIJyBIBmcnmkimLBtdxd0t34
|
10
|
-
wUKVHLDSj2aemuAHHwsyn/BNXs6F+obmAQJBALpbkAXAAFW1xefvo3vih8sOXyfd
|
11
|
-
WIfX2SRNBqbq7otyVFudQaChBDUrsOgBUPLyBAdH8DoV27wm9UuR9RPvu/cCQFRr
|
12
|
-
WgICXqtMFtE56tuACreD1S9k7MHqpsW0/Y3ujicnKKWUhd5+Q3esR5JhdgOkpkSl
|
13
|
-
y+FYtDNERpW+BBliwgECQA+Vc7pnxwDIOP8kFumdAUmRmhEZjuwArFcywPzrCUn9
|
14
|
-
4/KBOp5wDN7kanBwNGZCZ/eQtkb6thAS8C9pufHD1lw=
|
15
|
-
-----END RSA PRIVATE KEY-----
|
data/test/data/server.pem
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
-----BEGIN RSA PRIVATE KEY-----
|
2
|
-
MIICXAIBAAKBgQCqZ5iOGOLQc90ibB0dvEKFK+yGMZKmw/Ko6oCDdC1zrJchcohs
|
3
|
-
zSnGuS59gLvAmS8groLf77rY31fhKtG5dB8GynaOh4z+kcZhl+hCll+zTq7KH/rP
|
4
|
-
eg4S5iWllm7b6j/HssvTzSJyo1+p/+8LFXrULrY4Tcv3AJK4elDrI8ghrwIDAQAB
|
5
|
-
AoGAC+iZfLS4hSDTv2gW0NErROtA6E/mk8j12GArAwTHeGIDXc8HQbNEzCJ84UBx
|
6
|
-
3o/V/06yzruOL0HMfmvjpDY9RLsH02xZb2F/lruw4MJLu50i/Zu8Sjmb1YPSfCh/
|
7
|
-
3+8lREA3Uznlq+wHC3yPxQzMBy5jaEdH4IKxT0Bq8TeF0AECQQDSpL47YpRVRsLn
|
8
|
-
sS00ndEgQQmT5AJWJJtPpbHk6AA0a+zdNeuDRbdF42zG483YEqU7meZbPKR8QbkK
|
9
|
-
ZQPEBuevAkEAzxjGcz6NZesmN/NQOtOpylewEs1bdIJyBIBmcnmkimLBtdxd0t34
|
10
|
-
wUKVHLDSj2aemuAHHwsyn/BNXs6F+obmAQJBALpbkAXAAFW1xefvo3vih8sOXyfd
|
11
|
-
WIfX2SRNBqbq7otyVFudQaChBDUrsOgBUPLyBAdH8DoV27wm9UuR9RPvu/cCQFRr
|
12
|
-
WgICXqtMFtE56tuACreD1S9k7MHqpsW0/Y3ujicnKKWUhd5+Q3esR5JhdgOkpkSl
|
13
|
-
y+FYtDNERpW+BBliwgECQA+Vc7pnxwDIOP8kFumdAUmRmhEZjuwArFcywPzrCUn9
|
14
|
-
4/KBOp5wDN7kanBwNGZCZ/eQtkb6thAS8C9pufHD1lw=
|
15
|
-
-----END RSA PRIVATE KEY-----
|
data/test/htdocs/alt_text.html
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<meta http-equiv="Refresh" content="0; url=http://www.drphil.com/">
|
3
|
-
<body>
|
4
|
-
<a href="alt_text.html"><img alt="alt text" src="hello"></a>
|
5
|
-
<a href="no_alt_text.html"><img src="hello"></a>
|
6
|
-
<a href="nil_alt_text.html"><img alt src="hello"></a>
|
7
|
-
<a href="no_image.html">no image</a>
|
8
|
-
<a href="no_text.html"></a>
|
9
|
-
</body>
|
10
|
-
</html>
|
data/test/htdocs/button.jpg
DELETED
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
HELLO
|
data/test/htdocs/empty_form.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>File Upload Form</title>
|
4
|
-
</head>
|
5
|
-
<body>
|
6
|
-
<h1>File Upload Test</h1>
|
7
|
-
<form enctype="multipart/form-data" action="/file_upload" method="post">
|
8
|
-
Your name: <input type="text" name="name" /><br />
|
9
|
-
File to process: <input name="userfile1" type="file" /><br />
|
10
|
-
<input type="text" name="foo[aaron]" value="test" />
|
11
|
-
<select name="foo">
|
12
|
-
</select>
|
13
|
-
<input type="submit" value="Send File" />
|
14
|
-
</form>
|
15
|
-
<form enctype="multipart/form-data" action="/file_upload" method="post">
|
16
|
-
Your name: <input type="text" name="name" /><br />
|
17
|
-
File to process: <input name="green[eggs]" type="file" /><br />
|
18
|
-
<input type="submit" value="Send File" />
|
19
|
-
</form>
|
20
|
-
<form enctype="multipart/form-data" action="/file_upload" name="value_test" method="post">
|
21
|
-
Your name: <input type="text" name="name" /><br />
|
22
|
-
File to process: <input name="green[eggs]" value="/etc/hosts" type="file" /><br />
|
23
|
-
<input type="submit" value="Send File" />
|
24
|
-
</form>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/test/htdocs/find_link.html
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<meta http_equiv="Refresh" content="0; url=http://www.incorrect.com">
|
4
|
-
<meta http-equiv="Rfresh" content="0; url=http://www.also-wrong.com">
|
5
|
-
<meta http-equiv="Refresh" content="0; url=http://www.drphil.com/">
|
6
|
-
<meta http-equiv="Refresh" content="0; url='http://tenderlovemaking.com/'">
|
7
|
-
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=HTTP://WWW.UPCASE.COM/">
|
8
|
-
<TITLE>Testing the links</TITLE>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<A HREF="http://blargle.com/">blargle</A>
|
12
|
-
<A HREF="http://a.cpan.org/">CPAN A</A>
|
13
|
-
<A HREF="http://b.cpan.org/">CPAN B</A>
|
14
|
-
<FRAME SRC="foo.html">
|
15
|
-
<FRAME SRC="bar.html">
|
16
|
-
<A HREF="http://c.cpan.org/" NAME="bongo">CPAN C</A>
|
17
|
-
<A HREF="http://d.cpan.org/">CPAN D</A>
|
18
|
-
|
19
|
-
<A HREF="http://www.msnbc.com/">MSNBC</A>
|
20
|
-
<FRAME SRC="http://www.oreilly.com/" NAME="wongo">
|
21
|
-
<A HREF="http://www.cnn.com/">CNN</A>
|
22
|
-
<A HREF="http://www.bbc.co.uk/" NAME="Wilma">BBC</A>
|
23
|
-
<A HREF="http://www.msnbc.com/">News</A>
|
24
|
-
<A HREF="http://www.cnn.com/" NAME="Fred">News</A>
|
25
|
-
<A HREF="http://www.bbc.co.uk/">News</A>
|
26
|
-
<A onmouseover="window.status='Rebuild Files'; return true" href="#" onClick="window.open( '/cgi-bin/MT/mt.cgi', 'rebuild', 'width=400,height=200,resizable=yes')">Rebuild Index</A>
|
27
|
-
|
28
|
-
<MAP NAME="SOME_MAP">
|
29
|
-
<AREA HREF="http://www.msnbc.com/area" COORDS="1,2,3,4"></AREA>
|
30
|
-
<AREA HREF="http://www.cnn.com/area" COORDS="5,6,7,8" NAME="Marty">
|
31
|
-
<AREA HREF="http://www.cpan.org/area" COORDS="10,11,12,13" />
|
32
|
-
</MAP>
|
33
|
-
<IMG SRC="SOME_IMAGE" USEMAP="#SOME_MAP">
|
34
|
-
|
35
|
-
<!-- new stuff -->
|
36
|
-
<A HREF="http://nowhere.org/" Name="Here">NoWhere</A>
|
37
|
-
<A HREF="http://nowhere.org/padded" Name=" Here "> NoWhere </A>
|
38
|
-
<A HREF="blongo.html">Blongo!</A>
|
39
|
-
</body>
|
40
|
-
</html>
|
41
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<body>
|
3
|
-
<form name="form1" method="post" action="/form_post">
|
4
|
-
<select name="list" multiple size="3">
|
5
|
-
<option value="1">Option 1</option>
|
6
|
-
<option value="2" selected>Option 2</option>
|
7
|
-
<option value="3">Option 3</option>
|
8
|
-
<option value="4">Option 4</option>
|
9
|
-
<option value="5">Option 5</option>
|
10
|
-
<option value="6">Option 6</option>
|
11
|
-
</select>
|
12
|
-
<br />
|
13
|
-
<input type="submit" value="Submit" />
|
14
|
-
</form>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head><title>Page Title</title></head>
|
3
|
-
<body>
|
4
|
-
<form name="post_form" id="user_post_form" method="post" action="/form_post">
|
5
|
-
<table>
|
6
|
-
<tr>
|
7
|
-
<td>First Name</td>
|
8
|
-
<td><input name="first" type="text" id="name_first" /></td>
|
9
|
-
</tr>
|
10
|
-
<tr>
|
11
|
-
<td>First Name Again</td>
|
12
|
-
<td><input name="first" type="text" /></td>
|
13
|
-
</tr>
|
14
|
-
<tr>
|
15
|
-
<td><input type="submit" value="Submit" /></td>
|
16
|
-
<td></td>
|
17
|
-
</tr>
|
18
|
-
</table>
|
19
|
-
</form>
|
20
|
-
<form name="get_form" method="get" action="/form_post">
|
21
|
-
<table>
|
22
|
-
<tr>
|
23
|
-
<td>First Name</td>
|
24
|
-
<td><input name="first" type="text" /></td>
|
25
|
-
</tr>
|
26
|
-
<tr>
|
27
|
-
<td>First Name Again</td>
|
28
|
-
<td><input name="first" type="text" /></td>
|
29
|
-
</tr>
|
30
|
-
<tr>
|
31
|
-
<td><input type="submit" value="Submit" /></td>
|
32
|
-
<td></td>
|
33
|
-
</tr>
|
34
|
-
</table>
|
35
|
-
</form>
|
36
|
-
</body>
|
37
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head><title>Page Title</title></head>
|
3
|
-
<body>
|
4
|
-
<form name="get_form" method="get">
|
5
|
-
<table>
|
6
|
-
<tr>
|
7
|
-
<td>First Name</td>
|
8
|
-
<td><input name="first" type="text" /></td>
|
9
|
-
</tr>
|
10
|
-
<tr>
|
11
|
-
<td><input type="submit" value="Submit" /></td>
|
12
|
-
<td></td>
|
13
|
-
</tr>
|
14
|
-
</table>
|
15
|
-
</form>
|
16
|
-
</body>
|
17
|
-
</html>
|
18
|
-
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head><title>Input with no name</title></head>
|
3
|
-
<body>
|
4
|
-
<form name="test" action="/form_post" method="post">
|
5
|
-
<input type="text" /><br />
|
6
|
-
<input type="password" /><br />
|
7
|
-
<input type="hidden" /><br />
|
8
|
-
<input type="radio" /><br />
|
9
|
-
<input type="checkbox" /><br />
|
10
|
-
<input type="file" /><br />
|
11
|
-
<textarea></textarea>
|
12
|
-
<select></select>
|
13
|
-
<input type="submit" />
|
14
|
-
</form>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head><title>Page Title</title></head>
|
3
|
-
<body>
|
4
|
-
<form name="post_form1">
|
5
|
-
<input type="radio" name="1" value="RADIO" checked>
|
6
|
-
<input type="email" name="3" value="nobody@example">
|
7
|
-
<input type="text" name="2" value="TEXT">
|
8
|
-
<input type="month" name="3" value="2011-10">
|
9
|
-
</form>
|
10
|
-
</body>
|
11
|
-
</html>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<body>
|
3
|
-
<form name="form1" method="post" action="/form_post">
|
4
|
-
<select name="list">
|
5
|
-
<option value="1">Option 1</option>
|
6
|
-
<option value="2" selected>Option 2</option>
|
7
|
-
<option value="3">Option 3</option>
|
8
|
-
<option value="4">Option 4</option>
|
9
|
-
<option value="5">Option 5</option>
|
10
|
-
<option value="6">Option 6</option>
|
11
|
-
</select>
|
12
|
-
<br />
|
13
|
-
<input type="submit" value="Submit" />
|
14
|
-
</form>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>HTML for tc_set_fields</title>
|
4
|
-
</head>
|
5
|
-
<body>
|
6
|
-
<form name="set_fields" method="post" action="/form_post">
|
7
|
-
<input type="text" name="first_name" /><br />
|
8
|
-
<input type="text" name="first_name" /><br />
|
9
|
-
<input type="text" name="gender" /><br />
|
10
|
-
<input type="text" name="green[eggs]" /><br />
|
11
|
-
<input type="submit" value="Submit" /><br />
|
12
|
-
</form>
|
13
|
-
</body>
|
14
|
-
</html>
|
data/test/htdocs/form_test.html
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head><title>Page Title</title></head>
|
3
|
-
<body>
|
4
|
-
<h1>Post Form 1</h1>
|
5
|
-
<form name="post_form1" method="post" action="/form_post" id="generic_form" class="really_generic_form" >
|
6
|
-
<table>
|
7
|
-
<tr>
|
8
|
-
<td>First Name</td>
|
9
|
-
<td><input type="text" name="first_name" id="name_first" class="text_input"/></td>
|
10
|
-
</tr>
|
11
|
-
<tr>
|
12
|
-
<td>Gender</td>
|
13
|
-
<td>
|
14
|
-
M: <input type="radio" name="gender" value="male" /><br />
|
15
|
-
F: <input type="radio" name="gender" value="female" /><br />
|
16
|
-
</td>
|
17
|
-
</tr>
|
18
|
-
<tr>
|
19
|
-
<td>Check this if you are cool:</td>
|
20
|
-
<td><input type="checkbox" name="cool person" /></td>
|
21
|
-
</tr>
|
22
|
-
<tr>
|
23
|
-
<td>Check this if you like green eggs:</td>
|
24
|
-
<td><input type="checkbox" name="green[eggs]" /></td>
|
25
|
-
</tr>
|
26
|
-
<tr>
|
27
|
-
<td>Check this if you like ham:</td>
|
28
|
-
<td><input type="checkbox" name="likes ham" /></td>
|
29
|
-
</tr>
|
30
|
-
</table><br />
|
31
|
-
<select name="country">
|
32
|
-
<option value="USA">USA</option>
|
33
|
-
<option value="CANADA">CANADA</option>
|
34
|
-
</select><br />
|
35
|
-
<select name="empty">
|
36
|
-
</select><br />
|
37
|
-
<input type="submit" value="Submit" />
|
38
|
-
</form>
|
39
|
-
<h1>Get Form 1</h1>
|
40
|
-
<form name="get_form1" method="get" action="/form_post">
|
41
|
-
<table>
|
42
|
-
<tr>
|
43
|
-
<td>First Name</td>
|
44
|
-
<td><input type="text" name="first_name" /></td>
|
45
|
-
</tr>
|
46
|
-
<tr>
|
47
|
-
<td>Gender</td>
|
48
|
-
<td>
|
49
|
-
M: <input type="radio" name="gender" value="male" /><br />
|
50
|
-
F: <input type="radio" name="gender" value="female" /><br />
|
51
|
-
</td>
|
52
|
-
</tr>
|
53
|
-
<tr>
|
54
|
-
<td>Check this if you are cool:</td>
|
55
|
-
<td><input type="checkbox" name="cool person" /></td>
|
56
|
-
</tr>
|
57
|
-
<tr>
|
58
|
-
<td>Check this if you like green eggs:</td>
|
59
|
-
<td><input type="checkbox" name="green[eggs]" /></td>
|
60
|
-
</tr>
|
61
|
-
<tr>
|
62
|
-
<td>Check this if you like ham:</td>
|
63
|
-
<td><input type="checkbox" name="likes ham" /></td>
|
64
|
-
</tr>
|
65
|
-
</table><br />
|
66
|
-
<input type="image" name="button" value="button" src="button.jpg" />
|
67
|
-
<input type="submit" value="Submit" />
|
68
|
-
</form>
|
69
|
-
|
70
|
-
<!-- Get ant post to a form with a space in the name -->
|
71
|
-
<h1>Post Form 2</h1>
|
72
|
-
<form name="post_form2" method="post" action="/form post">
|
73
|
-
<table>
|
74
|
-
<tr>
|
75
|
-
<td>First Name</td>
|
76
|
-
<td><input type="text" name="first_name" /></td>
|
77
|
-
</tr>
|
78
|
-
<tr>
|
79
|
-
<td>Gender</td>
|
80
|
-
<td>
|
81
|
-
M: <input type="radio" name="gender" value="male" /><br />
|
82
|
-
F: <input type="radio" name="gender" value="female" /><br />
|
83
|
-
</td>
|
84
|
-
</tr>
|
85
|
-
<tr>
|
86
|
-
<td>Check this if you are cool:</td>
|
87
|
-
<td><input type="checkbox" name="cool person" /></td>
|
88
|
-
</tr>
|
89
|
-
<tr>
|
90
|
-
<td>Check this if you like ham:</td>
|
91
|
-
<td><input type="checkbox" name="likes ham" /></td>
|
92
|
-
</tr>
|
93
|
-
</table><br />
|
94
|
-
<input type="submit" value="Submit" />
|
95
|
-
</form>
|
96
|
-
<h1>Get Form 2</h1>
|
97
|
-
<form name="get_form2" method="get" action="/form post">
|
98
|
-
<table>
|
99
|
-
<tr>
|
100
|
-
<td>First Name</td>
|
101
|
-
<td><input type="text" name="first_name" /></td>
|
102
|
-
</tr>
|
103
|
-
<tr>
|
104
|
-
<td>Gender</td>
|
105
|
-
<td>
|
106
|
-
M: <input type="radio" name="gender" value="male" /><br />
|
107
|
-
F: <input type="radio" name="gender" value="female" /><br />
|
108
|
-
</td>
|
109
|
-
</tr>
|
110
|
-
<tr>
|
111
|
-
<td>Check this if you are cool:</td>
|
112
|
-
<td><input type="checkbox" name="cool person" /></td>
|
113
|
-
</tr>
|
114
|
-
<tr>
|
115
|
-
<td>Check this if you like ham:</td>
|
116
|
-
<td><input type="checkbox" name="likes ham" /></td>
|
117
|
-
</tr>
|
118
|
-
</table><br />
|
119
|
-
<input type="submit" value="Submit" />
|
120
|
-
</form>
|
121
|
-
|
122
|
-
<!-- forms with parameters in the action -->
|
123
|
-
<h1>Post Form 3</h1>
|
124
|
-
<form name="post_form3" method="post" action="/form_post?great day=yes&one=two">
|
125
|
-
<table>
|
126
|
-
<tr>
|
127
|
-
<td>First Name</td>
|
128
|
-
<td><input type="text" name="first_name" /></td>
|
129
|
-
</tr>
|
130
|
-
<tr>
|
131
|
-
<td>Gender</td>
|
132
|
-
<td>
|
133
|
-
M: <input type="radio" name="gender" value="male" /><br />
|
134
|
-
F: <input type="radio" name="gender" value="female" /><br />
|
135
|
-
</td>
|
136
|
-
</tr>
|
137
|
-
<tr>
|
138
|
-
<td>Check this if you are cool:</td>
|
139
|
-
<td><input type="checkbox" name="cool person" /></td>
|
140
|
-
</tr>
|
141
|
-
<tr>
|
142
|
-
<td>Check this if you like ham:</td>
|
143
|
-
<td><input type="checkbox" name="likes ham" /></td>
|
144
|
-
</tr>
|
145
|
-
</table><br />
|
146
|
-
<input type="submit" value="Submit" />
|
147
|
-
</form>
|
148
|
-
|
149
|
-
<!-- Post form with multipart/form-data -->
|
150
|
-
<h1>Post Form 4 - Multipart</h1>
|
151
|
-
<form name="post_form4_multipart" enctype="multipart/form-data" method="post" action="/form_post">
|
152
|
-
<table>
|
153
|
-
<tr>
|
154
|
-
<td>First Name</td>
|
155
|
-
<td><input type="text" name="first_name" /></td>
|
156
|
-
</tr>
|
157
|
-
</table><br />
|
158
|
-
<input type="submit" value="Submit" />
|
159
|
-
</form>
|
160
|
-
|
161
|
-
<h1>Get Form 3</h1>
|
162
|
-
<form name="get_form3" method="get" action="/form_post?great day=yes&one=two">
|
163
|
-
<table>
|
164
|
-
<tr>
|
165
|
-
<td>First Name</td>
|
166
|
-
<td><input type="text" name="first_name" /></td>
|
167
|
-
</tr>
|
168
|
-
<tr>
|
169
|
-
<td>Gender</td>
|
170
|
-
<td>
|
171
|
-
M: <input type="radio" name="gender" value="male" /><br />
|
172
|
-
F: <input type="radio" name="gender" value="female" /><br />
|
173
|
-
</td>
|
174
|
-
</tr>
|
175
|
-
<tr>
|
176
|
-
<td>Check this if you are cool:</td>
|
177
|
-
<td><input type="checkbox" name="cool person" /></td>
|
178
|
-
</tr>
|
179
|
-
<tr>
|
180
|
-
<td>Check this if you like ham:</td>
|
181
|
-
<td><input type="checkbox" name="likes ham" /></td>
|
182
|
-
</tr>
|
183
|
-
</table><br />
|
184
|
-
<input type="submit" value="Submit" />
|
185
|
-
</form>
|
186
|
-
<a href="/form_test.html">form test</a>
|
187
|
-
</body>
|
188
|
-
</html>
|