内容标题问题 [英] Content header issue

查看:75
本文介绍了内容标题问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在测试一个返回json的网络服务



但它给出了404错误如果



内容类型 - 应用程序/ json在标题中



但它适用于



内容类型 - application / x-www-form-urlencoded; charset = UTF-8



可以使用默认的Content-Type - application / x-www-form-urlencoded; charset = UTF-8?



谢谢

解决方案

你遇到的问题是什么呢?

Hello,

I am testing a web service that returns json

But it gives 404 error if

Content-Type - application/json in header

but it works when

Content-Type - application/x-www-form-urlencoded; charset=UTF-8

Is it ok to use default Content-Type - application/x-www-form-urlencoded; charset=UTF-8?

Thanks

解决方案

whats the issue with what you r trying is it ?


这篇关于内容标题问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆