    # File lib/stella/core_ext.rb, line 506
      def to_http_params
        params = ''
        stack = []

        each do |k, v|
          if v.is_a?(Hash)
            stack << [k,v]
          elsif v.is_a?(Array)
            stack << [k,Hash.from_array(v)]
          else
            params << "#{k}=#{v}&"
          end
        end

        stack.each do |parent, hash|
          hash.each do |k, v|
            if v.is_a?(Hash)
              stack << ["#{parent}[#{k}]", URI::Escape.escape(v)]
            else
              params << "#{parent}[#{k}]=#{URI::Escape.escape(v)}&"
            end
          end
        end

        params.chop!
        params
      end