def etch_doc(id)
Utility::check_types({ id=>Integer }) if $DEBUG
@status = -1
return nil unless @url
turl = @url + "/etch_doc"
reqheads = [ "Content-Type: application/x-www-form-urlencoded" ]
reqheads.push("Authorization: Basic " + Utility::base_encode(@auth)) if @auth
reqbody = "id=" + id.to_s
resbody = StringIO::new
rv = Utility::shuttle_url(turl, @pxhost, @pxport, @timeout, reqheads, reqbody, nil, resbody)
@status = rv
return nil if rv != 200
kwords = {}
lines = resbody.string.split(/\n/, -1)
for i in 0...lines.length
pair = lines[i].split(/\t/)
next if pair.length < 2
kwords[pair[0]] = pair[1]
end
kwords
end