    # File estraierpure.rb, line 621
        def edit_doc(doc)
          Utility::check_types({ doc=>Document }) if $DEBUG
          @status = -1
          return false unless @url
          turl = @url + "/edit_doc"
          reqheads = [ "Content-Type: text/x-estraier-draft" ]
          reqheads.push("Authorization: Basic " + Utility::base_encode(@auth)) if @auth
          reqbody = doc.dump_draft
          rv = Utility::shuttle_url(turl, @pxhost, @pxport, @timeout, reqheads, reqbody, nil, nil)
          @status = rv
          rv == 200
        end