in reply to Re: /perl5.10/bin and linux
in thread Reaped: /perl5.10/bin and linux

I am new here. What should I do then?

Replies are listed 'Best First'.
Re^3: /perl5.10/bin and linux
by haukex (Archbishop) on Jul 23, 2018 at 20:41 UTC
      Once you've posted something, don't reload the page (normally, browsers should warn about resubmitting form data anyway)

      I think this is a bug.

      The usual way to handle a successful HTTP POST request is to redirect to a page that will be fetched via GET (instead of delivering the content directly in reply to the POST request). Reloading that page has no side effects like reposting. See also Post/Redirect/Get.

      Another option that needs more effort and more code is to include a token in the HTTP form that is send via POST, and to invalidate the token once it has been sent.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        It's more a worst practice than a bug. The browser does warn when resubmitting a POST. So the user has some control/feedback.