express-request-proxy icon indicating copy to clipboard operation
express-request-proxy copied to clipboard

Redirecting POST not working

Open jazarja opened this issue 9 years ago • 1 comments

I'm trying to redirect POST request using requestProxy, but couldn't make it work.

Here is my code

router.post('/api/v1/device/register',
    requestProxy({
         url: "http://localhost:3000/api/v1/user/activation"
    }));

Request log

POST /api/v1/device/register 408 5449.497 ms - 975
POST /api/v1/user/activation 400 5455.902 ms - 605

I don't know why the destination url serving HTTP error 400. Please help.

jazarja avatar Jan 22 '16 06:01 jazarja

Hello sorry, for the belated reply. See https://github.com/4front/express-request-proxy/issues/9#issuecomment-188862038

dvonlehman avatar Feb 25 '16 16:02 dvonlehman