Add work around to REST calls from forms.
Fix returning request method.