Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

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

  • 1 Antwort
  • 1 hat dieses Problem
  • 1 Aufruf
  • Letzte Antwort von 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

Alle Antworten (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.