summaryrefslogtreecommitdiffstats
path: root/lib/net/http.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/net/http.rb: update hyperlink to the Japanese document.aamine2003-12-041-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: wrote the warning about HTTP_PROXY environment variable.aamine2003-12-021-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (to_ary): print more friendly warning message.aamine2003-11-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (set_debug_output): last commit was wrong.aamine2003-11-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (set_debug_output): warn if method is called after #start. ↵aamine2003-11-161-0/+1
| | | | | | [ruby-dev:38798] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): revert to 1.93.aamine2003-09-291-3/+9
| | | | | | | | | | | | * lib/net/pop.rb (finish): revert to 1.60. * lib/net/smtp.rb (finish): revert to 1.67. * lib/net/http.rb (do_start): ensure to close socket if failed to start session. * lib/net/pop.rb (do_start): ditto. * lib/net/smtp.rb (do_start): ditto. * lib/net/smtp.rb: SMTP#started? wrongly returned false always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (finish): does not raise IOError even if !started?, to ↵aamine2003-09-291-3/+1
| | | | | | | | | | allow duplicated #finish call. * lib/net/pop.rb (finish): ditto. * lib/net/smtp.rb (finish): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: cosmetic improvements to documentationgsinclair2003-08-311-145/+143
| | | | | | | * lib/net/imap.rb: ditto git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Small changes to documentation; mainly hiding things from RDoc.gsinclair2003-08-211-10/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: update document.aamine2003-08-051-25/+34
| | | | | | | | * lib/net/pop.rb: ditto. * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: refine document.aamine2003-08-011-118/+174
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: convert RD to RDoc. Thanks William Webber. [ruby-doc:456]aamine2003-08-011-591/+566
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb: unify coding style.aamine2003-07-291-1/+1
| | | | | | | * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_chomp_bang): defer rb_str_modify() to actualmatz2003-07-271-1/+1
| | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@4184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: set old class aliases for backward compatibility. ↵aamine2003-07-021-1/+7
| | | | | | | | | [ruby-talk:74863] * lib/net/protocol.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#proxy_basic_auth): missing `@'.aamine2003-06-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: define Net::HTTPResponse#to_ary for backward ↵aamine2003-06-061-3/+13
| | | | | | | | | compatibility. [ruby-talk:72927] * lib/net/protocol.rb: add warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3913 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
* * lib/net/protocol.rb: reintroduce Protocol.protocol_param.aamine2003-05-021-1/+1
| | | | | | | | | * 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-021-36/+122
| | | | | | | | | | | | | | | | * 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
* 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/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/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
* * 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
* * 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
* * lib/net/http.rb: HTTP.get accepts URI.aamine2002-03-261-149/+239
| | | | | | | * 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
* 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-221-38/+29
| | | | | | | | | * 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-191-283/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-071-42/+54
| | | | | | | | * 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
* aamineaamine2001-12-301-146/+169
| | | | | | | | | | | * 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-131-24/+30
| | | | | | | | | | | | * 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-091-30/+30
| | | | | | | * 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-071-16/+11
| | | | | | | | | | | * 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
* aamineaamine2001-08-171-6/+6
| | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-131-2/+2
| | | | | | | * lib/net/http.rb: HTTP#proxy? did not worked. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-081-18/+56
| | | | | | | | * lib/net/http.rb: rename HTTP#request_by_name to send_request. * lib/net/protocol.rb (ProtoSocket#read): modify typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-2/+2
| | | | | | | * lib/net/http.rb (HTTP#request_by_name): arg order changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-5/+12
| | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-110/+142
| | | | | | | | * lib/net/http.rb: new method HTTP#request_by_name (test) * lib/net/http.rb: new class HTTPGenericRequest git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * protocol.rb,smtp.rb,pop.rb,http.rb: modify document.aamine2001-06-271-32/+45
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-06-261-160/+328
| | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-03-131-2/+5
| | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-03-081-16/+21
| | | | | | | * lib/net/protocol.rb: one write(2) per one line. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-241-104/+130
| | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-221-112/+173
| | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@1209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e