Shell Script to query packages from a http server.

Hello Unix Gurus,

Does anybody have an idea on how to verify packages exist on a remote or ftp server connected through http. Here is my task at hand. We have a central repository in which we retrieve our packages. eg. http://packageserver/packages. What i have done is compiled a list of packages installed on our testing machines and i need to verify if the packages are located in the remote server. Any help would be greatly appreciated.

Use pkginfo and redirect it to a file. Now u have to diff this two files and you have the result.

pkginfo is not the issue here. I just need to know how to connect to the remote http server through a url and run pkginfo on that.