Yes, but that is not what i need. Specifically, i need to read the
redirected link (the URL) from the server. I was really suprised
there aren't much info out there on the internet, I have search google
and the news group, but couldn't find much anything.
Thanks,
can somebody help??? thanks
> Yes, but that is not what i need. Specifically, i need to read the
> redirected link (the URL) from the server. I was really suprised
> there aren't much info out there on the internet, I have search google
> and the news group, but couldn't find much anything.
What don't you need?
I believe I gave you a link to the method in HttpURLConnection that
controls whether redirects are followed or not.
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
john - 03 Jan 2006 00:11 GMT
thanks for your response Thomas, you did give me the link to the
HttpURLConnection class, maybe i just have learn how to apply it. You
are great help!!!
Roedy Green - 03 Jan 2006 00:35 GMT
On Mon, 02 Jan 2006 11:59:06 +0000, Thomas Hawtin
<usenet@tackline.plus.com> wrote, quoted or indirectly quoted someone
who said :
>I believe I gave you a link to the method in HttpURLConnection that
>controls whether redirects are followed or not.
If you DON'T follow redirects, you would get the web page containing
the redirect, would you not, which you could study.
Or are these redirects done without an intermediate web page?

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
john - 03 Jan 2006 07:13 GMT
I have tried to use HttpURLConnection, but still couldn't be able to
get the redirected
link(((http://www.techbargains.com/jump.cfm?id=75&arg=retail/product.asp?sku...
====>www.sitename.com/oiwoowl.....)))). I just need the limk, not
the webpage itself. There seem not way of doing it in Java.
thanks,
Chris Smith - 04 Jan 2006 19:10 GMT
> I have tried to use HttpURLConnection, but still couldn't be able to
> get the redirected
> link(((http://www.techbargains.com/jump.cfm?id=75&arg=retail/product.asp?sku...
> ====>www.sitename.com/oiwoowl.....)))). I just need the limk, not
> the webpage itself. There seem not way of doing it in Java.
Of course there's a way of doing it in Java. You are doing something
wrong. I don't know what, because you've told us very little about what
you're doing in the first place. "still couldn't be able to get the
redirected link" doesn't communicate much about how you tried to do it.
Did you try calling getHeaderField on the HttpURLConnection after making
the request?

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation