Redirection issue

View: New views
2 Messages — Rating Filter:   Alert me  

Redirection issue

by Paul Gearon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm not sure if this should be going to Jeremy, or even if it is, then
if he's still available to work on it (having moved last year).

If I point the RDF validator at a redirected URI provided by
oclc.purl.org then the initial response is a 303 and a content type of
text/html. Unfortunately, the validator just uses the simple
URL.openConnection() method, which doesn't follow redirections.

Following redirections may make this servlet more sophisticated than
you want, but I think it's a useful thing to do. Using something like
Apache Commons HTTP Core would make the addition of this feature
trivial.

Regards,
Paul Gearon


Re: Redirection issue

by Eric Prud'hommeaux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 1, 2009 at 2:17 PM, Paul Gearon<gearon@...> wrote:

> Hi,
>
> I'm not sure if this should be going to Jeremy, or even if it is, then
> if he's still available to work on it (having moved last year).
>
> If I point the RDF validator at a redirected URI provided by
> oclc.purl.org then the initial response is a 303 and a content type of
> text/html. Unfortunately, the validator just uses the simple
> URL.openConnection() method, which doesn't follow redirections.
>
> Following redirections may make this servlet more sophisticated than
> you want, but I think it's a useful thing to do. Using something like
> Apache Commons HTTP Core would make the addition of this feature
> trivial.

It sounds like you've done a fair amount of the think work, how hard
is the coding (and the release engineering)? If you can make it
dead-simple for me, I may be able to deploy.

> Regards,
> Paul Gearon
--
-ericP
office: +1.617.258.5741
mobile: +1.617.599.3509