A little utility I just put together does that for you: Post Grabber detects POST data and generates an equivalent “curl” command that can be used in shell or Automator scripts.
Post Grabber works with its own internal browser, so it can intercept POST submissions directly. That means it works with HTTPS, unlike the traditional web sniffer approach.
Download the app, or see the source on GitHub.
Wow, this would have saved me about 8 hours of time a few weeks back.
This product is almost perfect.
Is there an option or a hack to change the User Agent :-)
One could definitely add one pretty easily – it’s just a matter of adding a call to [webView setCustomUserAgent:] in the awakeFromNib method of PGMainWindowController, if you felt like it =)