Request headers in Firefox clears POST data

We are using this constructor for WWW:

new WWW(url, postData, headers)

in order to pass in custom request headers to our server endpoint.

Doc: Unity - Scripting API: WWW.WWW

This works as expected in Chrome. However, when using this request format in Firefox, the headers are sent but the POST (form) data is not. Obviously this makes the call useless.

Is this a Unity issue or a Firefox issue?

Thanks.

I’m not aware of any such issues. Maybe you could file a bug with a repro case - and post the case number here for us to take a look? (Note that all of Unity R&D is doing a HackWeek this year, and we will not get to look at it before next week).

Will do, thanks. Have fun with HackWeek!

Looks like the data being sent is valid, it is just handled differently in Firefox than in Chrome and we need to accommodate. Not a bug.