fix bug where curl call was not set up properly when there were no request parameters