url encoded request throws error