Hi Pierre - pretty sure it's not a timeout problem. The socketTimeoutInterval is set to 5000 and the socket error is returned almost instantaneously.
It seems like it is a certificate problem after all. If I set libURLSetSSLVerification to false then it works in the app as well. The weird thing is that if works in the IDE without having to do this - it's as if the IDE is locating and handling the certificate correctly but the app isn't, even though the .pem file contains the right stuff and is loaded (if you don't load the .pem file then I can't connect to either of the servers). I'm stumped and am close to just setting libURLSetSSLVerification to false and forgetting about the .pem file altogether. My understanding from previous discussions around this is that my app's transactions will still be secure even if I do this (is that right?) but I would feel more comfortable if this stuff just worked! Terry... On 18/01/2012, at 07:16 PM, Pierre Sahores wrote: Did you try in testing different sockettimoutinterval values ? HTH, Le 18 janv. 2012 à 08:08, Terry Judd a écrit : More last minute network woes! I'm now having problems connecting to a particular server from an app but not from the IDE. From the app the connection info looks like this... socket selected: cats.medicine.unimelb.edu.au:443|6927 GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 Host: cats.medicine.unimelb.edu.au User-Agent: LiveCode (MacOS) socket error cats.medicine.unimelb.edu.au:443|6927 application verification failure ...nothing is returned and the socket doesn't appear to close. However, from the IDE I get this... socket selected: cats.medicine.unimelb.edu.au:443|6928 GET /api/announcements/?username=tsj2&api_key=####&date=2000-01-01%20AM HTTP/1.1 Host: cats.medicine.unimelb.edu.au User-Agent: LiveCode (MacOS) HTTP/1.1 200 OK Date: Wed, 18 Jan 2012 06:58:53 GMT Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.3 X-Powered-By: PHP/5.3.5 Content-Length: 12 Content-Type: text/html ...and the socket closes after a bit. Now, it's a secure connection and I've got the 'SSL and Encryption' library selected in the standalone builder. I've also included a .pem file with the necessary certificates (I know this works because I'm connecting to another secure server on a different subdomain - cc.medicine.unimelb.edu.au rather than cats.medicine.unimelb.edu.au - actually I think both of these subdomains are hosted on the same server). Any ideas on where I might be going wrong? Terry... Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne _______________________________________________ use-livecode mailing list [email protected]<mailto:[email protected]> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.widestep.fr<http://www.widestep.fr> : la première solution saas de développement sémantique sans programmation _______________________________________________ use-livecode mailing list [email protected]<mailto:[email protected]> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Dr Terry Judd Senior Lecturer in Medical Education Medical Eduction Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
