Bug Tracker


Ticket #4709 (closed feature: invalid)

Opened 5 years ago

Last modified 4 years ago


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


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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.