Re: connection.js - content type
>in our project we POST
> I am using connection.js, which I found to be very useful. However
> XML documents to the server. Unfortunately connection.js have'application/x-www-form-
> urlencoded' content-type hard-coded.specify additional parameter
> I have done a trivial modification to connecton.js which allows to
> for content type of posted data. For example we use it with'text/xml'. I hope this patch will
> be useful others developers and maybe it could even make it into thenext release. You can
> download it from the following URL:I've added this contribution to the feature queue for connection
manager, to remove the default content-type for POST.
> The default of "application/x-www-form-urlencoded" can be overriddenYour approach works under IE and Safari, but not under FireFox. Looks like once you set a
> if you set your own header before calling asyncRequest by setting your
> own values via initHeader.
header there, subsequent changes with different values does not take effect.