well, read it http://tools.ietf.org/html/rfc2388 and construct the post format properly,

sending data via "application/x-www-form-urlencoded" will not work or at least not considered standard for HTTP POST request that have raw binary data.