HttpURLConnection how to connect url

hi all

in first I'm using jsp

and need connect into jsp the url without redirect the jsp

in simple need take httprequest without redirect

URL url=new URL("the url need send request");

HttpURLConnection hcon(HttpURLConnection)url.openConnection();

hcon.setRequestMethod("GET");

hcon.setInstanceFollowRedirects(true);

hcon.connect();

but the code not work

please help me as soon as possible

regards

[591 byte] By [javaskilleda] at [2007-11-27 10:54:21]
# 1

> and need connect into jsp the url without redirect the jsp

>hcon.setInstanceFollowRedirects(true);

err,

hcon.setInstanceFollowRedirects(false);

?

ejpa at 2007-7-29 11:49:45 > top of Java-index,Core,Core APIs...
# 2

what is the wrong please if you have any imform about how to send request to url without redirect

please support me

thanks

javaskilleda at 2007-7-29 11:49:45 > top of Java-index,Core,Core APIs...
# 3

ok problem from url need connect

thanks

javaskilleda at 2007-7-29 11:49:45 > top of Java-index,Core,Core APIs...