Make sure you have the latest version of libnfs. Remove whatever version your distro installed and make sure you have only the latest version installed.
(distros lag quite a lot in versions and some like ubuntu ship ancient versions)
Then look at utils/nfs-cat.c which is a utility that reads files off a server.