Heim >Backend-Entwicklung >PHP-Tutorial >,关于Content-Type:application/json,高手们,帮指点一下啊啊啊啊啊。

,关于Content-Type:application/json,高手们,帮指点一下啊啊啊啊啊。

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:27:041077Durchsuche

要求:HTTP Header中设置 Content-Type:application/json
代码如下,可是我不知道怎么改

1、 2、网上查header('Content-type: application/json');,于是在最上面加了个 ?>,哎呀妈呀,更不行了。

求高手指点一下, 我这样的代码,这个Content-Type:application/json到底咋弄呢。谢谢!





测试

 


    
      
      
    
    
      
      
    
    
      
      
    
  
大部门:
子部门:
    

  




回复讨论(解决方案)

你要干什么?
不就是个表单页吗?哪来的 json?

回楼上,钉钉企业号   需要HTTP Header中设置 Content-Type:application/json

我这个表单文件存为PHP的。

求助,我这个里面怎么加Content-Type:application/json这个玩意儿

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn