updated to better differentiate json/html forms because underlying request.pm is really bad at giving a sane error here.
updated to better differentiate json/html forms because underlying request.pm is really bad at giving a sane error here.

request/request-promise