Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Сазнај више

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.