Can you see the Location header in the probe from the response?
What other errors are you getting, especially asking if the log error is about RFC 2616 sec 10.3 and the non-idempotent request.
------------------------------
Joseph Morgan
------------------------------
Original Message:
Sent: Mon June 05, 2023 06:37 AM
From: Alan Broadbent
Subject: MPGW : Responding with http 302 fails
I need to say that the redirect response from the server is to perform a GET. Ive coded passthru settings and the client html page receives from the browser the correct full redirect url, but it cannot complete and has error 500, until you perform a refresh then the host responds with an error page as expected.
The probe show Request rule as normal, but then only an error rule call, where the in and out url are both Datapower ip and port, but with the new redirected uri
------------------------------
Alan Broadbent
Original Message:
Sent: Wed February 02, 2022 09:23 AM
From: Sunil Hunashikatti
Subject: MPGW : Responding with http 302 fails
Yes. It was my mistake - I had configured the policy rule wrong.
It works now.
Thank you for your time.
------------------------------
Sunil
Original Message:
Sent: Wed February 02, 2022 06:56 AM
From: Matthias Siebler
Subject: MPGW : Responding with http 302 fails
Hi yes per the rfc we do not follow redirects for a POST;
the customer would have to send the 302 back to the client
Original Message:
Sent: 2/1/2022 9:38:00 AM
From: Sunil Hunashikatti
Subject: MPGW : Responding with http 302 fails
Hi Experts,
I have a simple pass through mpgw where datapower forwards the HTTP POST with content-type : application/x-www-form-urlencoded request to backend.
Backend responds with HTTP 302 and location header with value being http url to some static html web page.
HTTP Redirects is switched off on mpgw
I'm getting error in handling http 302 responses :
Errors :
"Backside header failed to parse due to:
Failed to establish a backside connection"
and RFC 2616 sec 10.3
I tried to search IBM blogs and landed at https://www.ibm.com/support/pages/handling-302-redirect-error-message
I did follow the approach mentioned in above blog but still i am not able to see the response from datapower as - HTTP 302 with location header to clients.
Can anyone please assist. Thank you!
------------------------------
Many Thanks,
Sunil
------------------------------