Modify ↓
Ticket #4709 (closed feature: invalid)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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