Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9002505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:34:48+00:00 2026-06-16T00:34:48+00:00

i have my own AuthenticationSuccessHandler and overriding method onAuthenticationSuccess , where i need to

  • 0

i have my own AuthenticationSuccessHandler and overriding method onAuthenticationSuccess, where i need to redirect to some page with parameters from request before authenticate (i hope you understand what i mean, sorry for my english)

getRedirectStrategy().sendRedirect(request, response, targetUrl);

How can i do this with POST method (by default it is GET method)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:34:48+00:00Added an answer on June 16, 2026 at 12:34 am

    You may do it without sendRedirect method using HTTP1.1 307 Temporary Redirect status code.

    But AFAIK this is not a common practice and not all web browsers may support this.

    Maybe server-side forward will suit your case.

    Update:

    If you want to send POST-redirect using spring-security API you may implement your own RedirectStrategy.

    DefaultRedirectStrategy uses response.sendRedirect that will result in 302 response code sending by servlet container (I’m not sure about every container, at least tomcat sends 302).

    Update 2:

    You may send 307 back setting response status and “Location” header yourself:

    resp.setStatus(SC_TEMPORARY_REDIRECT);
    resp.setHeader("Location", absoluteRedirectUrl);
    

    User-agent receiving this response must do next request using the same method that was used in previous request. So if first request was POST redirected request also will be POST.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need in wpf app check messages on server. I have own method which
I have my own control, derived from TCustomPanel . It has a child (
If have an own user control with a DependencyProperty and the corresponding callback method
We have own linux server, with a git server. But for some reasons we
i need to select change some data and change image in own form each
I have my own AppCotroller and using the beforeRender method to make changes to
I have few own APIs with around 2000 classes overall. Some of them use
I have my own custom element derived from StyledMultilineElement: public class SubmenuElement : StyledMultilineElement
I have my own web site (created in asp.net) on local IIS. From this
i have own class which is extends from UITableViewController. After this line MyClass *obj

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.