summaryrefslogtreecommitdiffstats
path: root/lib/net
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/smtp.rb: support LOGIN authentication. The patch is contributed ↵aamine2003-05-241-10/+40
| | | | | | by Kazuhiko Izawa. [ruby-talk:78981] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#start): should check whether HTTP session is ↵aamine2003-05-141-1/+1
| | | | | | opened before finishing. (ruby-bugs-ja:PR#463) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: reduce warning. (ruby-bugs-ja:PR#462)aamine2003-05-141-10/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * net/imap.rb: use DataFormatError in u16tou8/u8tou16.shugo2003-05-101-9/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (decode_utf7): new method.shugo2003-05-101-0/+145
| | | | | | | * lib/net/imap.rb (encode_utf7): new method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: rename method: POP3#mail_size -> n_mailsaamine2003-05-061-26/+18
| | | | | | | * lib/net/pop.rb: rename method: POP3#bytes -> n_bytes git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: ESMTP -> SMTP transition wrongly fails.aamine2003-05-041-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: APOP did not work. [ruby-dev:20149]aamine2003-05-041-8/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: reintroduce Protocol.protocol_param.aamine2003-05-024-3/+14
| | | | | | | | | * lib/net/http.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/smtp.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: remove Protocol class.aamine2003-05-024-638/+626
| | | | | | | | | | | | | | | | * lib/net/smtp.rb (SMTP): ditto. * lib/net/pop.rb (POP3): ditto. * lib/net/http.rb (HTTP): ditto. * lib/net/protocol.rb: remove Command class. * lib/net/smtp.rb (SMTPCommand): ditto. * lib/net/pop.rb (POP3Command): ditto. * lib/net/pop.rb: remove APOPCommand class. * lib/net/protocol.rb: remove Code class and its all subclasses. * lib/net/protocol.rb: remove Response class and its all subclasses. * lib/net/pop.rb (POPMail): new method unique_id (alias uidl). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * net/imap.rb: support THREAD extension.shugo2003-04-301-0/+87
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: Exception line was accidentaly removed. [ruby-dev:19989]aamine2003-04-101-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added comment for Net::HTTP.get(arg1, arg2, arg3)gsinclair2003-03-281-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: Digest string wrongly included '\n' when user name is too ↵aamine2003-03-111-2/+3
| | | | | | long (ruby-bugs-ja:PR#404). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: speeding up by avoiding extra flush. (suggested by Brian ↵aamine2003-03-111-4/+6
| | | | | | Candler <B.Candler@pobox.com>) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: do not dispatch LIST when a mailbox is empty.aamine2003-03-091-74/+97
| | | | | | | | | | * lib/net/pop.rb: merge the 'STAT' patch from Frank S.Fejes <frank@oopdreams.com>, with modifications (listed below). * lib/net/pop.rb: new method Net::POP#mail_size. * lib/net/pop.rb: new method Net::POP#bytes. * lib/net/pop.rb: new method Net::POPCommand#stat. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises ↵aamine2003-02-081-2/+2
| | | | | | Net::ProtoFatalError (for backward compatibility). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added RDoc comments. See comments at EOF for remaining issues.gsinclair2003-01-311-22/+230
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: Telnet#print not add "\n".wakou2002-12-261-12/+4
| | | | | | | * lib/cgi.rb: cgi['key'] is equal cgi['key'][0] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: changes coding style.aamine2002-11-213-117/+122
| | | | | | | | * lib/net/pop.rb: ditto. * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: unify coding style.aamine2002-11-211-221/+222
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: should not overwrite Host: header. (Original patch is ↵aamine2002-11-211-1/+1
| | | | | | contributed by sean@ruby-lang.org) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: support Proxy-Authorization. (Original patch is ↵aamine2002-11-211-7/+63
| | | | | | | | | contributed by Alexander Bokovoy) * lib/net/http.rb: should not overwrite Host: header. (Original patch is contributed by sean@ruby-lang.org) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_str_to_dbl): RString ptr might be NULL.matz2002-10-171-0/+9
| | | | | | | | | | | * object.c (rb_cstr_to_dbl): p pointer might be NULL. * bignum.c (rb_str_to_inum): RString ptr might be NULL. * bignum.c (rb_cstr_to_inum): str pointer might be NULL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Object#class instead of deprecated Object#type.nobu2002-10-022-7/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_to_int): default to_int implementaion for everymatz2002-07-291-3/+3
| | | | | | | | | | numeric class. * re.c (rb_reg_quote): initial part of the string was never copied to the quoted string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (set_socket): new method.shugo2002-07-181-1/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: rename HTTP.get_uri get_response.aamine2002-07-111-24/+55
| | | | | | | | * lib/net/http.rb: HTTP.get_print accepts URI objects. * lib/net/http.rb: HTTP.get did not work with URI. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_slice_bang): if there's no correspondingmatz2002-07-113-5/+5
| | | | | | | | | | | | | | | | | | | | substring, slice! should return nil without exception. * array.c (rb_ary_insert): type fixed. * string.c (rb_str_split_m): accept separator value nil as well. * string.c (rb_str_become): was leaking memory. * class.c (rb_include_module): should not alter other classes/modules by inclusion. by this fix, local order may not be preserved for some cases. * class.c (include_class_new): module may be T_ICLASS; retrieve original module information. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (get): new method.shugo2002-07-031-6/+25
| | | | | | | | | * lib/net/ftp.rb (putt): ditto. * lib/net/ftp.rb (binary): ditto. * lib/net/ftp.rb (binary=): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (getbinaryfile): the second argument (localfile)shugo2002-07-031-2/+2
| | | | | | | | is now optional. * lib/net/ftp.rb (gettextfile): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: use &block and yield for speed.shugo2002-07-031-49/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (noop): new method.shugo2002-06-111-0/+9
| | | | | | | * lib/net/ftp.rb (site): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: HTTP.get accepts URI.aamine2002-03-262-191/+286
| | | | | | | * lib/net/http.rb: add some HTTP 1.1 response codes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* net/protocol.rb: Protocol#start should return self.aamine2002-03-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: added document.shugo2002-03-011-9/+165
| | | | | | | | | | * lib/net/imap.rb (getquotaroot): new method. * lib/net/imap.rb (setacl): remove the rights if the rights parameter is nil. * lib/net/imap.rb (getacl): return a MailboxACLItem object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* modify typo.aamine2002-02-221-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb: set read_timeout dynamically.aamine2002-02-222-39/+37
| | | | | | | | | * lib/net/http.rb: @@newimpl is always true in the main trunk. * lib/net/http.rb: HTTP.port -> default_port * lib/net/http.rb: HTTPResponse.read_response_status -> read_status_line git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2002-02-194-520/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/protocol.rb: rename Protocol.port to default_port. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. * lib/net/protocol.rb: rename BufferedSocket class to InternetMessageIO. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. * lib/net/protocol.rb: rename InternetMessageIO#write_pendstr to write_message. * lib/net/smtp.rb: ditto. * lib/net/protocol.rb: new method InternetMessageIO#through_message. * lib/net/smtp.rb: ditto. * lib/net/protocol.rb: rename InternetMessageIO#read_pendstr to read_message_to. * lib/net/pop.rb: ditto. * lib/net/protocol.rb: rename InternetMessageIO#read_pendlist to each_list_item * lib/net/pop.rb: ditto. * lib/net/protocol.rb: Now block size is 1024. * lib/net/smtp.rb: new methods SMTP#esmtp? and #esmtp=. * lib/net/http.rb: Using singleton method syntax instead of singleton class clause, to avoid behavior change of class variables in ruby 1.7. * lib/net/http.rb: HTTPResponse class does not inherit from Net::Response. * lib/net/http.rb: devide HTTP#connecting into {begin,end}_transport. * lib/net/http.rb: unused class Accumulator removed. * lib/net/http.rb: Net::HTTP reads response. not HTTPRequest. * lib/net/http.rb: proxy related class-instance-variables are not initialized correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2002-02-072-43/+55
| | | | | | | | * lib/net/http.rb: HTTP.Proxy should use self for proxy-class's super class. * lib/net/http.rb: initialize HTTP.proxy_port by HTTP.port. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: OpenSSL support.shugo2002-02-061-14/+56
| | | | | | | * lib/net/imap.rb (setquota): unset quota if the second argument is nil. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-304-538/+565
| | | | | | | | | | | * lib/net/protocol.rb: Protocol#start returns the return value of block. * lib/net/protocol.rb: set timeout limit by default. * lib/net/protocol.rb: new methods WriteAdapter#write, puts, print, printf. * lib/net/http.rb: rename HTTP#get2 to request_get, post2 to request_post ... * lib/net/smtp.rb: should not resolve HELO domain automatically. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-201-4/+4
| | | | | | | * lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-134-115/+117
| | | | | | | | | | | | * lib/net/pop.rb: new method Net::POP3.APOP * lib/net/http.rb: set default Content-Type to x-www-form-urlencoded (causes warning) * lib/net/protocol.rb: remove Net::NetPrivate module. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-094-94/+143
| | | | | | | * lib/net/protocol.rb: calls on_connect before conn_command git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-12-074-44/+35
| | | | | | | | | | | * lib/net/smtp.rb: SMTP.new requires at least one arg. * lib/net/pop.rb: POP.new requires at least one arg. * lib/net/pop.rb: uses "raise *Error.new" instead of simple raise. * lib/net/http.rb: HTTP.new requires at least one arg. * lib/net/http.rb: changes implicit start algolithm. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* One more fix to use Digest::MD5.knu2001-12-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Reflect the update of the MD5 module which is now Digest::MD5.knu2001-12-013-16/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (getquota_response): use astring for mailboxshugo2001-11-061-4/+2
| | | | | | | | names. * lib/net/imap.rb (getacl_response): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb: waitfor(): improvement. thanks towakou2001-09-071-1/+1
| | | | | | | nobu.nakada@nifty.ne.jp git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e