h.each {|key,value|
  url += urlescape(key) + '=' + urlescape(value) + '&'
}