Thank you very much for your answer.
This method is really simple, what is perfect.
However,  I'm little afraid that once the URI
changes my programme becomes useless.
Do you think that '/versions/0/' will remain
also in all future depot server releases?

Thanks

On 07/23/09 17:08, Shawn Walker wrote:
Radoslav Glinsky wrote:
Hello,
in my java programme (working with IPS packages) I would really need
to verify if an IPS repository on given URL is working
(simply connecting to this URL doesn't tell me if there is also a repository
running...).
Does anybody have an idea how I can do this from java (or any similar
language)?

I'm very grateful for any ideas.
Thank you

Verifying full functionality is difficult, especially since what you need to verify depends greatly on how the repository you're connecting to is hosted. For example, if it's connected through a reverse-proxy via Apache, that requires different validation.

The short answer is that checking the output of the '/versions/0/' URI from a depot server for a repository is probably the easiest way to see if your are connecting to a valid package server, and to see what operations it offers.

Cheers,

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to