aamine
a2ef7ef62c
* lib/net/http.rb: convert RD to RDoc. Thanks William Webber. [ruby-doc:456]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-01 14:01:14 +00:00
shugo
1358ec597b
* lib/net/ftp.rb (return_code): obsolete.
...
* lib/net/ftp.rb (last_response_code): new method. lastresp is now
alias to last_response_code.
* lib/net/ftp.rb (last_response): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-30 15:28:20 +00:00
shugo
e155879b46
* lib/net/ftp.rb (get): fix wrong argument name. Thanks to William
...
Webber.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-30 01:56:45 +00:00
gsinclair
e078a75b73
Small documentation correction.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-29 14:27:26 +00:00
aamine
f1d9d32a67
* lib/net/smtp.rb (send0): do taint check only when $SAFE > 0
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-29 13:29:53 +00:00
aamine
23301726b0
* lib/net/smtp.rb: unify coding style.
...
* lib/net/http.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-29 09:48:30 +00:00
matz
37b2487c70
* lib/net/smtp.rb (Net::SMTP::send0): add taint check.
...
* ruby.h (LLONG_MIN): wrong value.
* io.c (rb_f_getc): $stdin may not be IO. [ruby-dev:20973]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-29 07:52:55 +00:00
matz
dbe85f1ef0
* string.c (rb_str_chomp_bang): defer rb_str_modify() to actual
...
modify point. other methods, replace, tr, delete, squeeze,
lstrip, and rstrip as well.
* string.c (rb_str_rstrip_bang): remove trailing '\0' at the end
of string.
* string.c (rb_str_lstrip_bang): do not strip '\0' from the left.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-27 17:20:29 +00:00
matz
fe4de8b4b8
* string.c (rb_str_match2): add warning to "~string".
...
[ruby-list:37751]
* lib/net/ftp.rb (Net::FTP::open): takes block. suggested by Gavin
Sinclair in [ruby-core:01237].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-19 17:26:04 +00:00
aamine
f261bdf66c
* lib/net/smtp.rb: synchronize document with source code.
...
* lib/net/pop.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-02 02:39:53 +00:00
aamine
c20ecb1ba4
* lib/net/smtp.rb: unify SMTP and SMTPCommand.
...
* lib/net/smtp.rb: new exception class SMTPError.
* lib/net/smtp.rb: new exception class SMTPAuthenticationError.
* lib/net/smtp.rb: new exception class SMTPServerBusy.
* lib/net/smtp.rb: new exception class SMTPSyntaxError.
* lib/net/smtp.rb: new exception class SMTPFatalError.
* lib/net/smtp.rb: new exception class SMTPUnknownError.
* lib/net/smtp.rb: change critical section protect algorithm.
* lib/net/smtp.rb (SMTP#do_start): check authentication args before all.
* lib/net/smtp.rb: new method send_message (alias send_mail).
* lib/net/smtp.rb: new method open_message_stream (alias ready).
* lib/net/pop.rb: POPBadResponse is a POPError.
* lib/net/pop.rb (POPMail#pop): ban ReadAdapter.
* lib/net/pop.rb (POPMail#top): ditto.
* lib/net/pop.rb (POP3Command): change critical section protect algorithm.
* lib/net/pop.rb (POP3Command#auth): USER and PASS should be one critical block.
* lib/net/pop.rb (POP3Command#retr): ban `dest' argument using iterator.
* lib/net/pop.rb (POP3Command#top): ditto.
* lib/net/protocol.rb: #read_message_to -> #each_message_chunk
* lib/net/protocol.rb: #D -> #LOG
* lib/net/protocol.rb: #D_off -> #LOG_off
* lib/net/protocol.rb: #D_on -> #LOG_on
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-02 02:34:39 +00:00
aamine
f473140e62
* lib/net/http.rb: set old class aliases for backward compatibility. [ruby-talk:74863]
...
* lib/net/protocol.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-02 02:05:35 +00:00
eban
2e4fc59d1c
* lib/net/pop.rb (Net::POP3#start): typofix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-01 16:34:58 +00:00
aamine
170aaabe4b
* lib/net/http.rb (HTTPHeader#proxy_basic_auth): missing `@'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-24 07:42:46 +00:00
matz
590a37880c
* eval.c (proc_alloc): re-unification of Block and Proc. Block
...
class is no longer available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-16 07:14:50 +00:00
shugo
e0a5ffa941
* lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber.
...
* lib/net/ftp.rb (putbinaryfile): rescue FTPPermError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-13 00:26:51 +00:00
aamine
1fa5c630cd
* lib/net/http.rb: define Net::HTTPResponse#to_ary for backward compatibility. [ruby-talk:72927]
...
* lib/net/protocol.rb: add warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-06 07:05:52 +00:00
matz
c5fc4bca6d
* eval.c (rb_call_super): inheritance line adjustment moved from
...
rb_call(). [ruby-core:01113]
* eval.c (rb_eval): use rb_call_super() to follow DRY principle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-03 09:40:21 +00:00
aamine
d5d2ca754b
* lib/net/smtp.rb: support LOGIN authentication. The patch is contributed by Kazuhiko Izawa. [ruby-talk:78981]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-24 18:24:26 +00:00
aamine
ee6a0ecbcb
* lib/net/http.rb (Net::HTTP#start): should check whether HTTP session is opened before finishing. (ruby-bugs-ja:PR#463)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 03:20:16 +00:00
aamine
445c938f7b
* lib/net/http.rb: reduce warning. (ruby-bugs-ja:PR#462)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-14 00:11:25 +00:00
shugo
46b2fa3ef4
* net/imap.rb: use DataFormatError in u16tou8/u8tou16.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 07:55:57 +00:00
shugo
afb9ea97ea
* lib/net/imap.rb (decode_utf7): new method.
...
* lib/net/imap.rb (encode_utf7): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 07:19:35 +00:00
aamine
273a14a44c
* lib/net/pop.rb: rename method: POP3#mail_size -> n_mails
...
* lib/net/pop.rb: rename method: POP3#bytes -> n_bytes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06 08:48:51 +00:00
aamine
55d9858060
* lib/net/smtp.rb: ESMTP -> SMTP transition wrongly fails.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-04 06:18:19 +00:00
aamine
af9bb04a6f
* lib/net/pop.rb: APOP did not work. [ruby-dev:20149]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-04 06:04:03 +00:00
aamine
e221d6826a
* lib/net/protocol.rb: reintroduce Protocol.protocol_param.
...
* lib/net/http.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/smtp.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-02 15:19:20 +00:00
aamine
e3056c8803
* lib/net/protocol.rb: remove Protocol class.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-02 14:35:01 +00:00
shugo
d9d40c0d79
* net/imap.rb: support THREAD extension.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-30 05:50:24 +00:00
aamine
95eb316d44
* lib/net/pop.rb: Exception line was accidentaly removed. [ruby-dev:19989]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-10 12:15:33 +00:00
gsinclair
8369db4b3b
Added comment for Net::HTTP.get(arg1, arg2, arg3)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28 03:20:13 +00:00
aamine
d5ca993bc3
* lib/net/smtp.rb: Digest string wrongly included '\n' when user name is too long (ruby-bugs-ja:PR#404).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-11 11:54:30 +00:00
aamine
cacf41f3b6
* lib/net/http.rb: speeding up by avoiding extra flush. (suggested by Brian Candler <B.Candler@pobox.com>)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-11 11:01:22 +00:00
aamine
70b55f2018
* lib/net/pop.rb: do not dispatch LIST when a mailbox is empty.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-09 16:53:30 +00:00
aamine
e3ab724e00
* lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises Net::ProtoFatalError (for backward compatibility).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-08 23:29:07 +00:00
gsinclair
e58e5cb5ca
Added RDoc comments. See comments at EOF for remaining issues.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-31 14:33:42 +00:00
wakou
2c5e792dd2
* lib/net/telnet.rb: Telnet#print not add "\n".
...
* lib/cgi.rb: cgi['key'] is equal cgi['key'][0]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-26 17:48:29 +00:00
aamine
f80af5150a
* lib/net/smtp.rb: changes coding style.
...
* lib/net/pop.rb: ditto.
* lib/net/protocol.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-21 11:50:09 +00:00
aamine
15911a95bf
* lib/net/http.rb: unify coding style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-21 11:13:17 +00:00
aamine
3eea2999e7
* lib/net/http.rb: should not overwrite Host: header. (Original patch is contributed by sean@ruby-lang.org)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-21 11:01:22 +00:00
aamine
87239525c1
* lib/net/http.rb: support Proxy-Authorization. (Original patch is 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-21 10:59:50 +00:00
matz
66d1582c07
* object.c (rb_str_to_dbl): RString ptr might be NULL.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-17 07:27:00 +00:00
nobu
29cef5f795
use Object#class instead of deprecated Object#type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02 16:45:35 +00:00
matz
89dbf99bac
* numeric.c (num_to_int): default to_int implementaion for every
...
numeric class.
* re.c (rb_reg_quote): initial part of the string was never copied
to the quoted string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-29 06:14:10 +00:00
shugo
03b60c7068
* lib/net/ftp.rb (set_socket): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-18 02:52:48 +00:00
aamine
fa848fb6fd
* lib/net/http.rb: rename HTTP.get_uri get_response.
...
* lib/net/http.rb: HTTP.get_print accepts URI objects.
* lib/net/http.rb: HTTP.get did not work with URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-11 21:33:38 +00:00
matz
be1d2c5f68
* string.c (rb_str_slice_bang): if there's no corresponding
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-11 08:22:18 +00:00
shugo
8e346d8cb1
* lib/net/ftp.rb (get): new method.
...
* lib/net/ftp.rb (putt): ditto.
* lib/net/ftp.rb (binary): ditto.
* lib/net/ftp.rb (binary=): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-03 05:28:01 +00:00
shugo
9620b20227
* lib/net/ftp.rb (getbinaryfile): the second argument (localfile)
...
is now optional.
* lib/net/ftp.rb (gettextfile): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-03 04:59:24 +00:00
shugo
f930648ae5
* lib/net/ftp.rb: use &block and yield for speed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-03 04:49:54 +00:00
shugo
a5fd4cec84
* lib/net/ftp.rb (noop): new method.
...
* lib/net/ftp.rb (site): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-11 04:20:11 +00:00
aamine
1ea1fbe85d
* lib/net/http.rb: HTTP.get accepts URI.
...
* lib/net/http.rb: add some HTTP 1.1 response codes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-26 11:18:02 +00:00
aamine
b90b70d734
net/protocol.rb: Protocol#start should return self.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-22 05:24:00 +00:00
shugo
4a58b0fd7c
* lib/net/imap.rb: added document.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-01 02:27:37 +00:00
aamine
d80b8cd59e
modify typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 12:54:11 +00:00
aamine
d3b66ccf45
* lib/net/protocol.rb: set read_timeout dynamically.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 12:10:58 +00:00
aamine
19f7f6ea12
aamine
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-19 12:33:52 +00:00
aamine
ffc3c4b401
aamine
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-07 20:22:39 +00:00
shugo
6bebc82c03
* lib/net/imap.rb: OpenSSL support.
...
* lib/net/imap.rb (setquota): unset quota if the second argument is nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-06 04:39:00 +00:00
aamine
f3d9a0cc21
aamine
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-30 19:18:45 +00:00
aamine
5a4187f2c2
aamine
...
* lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-20 05:00:20 +00:00
aamine
39c0252e04
aamine
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-13 19:15:21 +00:00
aamine
fa6dc283cd
aamine
...
* lib/net/protocol.rb: calls on_connect before conn_command
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-09 08:58:30 +00:00
aamine
a20863ff41
aamine
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-07 10:04:25 +00:00
knu
bec6d909e7
One more fix to use Digest::MD5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-01 14:07:02 +00:00
knu
31e15f7606
Reflect the update of the MD5 module which is now Digest::MD5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-01 14:07:01 +00:00
shugo
2fc66e2841
* lib/net/imap.rb (getquota_response): use astring for mailbox
...
names.
* lib/net/imap.rb (getacl_response): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-11-06 05:20:25 +00:00
wakou
1bcc5eb922
* lib/net/telnet.rb: waitfor(): improvement. thanks to
...
nobu.nakada@nifty.ne.jp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-09-07 22:17:13 +00:00
wakou
6e2490beb5
* lib/net/telnet.rb: waitfor(): bug fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-09-07 00:56:10 +00:00
wakou
749f0f9255
* lib/cgi.rb: CGI#doctype(): bug fix (html4Fr).
...
* lib/net/telnet.rb, lib/cgi.rb: remove VERSION, RELEASE_DATE,
VERSION_CODE, RELEASE_CODE. please use REVISION.
* lib/cgi.rb: CGI#header(): bug fix.
* lib/net/telnet.rb, lib/cgi.rb: concat --> +=
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-09-06 22:18:11 +00:00
aamine
772ed5507e
aamine
...
* lib/net/protocol.rb: Protocol.new requires at least one arg.
* lib/net/smtp.rb: ditto.
* lib/net/pop.rb: ditto.
* lib/net/http.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-08-17 03:08:45 +00:00
shugo
67d433a5e6
* lib/net/imap.rb: added new commands for managing folder quotas
...
and folder ACLs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-30 02:15:13 +00:00
aamine
a2193f50e8
aamine
...
* lib/net/http.rb: HTTP#proxy? did not worked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-13 21:20:41 +00:00
aamine
2b67bb576a
aamine
...
* lib/net/http.rb: rename HTTP#request_by_name to send_request.
* lib/net/protocol.rb (ProtoSocket#read): modify typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-08 07:00:23 +00:00
aamine
afb3a0cff1
aamine
...
* lib/net/http.rb (HTTP#request_by_name): arg order changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 19:18:17 +00:00
aamine
9e79454b3d
aamine
...
* lib/net/http.rb (HTTP#request_by_name): bug fix.
* lib/net/http.rb: does not write Connection: by default.
* lib/net/protocol.rb: "start" for started protocol is an error.
* lib/net/protocol.rb: "finish" for finished protocol is an error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 19:03:16 +00:00
aamine
fa20d931bc
aamine
...
* lib/net/http.rb: new method HTTP#request_by_name (test)
* lib/net/http.rb: new class HTTPGenericRequest
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-07-03 18:13:13 +00:00
aamine
cf37626401
* protocol.rb,smtp.rb,pop.rb,http.rb: modify document.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-27 00:59:08 +00:00
aamine
c664027a34
aamine
...
* lib/net/pop.rb: new methods POP3.auth_only, POP3#auth_only
* lib/net/http.rb: HTTP.Proxy returns self if ADDRESS is nil.
* lib/net/protocol.rb: new method ProtocolError#response
* lib/net/protocol.rb,smtp.rb,pop.rb,http.rb: add document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-06-26 23:49:21 +00:00
shugo
bacf9d9ece
* lib/net/imap.rb: fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-09 02:58:56 +00:00
shugo
3c0af9ca44
* lib/net/imap.rb (media_subtype): return subtype.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-02 03:41:35 +00:00
shugo
41aac21944
* lib/net/imap.rb (flag_list): capitalize flags.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-04-02 03:03:29 +00:00
shugo
8de229963c
* lib/net/imap.rb: add document and example code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-30 19:51:33 +00:00
shugo
c32024a3b5
* lib/net/imap.rb: rename ContinueRequest to ContinuationRequest.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-30 13:59:26 +00:00
shugo
253f65aa4e
* lib/net/imap.rb: added example.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-26 12:32:38 +00:00
shugo
2d32e4dd6d
* lib/net/imap.rb: supports response handlers and multiple commands.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-26 12:29:50 +00:00
aamine
1a7cb01d64
aamine
...
* lib/net/http.rb: add HTTPRequest#basic_auth.
* lib/net/smtp.rb: raise if only account or password is given.
* lib/net/protocol.rb: WriteAdapter#<< returns self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-13 05:48:58 +00:00
aamine
4dae731bbd
aamine
...
* lib/net/protocol.rb: one write(2) per one line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-03-08 08:39:40 +00:00
wakou
69739b14a5
Mon Feb 26 05:27:52 2001 Wakou Aoyama <wakou@fsinet.or.jp>
...
* lib/net/telnet.rb: #telnetmode(), #binmode(): bug fix.
thanks to nobu.nakada@nifty.ne.jp .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-25 20:34:59 +00:00
aamine
b1cd5105d4
aamine
...
* lib/net/http.rb: always close connection on request without body.
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: change copyright.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-24 04:53:50 +00:00
aamine
acce0b7ec4
aamine
...
* lib/net/protocol.rb: clear read buffer after reopen.
* lib/net/protocol.rb: refactoring.
* lib/net/http.rb: split module HTTPHeader from HTTPResponse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-22 23:23:57 +00:00
aamine
b2deafb277
aamine
...
* lib/net/http.rb: Response#range_length was not debugged.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-17 20:40:50 +00:00
shugo
2fbc717875
* lib/net/imap.rb: supports unknown resp_text_code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-14 08:40:49 +00:00
aamine
b576f57aa0
aamine
...
* lib/net/http.rb: join HTTPReadResponse into HTTPResponse again.
* lib/net/http.rb: move http_version() from HTTPRequest to HTTPResponse.
* lib/net/protocol.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-07 17:17:51 +00:00
aamine
7e5f9d5a13
aamine
...
* lib/net/http.rb: split HTTPResponse into HTTPReadResponse module.
* lib/net/protocol.rb: add Net::net_private.
* lib/net/protocol.rb: Socket#reopen takes arg, open_timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-07 07:23:09 +00:00
aamine
bf5ea58942
aamine
...
* lib/net/http.rb: Proxy did not work.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-06 13:04:08 +00:00
aamine
5113e8923c
aamine
...
* lib/net/http.rb: call on_connect() on re-opening socket.
* lib/net/pop.rb: also POP3 can use APOP auth.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-06 12:26:25 +00:00
aamine
cdc7602379
aamine
...
* lib/net/http.rb: add HTTP#request.
* lib/net/http.rb: take HTTP 1.0 server into account (incomplete).
* lib/net/protocol.rb: timeout for open/read.
* lib/net/protocol.rb: add Protocol#on_connect,on_disconnect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-02-06 11:14:51 +00:00
aamine
7adcec68b1
aamine
...
* lib/net/protocol.rb: ignore EOFError for read.
* lib/net/http.rb: user specified header was not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-16 07:57:43 +00:00
aamine
0c717d6a58
aamine
...
* lib/net/protocol.rb (adding): too few "yield" in case of arg is not String/File.
* lib/net/http.rb: add http request object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-01-13 19:07:15 +00:00
wakou
8f6673c2d4
wakou
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-24 20:20:49 +00:00
aamine
b40f3a89e3
aamine
...
* lib/net/protocol.rb,smtp.rb,pop.rb,http.rb: wrongly version 1.2 sources
were checked in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-24 20:01:44 +00:00
aamine
c8da204306
aamine
...
* lib/net/http.rb: does not send HEAD on closing socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-24 19:39:15 +00:00
aamine
79633d3bb8
aamine
...
* lib/net/protocol.rb: set @closed false in Socket#reopen.
* lib/net/pop.rb: add POP3.foreach, delete_all.
* lib/net/pop.rb: add POP3#delete_all.
* lib/net/http.rb: add HTTP.version_1_1, version_1_2
* lib/net/http.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-22 18:40:55 +00:00
shugo
31c53aaa7d
shugo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-21 06:35:05 +00:00
wakou
652f744cba
wakou
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-12-14 00:26:05 +00:00
aamine
15b9494baa
aamine
...
* lib/net/http.rb: Socket#readline() reads until "\n", not "\r\n"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-18 05:04:36 +00:00
aamine
0d11c322d1
aamine
...
* lib/net/http.rb: can call {old,new}_implementation any times.
* lib/net/http.rb: HTTP#connecting, receive ->
common_oper, connecting.
* lib/net/http.rb: output warning if u_header includes
duplicated header.
* lib/net/http.rb: not check Connection:/Proxy-Connection;
always read until eof.
* lib/net/protocol: detects and catches "break" from block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-16 14:03:20 +00:00
aamine
f5ba5e64d5
aamine
...
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.31
* lib/net/http.rb: initializes header in HTTP, not HTTPCommand
* lib/net/protocol.rb, http.rb: rewrites proxy code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-10 23:31:32 +00:00
aamine
41e41d34d1
aamine
...
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.30
* lib/net/protocol.rb, smtp.rb: Command#critical_ok -> error_ok
* lib/net/http.rb: read header when also "100 Continue"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-07 11:27:16 +00:00
shugo
3685e2bf2c
shugo
...
* lib/net/imap.rb (ResponseParser#section): accept empty section.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-11-01 02:48:47 +00:00
shugo
5f4d324d3b
shugo
...
* lib/net/imap.rb (ResponseParser#address): bug fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-31 07:06:47 +00:00
shugo
4960282ab3
shugo
...
* lib/net/imap.rb (ResponseParser#section): accept T_NUMBER.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-30 04:17:42 +00:00
shugo
24053a65d0
shugo
...
hack for speed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-27 07:20:02 +00:00
shugo
cac38b30e5
shugo
...
* lib/net/imap.rb: hack for speed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-26 08:19:04 +00:00
shugo
1488b9b458
shugo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-25 21:31:52 +00:00
aamine
34f44ca496
aamine
...
* lib/net/protocol.rb: Command#critical_ok
* lib/net/smtp.rb: clear critical flag before go to SMTP
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-25 17:40:30 +00:00
shugo
52a2acbad3
shugo
...
* lib/net/imap.rb (Net::IMAP#append): don't call Flag::new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-25 04:27:59 +00:00
shugo
d51bcd2007
shugo
...
* lib/net/imap.rb: changed return value of Net::IMAP#fetch.
* lib/net/imap.rb: support HEADER.FIELDS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-17 18:04:41 +00:00
shugo
525836d683
shugo
...
* lib/net/imap.rb: don't upcase the value of ATOM token.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-16 09:11:10 +00:00
shugo
84fbb64d7a
shugo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-16 07:38:26 +00:00
aamine
de75f3c0a6
aamine
...
* lib/net/http.rb: hex-alpha is not [a-h] but [a-f].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-15 21:37:30 +00:00
shugo
368683723e
shugo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-15 16:47:29 +00:00
shugo
bb6d5ce17a
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-14 14:54:51 +00:00
shugo
0f568bcf35
lib/net/imap.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-13 08:06:16 +00:00
aamine
76819ef99a
aamine
...
* lib/net/pop.rb: POP3#reset
* lib/net/http.rb: a code for "Switch Protocol" was wrongly 100
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-12 09:54:32 +00:00
aamine
83033ce328
aamine
...
* lib/net/protocol.rb: 2nd arg for ProtocolError#initialize is optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-10-11 05:27:56 +00:00
aamine
69543770ca
aamine
...
* lib/net/protocol.rb, http.rb: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-23 18:00:28 +00:00
aamine
77f8b0db8d
aamine
...
* lib/net/http.rb: too early parameter expantion in string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-22 06:44:59 +00:00
aamine
616c1cd971
aamine
...
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.28.
* lib/net/http.rb: HTTPReadAdapter -> HTTPResponseReceiver
* lib/net/http.rb (connecting): response is got in receive()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-21 06:58:01 +00:00
matz
13243e5ad1
matz - net library bug (by me)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-21 06:37:24 +00:00
wakou
ca94f612b4
wakou
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 21:16:09 +00:00
matz
fbcc6dea0c
matz: 1.6.0 final (hopufully)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-12 05:37:38 +00:00
wakou
9d823983dc
wakou
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-11 22:37:27 +00:00
wakou
a5afbd50a7
wakou
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-09-11 22:02:37 +00:00
shugo
468df0e2d4
Added default blocksize to Net::FTP#getbinaryfile
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-08-17 03:14:22 +00:00
aamine
79c2d60971
aamine
...
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.27.
* lib/net/protocol.rb: writing methods returns written byte size.
* lib/net/smtp.rb: send_mail accepts many destinations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-08-16 19:26:07 +00:00
matz
82178a5529
matz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-08-15 09:04:32 +00:00
aamine
beffb7f835
aamine
...
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26.
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb:
add module Net::NetPrivate and its inner classes
{Read,Write}Adapter, Command, Socket,
SMTPCommand, POP3Command, APOPCommand, HTTPCommand
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-07-12 06:04:40 +00:00
matz
c67a74570d
matz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-07-10 04:49:24 +00:00
aamine
9dd98aa46e
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26.
...
* lib/net/protocol.rb (finish): do nothing unless active.
* lib/net/http.rb: HTTP#{get,post}2 again (for new impl).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-07-03 09:20:35 +00:00
aamine
5eccd28bb3
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.25.
...
* lib/net/protocol.rb (each_crlf_line): beg = 0 is needed in adding{}
* lib/net/smtp.rb: allow String for to_addr of SMTP#sendmail
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-07-01 18:28:24 +00:00
aamine
1261c7e055
* lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.24.
...
* lib/net/protocol.rb: modified each_crlf_line again.
* lib/net/protocol.rb: do_write_beg,do_write_end -> writing{}
do_write_do -> do_write
* lib/net/http.rb: can make proxy connection by passing
addresses to HTTP.new, start.
* lib/net/http.rb: HTTP.new_implementation, old_implementation:
can use 1.2 implementation of head, get, post, put.
(see document)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-27 13:36:17 +00:00
shugo
4b4cad81e7
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-22 05:37:12 +00:00
wakou
ca3afdb861
Tue Jun 20 06:14:43 2000 Wakou Aoyama <wakou@fsinet.or.jp>
...
* lib/cgi.rb: change: version syntax. old: x.yz, now: x.y.z
* lib/net/telnet.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-19 21:18:41 +00:00
wakou
cc05dcd5fe
expand tabs: lib/cgi.rb, lib/net/telnet.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-17 17:52:49 +00:00
aamine
290f4e0d8d
Fri Jun 16 22:56:02 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
...
* protocol.rb (each_crlf_line): too many CRLF is concat-ed:
remove each_crlf_line2(), @wbuf
* protocol.rb: CRLF -> "\r\n", D_CRLF -> ".\r\n", strip //o
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-16 13:47:38 +00:00
aamine
9f32fd3e9a
o protocol.rb, smtp.rb, pop.rb, http.rb: define all#inspect()
...
o protocol.rb, smtp.rb, pop.rb, http.rb: modify/add documents
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-12 16:42:46 +00:00
aamine
1cb8c0d6fe
o http.rb: body is in HTTPResponse
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-12 15:45:58 +00:00
aamine
fdd3d8551f
o protocol.rb: ProtocolError can take data
...
o http.rb: raise exception with response
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-09 07:53:59 +00:00
aamine
1c4c8b743e
o smtp.rb: not catch NameError in auth
...
o http.rb: not close connection in get_body,
Only connection() closes socket
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-06-01 13:43:43 +00:00
wakou
9cdfe3496f
Wed May 24 16:03:06 2000 Wakou Aoyama <wakou@fsinet.or.jp>
...
* lib/cgi.rb bug fix: CGI::escape(), CGI::Cookie::new()
* lib/net/telnet.rb improve: binmode(), telnetmode() interface
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-24 07:10:25 +00:00
aamine
bdd3b79fe1
p http.rb: do not use Regexp "p" option
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-22 13:39:24 +00:00
aamine
08a0727577
o protocol.rb, http.rb, smtp.rb, pop.rb: update RD documents
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-18 08:57:37 +00:00
aamine
3e51a5b1b5
o protocol.rb: Protocol#start yields self
...
o smtp.rb: use Socket.gethostname to get localhost name
p pop.rb: use MD5#hexdigest
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-17 18:39:43 +00:00
wakou
6f4170c2a7
telnet.rb Version 1.32
...
- require English.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-09 22:08:25 +00:00
matz
655e96fa59
2000-05-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-09 04:53:16 +00:00
aamine
2a34f89e35
protocol.rb version 1.1.17
...
o http.rb: 'Host:' field includes port if port != 80
o http.rb: see also 'proxy-connection:' field
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-05 08:53:06 +00:00
matz
fedf48986d
2000-05-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-05-01 09:42:38 +00:00
aamine
acbb1c9434
version 1.1.16
...
o smtp.rb: SMTP AUTH (contributed by Kazuhiro Izawa)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-04-25 09:23:21 +00:00
aamine
ee38413bf0
{protocol,smtp,pop,http}.rb 1.1.15
...
o http.rb: (keep_alive?) use both user header and response
o http.rb: (connecting) returns response
o http.rb: (connecting) proc u_header and yield it
o http.rb: (connecting) call user block in conecting
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-04-22 07:29:53 +00:00
aamine
4f0aeb3cf7
{protocol,smtp,pop}.rb version 1.1.14
...
o http.rb: HTTP#head2
o http.rb: HTTPResponse#value
o http.rb: get2/post2 returns response header
o http.rb: *2 does not raise exceptions
o smtp.rb: try esmtp only first time
o protocol.rb: remove error_occured
o protocol.rb: Command#error! does not take argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-04-18 09:39:02 +00:00
aamine
6d77e51b17
o pop.rb: accept illegal timestamp (reported by WATANABE Hirofumi)
...
o http.rb: when body was chunked, does not set 'Content-Length'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-04-14 10:41:35 +00:00
aamine
be72d9a5da
protocol.rb smtp.rb pop.rb http.rb version 1.1.12
...
o protocol.rb: update Net::Protocol::Proxy#connect
o protocol.rb: ReplyCode is not a class
o http.rb: header value does not include header name
o http.rb: header is not a Hash, but HTTPResponse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-31 13:02:40 +00:00
aamine
9fd5174ef3
v1.1.11
...
o all: use "critical" to avoid duplicated command dispatch
o http.rb: change get2, post2 usage (HTTPWriter)
o http.rb: entity reading algorithm is better
o http.rb: more reply code (4xx, 5xx)
o protocol.rb: arguments of "connect" can be omitted
o protocol.rb: "quit" is not template method (now do_quit is removed)
o protocol.rb: ReplyCode.error_type was not work: using module_eval
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-27 15:52:27 +00:00
aamine
0dcf7498b1
o http.rb: return value of 'head' was wrong
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-26 16:29:02 +00:00
aamine
d8d148d816
o protocol.rb: version 1.1.9
...
o smtp.rb: arguments discription of do_ready was wrongly void
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-26 08:48:15 +00:00
aamine
5728ed4f51
net Version 1.1.7
...
o http.rb: HTTP#connecting() returns header again
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-08 10:40:11 +00:00
matz
73d2362580
2000-03-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-06 06:32:08 +00:00
aamine
b014cc337e
Version 1.1.6
...
o all: use 'attr_reader/writer' instead of 'attr'
o http.rb: get/head allow implicit 'start'
o http.rb: change connection state algorithm
o http.rb: process user header before write
o protocol.rb: refine start/finish
o protocol.rb: Command#last_reply
o protocol.rb: ReplyCode.error!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-03-05 10:25:53 +00:00
aamine
6f82a67fd0
Version 1.1.5
...
o session.rb -> protocol.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-02-21 15:27:49 +00:00
aamine
3fef8bb12c
o session.rb -> protocol.rb
...
o write, write_pendstr takes block
o smtp.ready
o popmail.pop takes block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-02-21 15:25:37 +00:00
shugo
25be6ce9b5
*** empty log message ***
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-02-08 06:03:42 +00:00
aamine
005f125829
Version 1.1.4
...
o (HTTP) allow no content-length data
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-01-21 12:52:24 +00:00
aamine
deee7cb19f
o remove RD white lines
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2000-01-05 07:55:36 +00:00
aamine
a1d1b15167
Net version 1.1.3
...
o http.rb rd
o Session -> Protocol
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-12-29 11:14:04 +00:00
aamine
0c00050f84
Version 1.1.2
...
o proxy, version 1
o use fullpath shvar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-12-22 13:49:13 +00:00
aamine
47f58037b6
Version 1.1.1
...
o HTTP chunk data
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-12-20 20:48:49 +00:00
aamine
6f4751f5f6
Version 1.1.0
...
o http.rb
o support class swap
o Net.quote
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-12-17 15:00:13 +00:00
matz
125ca1a11a
19991018
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-10-18 09:03:16 +00:00
matz
ec8a9bba35
maillib-1.0.2
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-10-13 07:29:15 +00:00
matz
d426749ff0
maillib-1.0.1
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-09-22 07:32:33 +00:00