Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just spent a lot of time writing a wiki page with Firefox, submitted it only to have the VPN fail and the submission lost. Going back in the browser I find my edits are lost.

Is there any way to recover those edits? Is there an on disk cache file (I have grepped ~/Library/Caches/Firefox/Profiles/)? Can I trick Firefox into resubmitting?

I have seen this question on ways to prevent this in the future, and I normally use "It's All Text!" which avoids this problem, but I'd like to recover this specific lost edit.

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Don't change anything in that tab. Hit forward to get back to the connection error page, fix the network problem, and hit "Try Again". This will submit the original post.

share|improve this answer
    
I an ideal world, this works. But many sites badly break this. See my answer to come. –  Nicolas Barbulesco Apr 16 at 14:45

Extending on Schwern's answer, because in my case I'm unable to fix the fault:

Go forward to the failure screen again. In the menus selected Web Developer, Network, and then the 'Headers' tab, and hit the 'resend' button.

This should show you a form (so you can hack around with it) containing your lost content. It may not be in the most convenient format, but at least it's there.

Works for me, at least. I was actually sat here with the dreaded "your post fell down a hole" screen, and when I hit "back" I went back to some javascript which reset the form to blank (thanks Javascript!).

It's important to note that going forward means hitting the button next to the Back button. If you've gone back to the form and found your content lost, don't touch anything on the page which might try to send the newly-emptied content, because then your only choice will be rifling through the core dump but without any guarantee of success.

share|improve this answer
    
I have Network. But I don't have a Headers tab. I don't see the sent headers. –  Nicolas Barbulesco Apr 16 at 14:50

The Web browser definitely has the form data in memory. The difficulty is : How to retrieve this data ?

Here is my idea. I have not tried it. On paper, it works. This answer applies to Firefox and to other Web browsers.

In short : Reload the page, while examining the headers.

  1. Set up the machinery. We need a machinery to examine the HTTP traffic sent from the Web browser.
    • The best choice is the extension LiveHTTPHeaders for Firefox. But I think that installing this extension needs a restart of Firefox. Don't restart Firefox, of course ! It would be nice to be able to install this machinery without restarting Firefox. Otherwise, you just need to have this extension installed beforehand. If need arises, simply use a time machine. ;-)
    • If you cannot have the machinery ready in the Web browser, there is another option. This option is heavier. But its mighty strength is that it works for all Web browsers, and without restarting them. Install a simple Web server, or set up a proxy server (like Squid), on your machine. Make sure that your server logs the inbound traffic, with the full headers. And place a rule in the OS for redirecting all outbound requests towards 127.0.0.1. This can be done with a hosts file.
  2. Test the machinery. Create a new window in your Web browser. Write some text in Wikipedia here, and click Preview. Then verify that in your machinery you see your written text. If your machinery is the server option, you have to toggle off the redirection rule to load the Wikipedia form, and to toggle it on afterwards.
  3. To reload the page, right-click where the form was, and choose Reload. This is important. In some webmails, this will reload only the frame where the form was. Here we want to reload only as little as possible. If you click the button Reload in the address bar or in the button bar, or if you press Apple R, you risk reloading the whole page, and in some webmails this is shooting yourself in the foot.
  4. Normally, the Web browser will ask you : Do you want to send again the form data ? If you get this question, this is a good sign. Choose Send again.
  5. Examine the POST data sent, with the machinery set up in the step 1. Here you shall find your wanted data.
  6. Come tell us here that this solution has worked !
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.