|
Sending GET requests from Datapower
|
 |
This question is answered.
|
|
Replies:
2
-
Pages:
1
-
Last Post:
Nov 12, 2009 10:53 AM
Last Post By: datapower_user
|
|
|
Posts:
2
Registered:
Nov 11, 2009 06:10:22 PM
|
|
|
|
Sending GET requests from Datapower
Posted:
Nov 11, 2009 06:24:32 PM
|
|
|
|
I have a Multi-Protocol Gateway with a dynamic back-end. I want it to send a GET https request, rather than a POST request. The POST isn't working because the response is a 302 redirect, and I'm getting the following error message: "The server has returned a redirect oriented response code (i.e 3XX) but it cannot be honored because the request method disallows redirects. The only request methods that can be redirected are non-idempotent methods such as GET and HEAD. This request was probably a POST which cannot be redirected." I'm a Datapower newbie, and I can't figure out a way to make Datapower send a GET request, rather than a POST request. Any help would be much appreciated.
|
|
Posts:
119
Registered:
Oct 18, 2005 11:26:12 AM
|
|
|
|
Re: Sending GET requests from Datapower
Posted:
Nov 12, 2009 09:52:03 AM
in response to: datapower_user's post
|
|
|
|
HTTP Method mediation is not as easily done in the current firmware versions, but it is a requirement that is known by DataPower development, especially for REST services that have exactly your issue, so stay tuned. In the meantime, you could send a HTTP GET to your backend with a url-open in an xsl and either have your request rule's result action target to be set to a loopback firewall that supports POST, which will loop your real backend response to your response rule, or you could store the backend response in a context variable and set the mpgw skip backside service variable, and pick the response up in your context variable during response processing.
Regards,
Steve
|
|
Posts:
2
Registered:
Nov 11, 2009 06:10:22 PM
|
|
|
|
Re: Sending GET requests from Datapower
Posted:
Nov 12, 2009 10:53:44 AM
in response to: datapower_user's post
|
|
|
|
Thank you very much for your reply. I really appreciate it.
|
|
|
|
|