fixed bug when calling remote API via plugin engine using POST method, it used always PUT