let url_split_args (url:string) = 
  let urlregexp = Str.regexp "\\(.*\\)\\?\\(.*\\)" in 
    if (Str.string_match urlregexp url 0) then
      (Str.matched_group 1 url, Str.matched_group 2 url)
    else (url,"")