I want to redirect to a route and also want to send some parameters which I don't want to expose on URL.
So, I need to redirect with a post method. How to do this?
$form_state->setRedirect('route.name', array('key' => 'value')); new RedirectResponse(\Drupal::url('route.name',array('key' => 'value')));
all these above procedure to redirect is done through GET methods.
So, is it possible to do this with POST method?