I\'m facing a problem to get return value (content-type: \"text/xml\"). I\'m able to get return value by direct access this URL:
https://[domain_name]/myfolder
I don't understand why you use the dataType ?
What you want/need is contentType.
From api.jquery.com :
dataType (default: Intelligent Guess (xml, json, script, or html)) Type: String The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response.........
contentType (default: 'application/x-www-form-urlencoded; charset=UTF-8') Type: String When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax().............
Hope this can help