locked
My app cannot accept Content-Type: application/x-javascript; is there any way to change this? RRS feed

  • Question

  • My app cannot accept Content-Type: application/x-javascript; is there any way to change this?

    The servers we use (over 34,000 of them),  simply cannot accept a Content-Type: application/x-javascript string from Microsoft Bing Translate.  Changing them is out of the question.

    It simply cannot be done in this gaming application. There are several hundred thousand current users of the app (out of a pool of 27 million), that we were going to switch from Google that are potential paid customers for  Bing.   The servers limit the content type of what they accept to text or html for security reasons, and will not trigger the app as a result. 

    Is there any way to get another content type back from the server? There was a similar problem with Google v2, but was able to get back text/text by changing API request settings.

    For translation of "uno dos tres", this is the response packet:

    The headers are:

    Cache-Control: no-cache
    Date: Wed, 26 Oct 2011 03:30:16 GMT
    Pragma: no-cache
    Content-Length: 18
    Content-Type: application/x-javascript; charset=utf-8
    Expires: -1
    Client-Date: Wed, 26 Oct 2011 03:29:19 GMT
    Client-Peer: 207.46.192.223:80
    Client-Response-Num: 1
    X-MS-Trans-Info: s=63743
    "one two three"

    I can only accept text/plain or text/html content types. 

    Is there any way around this? 

     

     




    • Edited by Ferdzee Wednesday, October 26, 2011 10:16 PM
    Wednesday, October 26, 2011 3:31 AM

All replies