/[classpath]/inetlib/source/gnu/inet/http/HTTPConnection.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/http/HTTPConnection.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.17 by dog, Thu Nov 25 12:45:43 2004 UTC
# Line 348  public class HTTPConnection Line 348  public class HTTPConnection
348     */     */
349    public Request newRequest (String method, String path)    public Request newRequest (String method, String path)
350    {    {
351        if (method == null || method.length() == 0)
352          {
353            throw new IllegalArgumentException("method must have non-zero length");
354          }
355        if (path == null || path.length() == 0)
356          {
357            throw new IllegalArgumentException("path must have non-zero length");
358          }
359      Request ret = new Request (this, method, path);      Request ret = new Request (this, method, path);
360      ret.setHeader ("Host", hostname);      ret.setHeader ("Host", hostname);
361      ret.setHeader ("User-Agent", userAgent);      ret.setHeader ("User-Agent", userAgent);

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26