Skip to main content
January 24, 2011
Question

FMS connection to external https server

  • January 24, 2011
  • 1 reply
  • 885 views

Hello and sorry, if this question is already been asked/answered. All I can find is this discussion (http://forums.adobe.com/thread/773705?tstart=30), but there is no answer to my case.

Our company is developing an application, which connects to https server when a client is joining/leaving the server. Here is a part of main.asc file:

application.onConnect = function(client, meetingId, mettingAttendeeId){

if(mettingAttendeeId){

trace('User client : "'+this.name+'" connected');

application.meetingId = meetingId;

client.mettingAttendeeId = mettingAttendeeId;

(new LoadVars()).send("https://www.domain.com/wsdev/AddMeetingAction.aspx?type=login&meetingId="+application.meetingId+"&mettingAttendeeId="+client.mettingAttendeeId);

}else{

trace('Player client : "'+this.name+'" connected');

}

Same is for application.onDisconnect.

The problem is, there are no packets coming for the https server. I have tried with https://www.domain.com:10000 - no difference. When I change to url to http://www.domain.com, even of port 443, there is no problem, the packets arrive.

I have checked the SSL Section of Server.xml (I will paste it, if needed), but I can not find any errors there. Even if the sertificate is wrong, I can not see any packets to the https port.

Can you please tell me what am I doing wrong? I have tried with 3.3.3, then upgraded to 3.3.5 - it's the same, still no traffic on https port.

Regards,

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    January 27, 2011

    Hi,

    I tried with my server using HTTP and found that it is owrking fine for me. My code snippet was looking like as below:

    ================================

    var my_lv = new LoadVars();
    my_lv.mode = "xml";
    my_lv.login = "zarihs@abc.com";
    my_lv.password = "breezerere";
    my_lv.onLoad = function (success)
    {
      trace('success: ' + success);
      trace('body->');
      trace(this.toString());
    }

    var file = new File("test.txt")

    application.onConnect = function(client)
    {
      if(my_lv)
      {
        trace('going to connect');
        (new LoadVars()).send("http://xxxxxx.abc.com/ding?login=zarihs@abc.com&password=breezerere&mode=xml", file, "GET");
      }
      else
      {
        trace('try some other object');
      }
     
      return true;
    };

    ================================

    Have used wireshark and was able to capture the traffic. Also, test.txt filled with the requested info.

    Can you please try GET method, by default it used POST method and let me know your findings here?

    January 27, 2011

      Hello, and thanks for the answer.

    HTTP protocol is working, it's HTTPS who causes trouble. Executing tcpdump on the Linux box does not show any activity when HTTPS url is used. I will try your advice and let you know.

    P.S As one of my coworkers said, the FMS version is 3.5.5, not 3.3.5.

    Regards,