hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Matzura <...@eviware.com>
Subject Re: are refs allowed in HTTP POST URIs?
Date Thu, 06 Jul 2006 10:29:03 GMT
Hi Roland,

thanks again for your answers.. it seems we worked around the issue by 
preencoding the URL.. (since we needed the '#' to be in the URL)

regards!

/Ole

Roland Weber skrev:
> Hello Ole,
>
>   
>> contains a ref which is removed by the httpclient URI 
>> class.. 
>>     
>
> It is not removed by the URI class. It is dropped by the
> HTTP logic in HttpMethodBase.
>
>   
>> is that "correct" behaviour?
>>     
>
> Yes, for the HTTP logic. If it was the URI class that
> dropped the reference, that would be a bug.
>
>   
>> are refs "invalid" in a URI?
>>     
>
> No.
>
>   
>> (The 
>> java.net.URL class handles refs correctly)..
>>     
>
> And so does the URI class. The java.net.HttpURLConnection
> will drop the reference when generating a request.
>
>   
>> Should I tell him not to 
>> use the "#" character in a URI?
>>     
>
> It doesn't matter. As long as he/you are aware that the
> reference will not be sent to the server.
>
> cheers,
>   Roland
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message