how to resume interrupted post request?

For pages that requires login, I know how to resume a get request by
save the url into session first, then do a redirect to that saved url.

but how do you resume a post request interrupted by login?

thank you.