{ "id": "60747", "key": "TIMOB-115", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11213", "name": "Release 0.7.0", "archived": true, "released": true, "releaseDate": "2009-10-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:02.000+0000", "created": "2011-04-15T02:23:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:52:02.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Here's a test case. the responseText comes back empty.

\n
\n<html>\n    <head>\n\n    </head>\n\n<body> \n    <div style='-webkit-border-radius:8px;\n    background-color:#FFFFCC;\n    border:#878787 solid 1px;\n    font-size:12pt;\n    overflow:hidden;\n    padding:0;\n    position:relative;\n    display:block;\n    height:auto;\n    width:auto;\n    margin:3px 9px 17px;\n    list-style:none'>\n        <p id='salmodia'>Carregando ...</p>\n    </div>\n    <script>\n    var xhr = Titanium.Network.createHTTPClient();\n    // set on ready state change function\n    \n    xhr.onreadystatechange = function() \n    {\n        if (this.readyState == 4)\n        {\n            Titanium.UI.createAlertDialog({message:this.responseText}).show();\n            document.getElementById('salmodia').innerHTML = this.responseText;\n        }\n    };\n\n    // open the client\n    xhr.open('GET','http://www.liturgiadashoras.org/Horas/1terca_laudes.htm');\n    \n    // send the data\n    xhr.send(null);\n\n    </script>\n</body>\n</html>\n
{html}", "attachment": [], "flagged": false, "summary": "HTTPClient doesn't seem to work with some URLs", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122777", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It turns out the page in question was in a Windows 1252 charset.\nThe fix has been made and pushed so that the charset is detected\n(not many charsets yet) and returned unmodified by responsetext.\nFor inserting in html, this is okay. However, calling titanium\nmethods with a non-UTF8 charset does run the risk of the API\ntreating it as Mac Roman.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:23:50.000+0000", "updated": "2011-04-15T02:23:50.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }