搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Set Content-Type: application/json for my webservice being hit in the browser

  • 1 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

Hi,

My webservice returns me a response in json format.

But when I directly invoke the REST ful webservice through a url in my mozilla I receive just a xml output and not the JSON.

Can anyone help me in this? i.e. how to set the Content-Type: application/json?

Thanks Vivek

Hi, My webservice returns me a response in json format. But when I directly invoke the REST ful webservice through a url in my mozilla I receive just a xml output and not the JSON. Can anyone help me in this? i.e. how to set the Content-Type: application/json? Thanks Vivek

所有回复 (1)

more options

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.