An intermediate step between a direct POST and using Firefox would be automating your Firefox with WWW::Mechanize::Firefox. This might give a hint whether there's some Javascript happening in Firefox which you didn't mimic yet.
Also, some websites don't like robots, so you might carefully set your user agent's identification to that of your Firefox.