def get_doc_attr_by_uri(uri, name)
Utility::check_types({ uri=>String, name=>String }) if $DEBUG
@status = -1
return nil unless @url
turl = @url + "/get_doc_attr"
reqheads = [ "Content-Type: application/x-www-form-urlencoded" ]
reqheads.push("Authorization: Basic " + Utility::base_encode(@auth)) if @auth
reqbody = "uri=" + CGI::escape(uri) + "&attr=" + CGI::escape(name)
resbody = StringIO::new
rv = Utility::shuttle_url(turl, @pxhost, @pxport, @timeout, reqheads, reqbody, nil, resbody)
@status = rv
return nil if rv != 200
resbody.string.chomp
end