yes i suppose the base URL can be returned :)

i supposed that changing the URI constructor to can create an empty URI was necessary 
because when resolving relative uris, the base and the relative URI objects are 
created first, but a check can be done in the (URI,String) constructor easily

Armando

-----Original Message-----
From: Mike Moran [mailto:[EMAIL PROTECTED]]
Sent: martes, 28 de enero de 2003 11:36
To: Commons HttpClient Project
Subject: Re: [PATCH] relative URIs - take 2


Armando Anton wrote:

>Hi!
>
>I was working in uri test cases too so i send some more cases testing abnormal 
>examples (you can find them in the RFC) :)
>Most of the abnormal examples works well except two of them:
>
>1. when the relative uri is empty > an exception is thrown (i think it is a good idea 
>to avoid empty uris)
>
[ ... ]

I don't know if this is relevant to the usage within HttpClient, but, if 
someone was using this class to fetch/process URLs extracted from a web 
page then this behaviour would cause breakage on links like <a href="">. 
Similarly, many form tags use an empty URL to mean `submit to this 
page'. Can't you just return the base URL?

-- 
Mike



--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>

Reply via email to