HttpURLConnection

Discussion in 'Java' started by Crouchinho, Apr 4, 2007.

  1. Crouchinho

    Crouchinho Guest

    If I set setFollowRedirects to true - how do I get the resulting URL? Even
    if it redirects a number of times?
     
    Crouchinho, Apr 4, 2007
    #1
    1. Advertising

  2. Crouchinho wrote:
    > If I set setFollowRedirects to true - how do I get the resulting URL? Even
    > if it redirects a number of times?


    I think you will need to set it to false and do the
    redirects in your code to keep track of how there are
    being redirected.

    Arne
     
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=, Apr 5, 2007
    #2
    1. Advertising

  3. Crouchinho

    Guest

    > I think you will need to set it to false and do the
    > redirects in your code to keep track of how there are
    > being redirected.


    This is how I did it, too.

    Francis
     
    , Apr 5, 2007
    #3
  4. Crouchinho

    Crouchinho Guest

    <> wrote in message
    news:...
    >> I think you will need to set it to false and do the
    >> redirects in your code to keep track of how there are
    >> being redirected.

    >
    > This is how I did it, too.
    >
    > Francis
    >


    cheers
     
    Crouchinho, Apr 6, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    8
    Views:
    686
  2. Siegfried Ertl

    HttpURLConnection

    Siegfried Ertl, Nov 30, 2003, in forum: Java
    Replies:
    1
    Views:
    2,274
    Sudsy
    Nov 30, 2003
  3. David G
    Replies:
    3
    Views:
    2,978
    David G
    Dec 16, 2003
  4. igoR Buttler
    Replies:
    1
    Views:
    12,240
  5. Niels Campbell

    HttpURLConnection timeout solution

    Niels Campbell, Jan 23, 2004, in forum: Java
    Replies:
    6
    Views:
    43,887
    dadada
    Oct 27, 2006
Loading...

Share This Page