post data should be separed with ‘&’ and not ‘;’
req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, ';')
req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'}, '&')
isnt it?