aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/imap.rb (ResponseParser#next_token): fixedshugo2007-05-301-2/+2
| | | | | | | | | | | error message. * lib/net/imap.rb (ResponseParser#parse_error): fixed the condition not to refer @token.symbol unexpectedly. Thanks, Dick Monahan. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XXshugo2007-05-301-0/+4
| | | | | | | responses for some FTP servers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: CRAM-MD5 authentication did not work. [ruby-dev:30770]aamine2007-05-201-4/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]aamine2007-05-121-1/+1
| | | | | | | * test/net/http/test_http.rb: test Net::HTTP.post_form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP.post_form): allow an Array of String for pairs ↵aamine2007-05-061-4/+21
| | | | | | | | | argument. [ruby-Bugs:10340] * lib/net/http.rb (Net::HTTP#set_form_data): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: Connection header field might include both of ↵aamine2007-05-061-19/+29
| | | | | | "keep-alive" token and "close" token. [ruby-core:10818] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnect): call shutdown forshugo2007-04-091-1/+5
| | | | | | | SSLSocket. Thanks, Technorama Ltd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (rbuf_read): extend buffer size for speed.aamine2007-03-191-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb: change default verification mode from VERIFY_PEER to ↵aamine2007-03-161-6/+6
| | | | | | VERIFY_NONE because most POPS server does not have true certification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: merge Ruby-SSPI patch contributed by Justin Bailey.aamine2007-03-161-16/+49
| | | | | | | * ext/Win32API/lib/win32/sspi.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: support automatic STARTTLS.aamine2007-03-052-85/+218
| | | | | | | | | | | * lib/net/smtp.rb: check server advertisement. * lib/net/smtp.rb: introduce new class SMTP::Response. * lib/net/smtp.rb (getok): should not use sprintf. * lib/net/smtp.rb (get_response): ditto. * lib/net/protocol.rb: reduce syntax warning on 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: reconstruct SMTPS/STARTTLS interface. New interface is ↵aamine2007-03-041-108/+66
| | | | | | | | | | | incompatible from current 1.9 interface at all. * lib/net/smtp.rb: All SSL-related class methods are removed; use instance methods instead. * lib/net/smtp.rb: rename methods: *ssl -> *tls (with alias "ssl"). * lib/net/smtp.rb: rename methods: *tls -> *starttls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: moved fixes for EPIPE to the correctshugo2007-02-061-14/+14
| | | | | | | place. [ruby-core:10204] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: check the control connection on EPIPE.shugo2007-02-061-0/+14
| | | | | | | Thanks, Simon Williams. [ruby-core:9547] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]shugo2006-11-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: allow extra spaces in responses.shugo2006-09-201-1/+1
| | | | | | | Thanks, Tom Soderlund. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: parameter `to_addrs' might be an Array, .flatten is ↵aamine2006-08-221-1/+1
| | | | | | required. [ruby-dev:29316] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.aamine2006-08-151-157/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | * lib/net/smtp.rb: new method SMTP.use_ssl? * lib/net/smtp.rb: new method SMTP.enable_ssl. * lib/net/smtp.rb: new method SMTP.disable_ssl. * lib/net/smtp.rb: new method SMTP.default_ssl_port. * lib/net/smtp.rb: new method SMTP.default_tls_port. * lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext object, instead of a verity and cert. [FEATURE CHANGE] * lib/net/smtp.rb: new method SMTP.ssl_context. * lib/net/smtp.rb: new method SMTP.default_ssl_context. * lib/net/smtp.rb: export SMTP.authenticate. * lib/net/smtp.rb: export SMTP.auth_plain. * lib/net/smtp.rb: export SMTP.auth_login. * lib/net/smtp.rb: export SMTP.auth_cram_md5. * lib/net/smtp.rb: export SMTP.starttls. * lib/net/smtp.rb: export SMTP.helo. * lib/net/smtp.rb: export SMTP.ehlo. * lib/net/smtp.rb: export SMTP.mailfrom. * lib/net/smtp.rb: export SMTP.rcptto. * lib/net/smtp.rb: export SMTP.rcptto_list. * lib/net/smtp.rb: export SMTP.data. * lib/net/smtp.rb: export SMTP.quit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrievematz2006-08-091-2/+4
| | | | | | | | bytes from strings. a patch from WATANABE Tetsuya <Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* small document fixaamine2006-07-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#post, request_post, request): should set ↵aamine2006-07-261-12/+43
| | | | | | | | | | | 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@10611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTPResponse): duplicated error 501;matz2006-06-231-1/+1
| | | | | | | HTTPInternalServerError should be error 500. [ruby-core:08037] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (send_request_with_body): #content_type never return ↵aamine2006-03-051-2/+2
| | | | | | false, use #main_type instead. [ruby-core:07476] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (add_field, get_fields): keep 1.8.2 compatibility. This ↵aamine2006-02-051-6/+8
| | | | | | patch is contributed by Rob Pitt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,nobu2005-10-221-5/+5
| | | | | | | | | | | | ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb, lib/rss/parser.rb, test/rss/test_content.rb, test/rss/test_dublincore.rb, test/rss/test_syndication.rb, test/rss/test_trackback.rb, test/ruby/test_eval.rb, test/socket/test_socket.rb, test/socket/test_udp.rb: Object#fcall was renamed as Object#funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, andshugo2005-10-151-17/+34
| | | | | | | | returns retrieved data if localfile is nil. * lib/net/ftp.rb: (gettextfile): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: supported DIGEST-MD5. Thanks, Mathieu Arnold.shugo2005-09-161-7/+110
| | | | | | | | * lib/net/imap.rb: use fcall instead of send. Thanks, Satoru Takabayashi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (syck_resolver_transfer): remove C++ stylematz2005-09-161-1/+1
| | | | | | | | | | comment (//). [ruby-core:05793] * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with readpartial. [ruby-talk:127641] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: wrote docuemntation of HTTPRequest/HTTPResponse classes.aamine2005-09-131-40/+121
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (starttls): supported the STARTTLS command.shugo2005-09-111-0/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: merge a patch contributed by Daniel Berger, with some ↵aamine2005-07-261-42/+20
| | | | | | modification. (RubyForge #2128) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (Net::HTTP#connect, Net::HTTP#request): shouldgotoyuzo2005-06-301-6/+10
| | | | | | | | | | | not send proxy username and password to origin servers. [ruby-dev:25673] * lib/net/http.rb (Net::HTTP::ProxyDelta#edit_path): should not send HTTPS scheme URL to origine servers. [ruby-dev:25689] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: add rdoc.aamine2005-04-201-13/+48
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: new method Net::HTTP.post_form.aamine2005-04-201-7/+43
| | | | | | | | * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@8362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (initialize): handle certs correctly. Thanks,shugo2005-02-221-5/+6
| | | | | | | NABEYA Kenichi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.shugo2005-01-211-121/+2
| | | | | | | | * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@7800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-lis:40546]shugo2005-01-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update copyright yearaamine2005-01-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (each_capitalized): should join header field value. This ↵aamine2005-01-011-1/+1
| | | | | | | | | patch is contributed sheepman [ruby-list:40478] * test/net/http/test_httpheader.rb: test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (preprocess): remove NULL unless binmode.usa2004-12-281-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (Net::IMAP::PlainAuthenticator): added a new classshugo2004-12-261-0/+16
| | | | | | | | to support the PLAIN authentication mechanism. Thanks, Benjamin Stiglitz. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/https.rb: delete descriptions about key_file and cert_file.gotoyuzo2004-12-201-6/+0
| | | | | | | | | fixed: [ruby-dev:25243] * ext/openssl/lib/net/telnets.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: remove junk.aamine2004-12-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (TEXT_REGEXP): allow 8-bit characters for the germanshugo2004-10-031-3/+3
| | | | | | | | | version of Microsoft Exchange Server. * lib/net/imap.rb (RTEXT_REGEXP): ditto. * lib/net/imap.rb (CTEXT_REGEXP): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (rbuf_fill): OpenSSL::SSLSocket has its own buffer, ↵aamine2004-08-181-4/+3
| | | | | | select(2) might not work. [ruby-dev:24072] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (disconnected?): new method.shugo2004-07-221-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (receive_responses): return if a LOGOUT responseshugo2004-07-171-2/+13
| | | | | | | received. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (send_string_data): wait command continuationshugo2004-07-171-1306/+1334
| | | | | | | requests before sending octet data of literals. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (sock_sockaddr): Socket#gethostbyname()matz2004-06-241-0/+8
| | | | | | | | should give us packed address, not struct sockaddr. [ruby-core:03053] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb: added new option --ssl.shugo2004-06-231-4/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e