I have exactly the same problem with http post call in JavaScript. It has to be the hash method as I can change the hash string and it doesn't care when I send it. Get the invalid command return on all private post calls, even after Poloniex guy sent me a sample call for the post call. I am stumped as well at this point, but will post if I figure it out.
Best of Luck!