Re: Test p:import #006

Hello world,

I've done a little more investigation and I think import-006 places an
unreasonable burden on implementors. AFAICT, the only way to get this
right is to manage all of the HTTP redirections "by hand". In the Java
case, that means building an explicit HttpURLConnection, disabling
"follow redirects", and then rebuilding the follow redirects logic
locally, keeping track of where the redirection occurs.

Unless I'm mistaken (and I'm happy to be told that I am), you can't
tell from a URLConnection, or even from an HttpURLConnection if follow
redirects is enabled, where the final connection was resolved.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | It is important to realize that any
http://nwalsh.com/            | lock can be picked with a big enough
                              | hammer.

Received on Monday, 23 November 2009 15:40:18 UTC