summaryrefslogtreecommitdiffstats
path: root/test/net
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]aamine2007-05-121-0/+20
| | | | | | | * test/net/http/test_http.rb: test Net::HTTP.post_form. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge test cases with Ruby 1.8aamine2006-07-261-3/+74
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#post, request_post, request): should set ↵aamine2006-07-261-0/+12
| | | | | | | | | | | Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matchednobu2005-10-081-3/+3
| | | | | | | | | | | | | | substring directly. * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a. * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed change of sample/test.rb. * test/net/http/test_http.rb: removed superfluous splatting stars. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb (teardown): ensure that Net::HTTP is version ↵aamine2005-09-241-0/+5
| | | | | | 1.2. [ruby-dev:27312] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb: new file.aamine2005-09-241-0/+377
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* skip test if openssl is not available.akr2005-06-071-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix another IPv6 issue.akr2005-06-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid IPv6 issue.akr2005-06-031-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML number.akr2005-06-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* set verify_mode to avoid a warning.akr2005-06-031-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2005-06-031-0/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: new method Net::HTTP.post_form.aamine2005-04-201-0/+22
| | | | | | | | * lib/net/http.rb: new method Net::HTTPHeader#set_form_data and its alias #form_data=. * lib/net/http.rb: Net::HTTPHeader#add_header -> add_field (adjustted to Ruby 1.8). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.shugo2005-01-211-0/+14
| | | | | | | | * lib/net/imap.rb (encode_utf7): use unpack("U*") to decode UTF-8. * test/net/imap/test_imap.rb: added tests for Net::IMAP. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (each_capitalized): should join header field value. This ↵aamine2005-01-011-0/+8
| | | | | | | | | patch is contributed sheepman [ruby-list:40478] * test/net/http/test_httpheader.rb: test it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: HTTPHeader keeps its header fields as an array.aamine2004-03-061-10/+77
| | | | | | | | | | * lib/net/http.rb: new method HTTPHeader#add_header, get_fields. * lib/net/http.rb: new method HTTPHeader#content_length=. * lib/net/http.rb: new method HTTPHeader#content_type, main_type, sub_type, type_params, content_type=, set_content_type. * lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may contain multiple LFs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/test_httpheader.rb: new file.aamine2004-01-071-0/+137
* MANIFEST: add test/net/test_httpheader.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e