Community
Participate
Working Groups
I am trying to use the SWT browser to talk to a webserver that is expecting application/json content. However, when I 'post' data (using the browser API setURL(String, String, String[])) method, it *always* sets my content-type to application/x-www-form-urlencoded. Even if I specify a different content-type in the headers field, it gets replaced with application/x-www-form-urlencoded. This is happening in both Mozilla and Webkit (on Linux/GTK), I don't know about other platforms. It appears that both browser implementations will always set this field regardless of what other headers are set. Maybe we can check if these fields are already set, and use the existing values if so. (This appears to be the same for content-length too, although that's likely not as serious).
Fixed > 20111017, patch: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=016dc8e9d43c2ce1a2b2df6c6d7ccc20e421936e . The Mozilla and WebKitGTK implementations were the only ones that needed changes.
*** Bug 452090 has been marked as a duplicate of this bug. ***
*** Bug 452091 has been marked as a duplicate of this bug. ***
To date this log entry was reported 10 times. Your friendly error reports bot.
To date this log entry was reported 25 times. Your friendly error reports bot.
To date this log entry was reported 50 times. Your friendly error reports bot.