On Fri, 12 Jan 2001, LouisVoo wrote:

> I also try like this
>   URL url = new URL(URLEncoder.encode(_url));
> but it also failed.
> 
> Anyone know how to solve my problem?

Try this:

URL url = new URL("http://foo.com/xyzzy?"+URLEncoder.encode("id=324"));

In other words, you should encode ONLY the query string part.

//Mikko







Reply via email to