def upload(options = {})
      hash = { :email    => @email,
               :password => @password,
               :yamldata => options[:yamldata] }

      data = []
      hash.each do |key, value|
        data << "#{key.to_s}=#{CGI.escape(value)}" if value
      end

      data = data.join("&")
      debug "[YAMLDATA]" do puts data end

      headers = { 'User-agent' => USER_AGENT }

      begin
        resp = @http.post(API_UPLOAD_PATH, data, headers)
      rescue
        return false
      end

      debug "[UPLOAD]" do puts resp.body end

      return (resp.code == "200" && !resp.body["<error>"])
    end
def upload(options = {})
      hash = { :email    => @email,
               :password => @password,
               :yamldata => options[:yamldata] }

      data = []
      hash.each do |key, value|
        data << "#{key.to_s}=#{CGI.escape(value)}" if value
      end

      data = data.join("&")
      debug "[YAMLDATA]" do puts data end

      headers = { 'User-agent' => USER_AGENT }

      begin
        resp = @http.post(API_UPLOAD_PATH, data, headers)
      rescue
        return false
      end

      debug "[UPLOAD]" do puts resp.body end

      return (resp.code == "200" && !resp.body["<error>"])
    end
=Uploads yaml-formatted data
 ==Usage:
   @uploader.upload(:yamldata => yamldata)
 ==Returns:
   true if upload successful, false otherwise