Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1621] appcelerator.https module is not available for Titanium Studio

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-08-15T16:34:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
LabelsTCSupportTriage
ReporterAlejandro Saldivar
AssigneeMauro Parra-Miranda
Created2014-08-14T16:44:26.000+0000
Updated2016-03-08T07:38:06.000+0000

Description

According to the documentation of Titanium Studio says that to create a httpclient to connect to a url with https you have to add the property SecurityManager, otherwise create an exception in this documentation does not tell you how to generate the SecurityManager in Appcelerator Platform documentation says that to generate this securitymanager you need to add the module appcelerator.https and called through a require the issue is that the module does not exist in Titanium Studio and I'm in trouble because since the last release: 3.3.0 is no longer possible to request for httpclient my question is, is there any url where I can download this module? the only thing i found was a broken url: https://github.com/appcelerator-modules/appcelerator.https what solution do you propose? regards

Comments

  1. Mauro Parra-Miranda 2014-08-15

    Hello, the appcelerator.https is only available for Appcelerator Studio users. Best Regards
  2. Alejandro Saldivar 2014-08-15

    ok, so i assume that in titanium studio is not longer possible to connect to https urls?
  3. Mauro Parra-Miranda 2014-08-15

    Hello, You can connect to any https webservice via your httpclient without issues. Appcelerator.https is focused to detecting man in the middle attacks.
        var url = "https://www.appcelerator.com";
        var client = Ti.Network.createHTTPClient({
            // function called when the response data is available
            onload : function(e) {
                Ti.API.info("Received text: " + this.responseText);
                alert('success');
            },
            // function called when an error occurs, including a timeout
            onerror : function(e) {
                Ti.API.debug(e.error);
                alert('error');
            },
            timeout : 5000  // in milliseconds
        });
        // Prepare the connection.
        client.open("GET", url);
        // Send the request.
        client.send();
       
    Best Regards
  4. Alejandro Saldivar 2014-08-15

    my bad, i thought it was necessary to use this module, i was wrong thanks mauro, i appreciate
  5. Gertjan Smits 2014-11-06

    So does this mean that in order to detect mitm attacks, a securityManager needs to be created, and this can only be done via the appcelerator.https module (or custom created module)? Or can this also be done in pure JS?

JSON Source