• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Redirect - 302 or 307

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I am moving my application to a new host, and every so often I see an "Error 302 Found" page rather than the page I want. This happens when the user sends a POST request and I redirect them to a GET url - I do this after almost every POST, to prevent refreshes from double posting.
I've looked this up and it seems that this is a temporary redirect message, and the browser is NOT supposed to follow it.
It seems to me that I need a 307 redirect code instead.
I'm using response.sendRedirect() - is there anyway to configure this to send a 307 code instead of a 302 ?
Cheers
Steve
 
reply
    Bookmark Topic Watch Topic
  • New Topic