Skip to content

Instantly share code, notes, and snippets.

@philipsharp
Created April 18, 2012 13:37
Show Gist options
  • Save philipsharp/2413604 to your computer and use it in GitHub Desktop.
Save philipsharp/2413604 to your computer and use it in GitHub Desktop.
Bookmarklet to re-assemble POST data from RequestBin
javascript:(function(){var rid=prompt('Request ID:');if(rid.slice(0,1)!='#')rid='#'+rid;prompt('POST data:',$.makeArray($(rid+' .content-view li').map(function(){var n=$(this).clone();return $('div',n).detach().text() +'='+ encodeURIComponent(n.text())})).join('&'));})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment