def headers(options)
        rslt = {'Authorization' => basic_auth_header(options[:user], options[:password])}
        rslt['Cookie'] = "#{SESSION_COOKIE_NAME}=#{session_id}" if !session_id.nil? and !options[:no_session]
        rslt['Content-Type'] = options[:content_type] if options.include? :content_type
        rslt['User-Agent'] = user_agent unless user_agent.nil?
        rslt
      end
def headers(options)
        rslt = {'Authorization' => basic_auth_header(options[:user], options[:password])}
        rslt['Cookie'] = "#{SESSION_COOKIE_NAME}=#{session_id}" if !session_id.nil? and !options[:no_session]
        rslt['Content-Type'] = options[:content_type] if options.include? :content_type
        rslt['User-Agent'] = user_agent unless user_agent.nil?
        rslt
      end
Get request headers prepared with session ID and Basic Auth.