in partnership with mediatemple

Ticket #347 (new defect)

Opened 10 months ago

Last modified 2 days ago

xmlrpc uncountered problem and solved under IE7

Reported by: vincent@… Owned by:
Type: defect Priority: minor
Milestone: Mootools version 1.3 Component: Core
Keywords: xmlrpc ie7 Cc:

Description

i needed to make xmlrpc, and i use an XHR instance with text/html header. But under IE7, i found that's this navigator override header content with application/urlencode followed by text/html... I solved my problem by adding an option in XHR class which provide the option for overriding header Content-Type (default:false). If set to true, Content-Type is set only to text/html as :

var myXhr = new XHR({ headers: {'Content-Type':'text/xml'},

method: 'post',
override: true,
onFailure: function() {console.log(this);},
onSuccess: this.handleEvent_receivedResponse.bind(this)


});

AND in mootools XHR.send:

if(this.options.override==true){this.headers = this.options.headers;}
else{$extend(this.headers, this.options.headers);}

It could be pretty god to have such an option in a future release, surely better implemented than mine.

vincent
ps:sorry for my english but i'm french! and thanks a lot for your pretty good work !

Change History

Changed 8 months ago by ibolmo

  • milestone changed from Mootools version 1.2 to Mootools version 1.3

Changed 2 days ago by tomocchino

  • owner deleted
  • component set to Core
  • milestone set to Mootools version 1.3
Note: See TracTickets for help on using tickets.