You need to sign in to do that
Don't have an account?
Greg Coogan
Redirect on HttpRequest POST
I need to do a HTTP POST where I set parameters in the headers. This will be triggered via custom button, but it cannot be a Javascript button. I cannot use PageReference for a redirect since it would b e a seperate operation from the POST. How can I get the POST operation to open/redirect to an external website as part of the POST operation?
I've reviewed existing documentation and also other forum posts, but none of them address my specific scenario.
I've got my Apex code written that is executed when the custom button loads a Visualforce page that passes data to the Apex code. I am just unable to get it to direct the user as part of the POST operation.
I've reviewed existing documentation and also other forum posts, but none of them address my specific scenario.
I've got my Apex code written that is executed when the custom button loads a Visualforce page that passes data to the Apex code. I am just unable to get it to direct the user as part of the POST operation.
All Answers
1. Retrieves a token from an external authentication page (Not what I'm needing help with)
2. Performs a POST that passes the token and some Contact fields to an external page
As part of step 2, we want to user to be directed to the page that is being posted to. The data passed using the POST will determine what information is displayed to the user.
I am still using a Visualforce page to use a custom controller with an action method at this time.