Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

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

  • 1 odgovor
  • 1 ima to težavo
  • 1 ogled
  • Zadnji odgovor od 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

Vsi odgovori (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.