Error when creating request. POST request with a zero-sized post buffer is not supported

Am trying to download a unity package which i have in https secured site, And when i try to download it via WWW. Am getting the following error,

“Error when creating request. POST request with a zero-sized post buffer is not supported”

Am following the ref from WWWForm and following it only…

Can you please help me out ??

Thank you…

WWW reference page states:

The WWW class can be used to send both GET and POST requests to the server. The WWW class will use GET by default and POST if you supply a postData parameter.

But when you supply new WWWForm() or new byte[]{} parameter then you get that error POST request with a zero-sized post buffer is not supported (tested this right now on Unity 5.1)

So, it appears that you cannot do POST with empty post data with WWW class… You can send some fake data, or 0-byte like this:

var www = new WWW(url, new byte[]{0});

It is lame but it works for me

You simply have to add a Field (Ex.: sendForm.AddField(“fake”, “xy”))