> A servlet recieves a GET request and returns the results to a browser
> and a rewritten URL appears in the address field.
[quoted text clipped - 5 lines]
>
> pj . . .
Often, the GET request returns a 301 or 302 redirect, which the
browser gracefully follows. I'm not sure you'll be able to do it
easily with the built-in URL libraries, however, I wouldn't be
surprised if you could using apache's HttpClient (google it)
Otherwise, you can open a URL connect, and figure out what to do from
there... Read the javadocs.
pjpf1 - 10 Apr 2007 00:53 GMT
> > A servlet recieves a GET request and returns the results to a browser
> > and a rewritten URL appears in the address field.
[quoted text clipped - 13 lines]
> Otherwise, you can open a URL connect, and figure out what to do from
> there... Read the javadocs.
Thank you, I had been looking at URLConnection only. I see more
utility in HttpURLConnection class. Thanks for the Apache Tip. I
believe java follows redirects by default.
pj . . .