Bug Tracker

Ticket #4709 (closed feature: invalid)

Opened 5 years ago

Last modified 4 years ago

setRequestHeader

Reported by: phpbasic.com Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: setRequestHeader Cc: wajax@…
Blocking: Blocked by:

Description

Hi guys, I try set header when use ajax method post $.post('url.php',{

'title': 'title test', beforSend: function(o){

o.setRequestHeader('powered: mysite');

}

});

but not work, can you explain me how to setRequestHeader when use $.post Thanks

Change History

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Use $.ajax; the object in $.post is for data, not ajax options. If you need further help, ask on the forum.

Note: See TracTickets for help on using tickets.