> > > On Thu, 3 May 2001, Morgan Delagrange wrote:
> > It looks wiered. Please think of the way to connect a server.
> > When you connect to, what is it needed for the server?
> > I assume that's the hostname and port.
> > If authorization is requested by the server, then we need to give
> > the values of the username and passowrd. That's the order.
> > And we have to think of the requiremets for the constructor.
> > What I mean is that if we don't have server information as a
constructor,
> > We don't need to have one with the userinfo constructor.
> > Hmm.. I recommend us to have constructors of server information
> > and user information for easy, not just preferring. ;-)
>
> I agree that inputing credentials before URL is odd, and it's really only
> that way coincidentally once we ripped out the URL-based
> constructors. How about this instead?
>
> HttpClient()
> startSession(URL url)
> startSession(URL url, Credentials creds)
> startSession(String hostname, String port)
> startSession(String hostname, String port, Credentials creds)
+1.
Remy