Skip to content
EntityQ3399719· pop 7· linked from 5 articles

Post/Redirect/Get

Sign in to save

Also known as Redirect After Post, post-redirect-get

thumb|350px|right|Diagram of a double POST problem encountered in user agents. thumb|350px|right|Diagram of the double POST problem above being solved by PRG. Post/Redirect/Get (PRG) is a web development design pattern that lets the page shown after a form submission be reloaded, shared, or bookmarked without ill effects, such as submitting the form another time.

~2 min read

Encyclopedic overview

3 sections
Contents
  • Bookmarks
  • References
  • External links

thumb|350px|right|Diagram of a double POST problem encountered in user agents. thumb|350px|right|Diagram of the double POST problem above being solved by PRG. Post/Redirect/Get (PRG) is a web development design pattern that lets the page shown after a form submission be reloaded, shared, or bookmarked without ill effects, such as submitting the form another time.

When a web form is submitted to a server through an HTTP POST request, attempts to refresh the server response can cause the contents of the original POST to be resubmitted, possibly causing undesired results, such as a duplicate web purchase. Some browsers mitigate this risk by warning the user that they are about to re-issue a POST request.

Excerpted from Wikipedia’s “Post/Redirect/Get” article, available under the CC BY-SA 4.0 licence.

Available in 6 languages

via Wikidata sitelinks · CC0