Hi, why you write 'doesn't work' ? Did you check log (client and server and apache) ?
Are you sure, you have redirection to your OCS server in firewall ? you have good public dns records ?
Before asking, you have to check your configuration and logs ...
Usually, if a computer could inventory itself, it could download packages ...