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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -