PHP中curl模块的设置为post后,如果设置post内容为一个数组,则默认并不是使用 Content-Type: application/x-www-form-urlencoded 编码的, 如果post内容为 a=A&b=B… 的形式,则使用 Content-Type: application/x-www-form-urlencoded 编码,示例如下:
这时候就不会添加Content-Type: application/x-www-form-urlencoded 头
这时候就会添加 Content-Type: application/x-www-form-urlencoded 头
也不知道这样的实现是友好还是2