# File lib/client.rb, line 272
  def self.post_account(url, token, headers, http_conn=nil)
    if not http_conn
      http_conn = http_connection(url)
    end
    parsed = http_conn[0].clone
    conn = http_conn[1]
    headers['x-auth-token'] = token
    conn.start if !conn.started?
    resp = conn.post(parsed.request_uri, nil, headers)
    if resp.code.to_i < 200 or resp.code.to_i > 300
      raise ClientException.new('Account POST failed', :http_scheme=>parsed.scheme,
              :http_host=>conn.address, :http_port=>conn.port,
              :http_path=>parsed.path, :http_status=>resp.code,
              :http_reason=>resp.message)
    end
    resp.body
  end