php - Prevent Wordpress from adding headers to outgoing requests -
i'm making wordpress plugin makes http requests third party api. outside of wordpress works fine, when using on wordpress server, seems adding number of headers have duplicate headers, , request fails.
can me prevent wordpress adding duplicate content-type , content-length headers?
content-type: application/x-www-form-urlencoded user-agent: mozilla/5.0 (macintosh; intel mac os x 10_11_0) applewebkit/537.36 (khtml, gecko) chrome/49.0.2623.112 safari/537.36 content-length: 20 content-length: 20 content-type: application/x-www-form-urlencoded
i fixed doing hard filter in script making call, making sure headers in curl header array once.
Comments
Post a Comment