Community Questions & Answers

HTTPS Client Call

Hi all, I was asked to create a mobile app for an organization that demands secure connections between their web services and the mobile app HTTP calls. As far as I know, using an HTTP Client call and just calling the website (or web service) using...

onstream problem on Android

Hi experts, I used createHTTPClient and it worked for iOS but Android version ondatastream does not work only onload function works. Here is the short version of the code that I use. ~~~ var opensession = Ti.Network.createHTTPClient({ onload : function()...

HTTPClient JSON issue

Hi, using HTTPClient, I want to send to a server side page a JSON like this with POST request: ~~~ {"key1":"string","key2":{"foo":"bar","baz":"ar"}} ~~~ I found this interesting code...

iOS 7 -> iOS 8 HTTPClient issues

I'm making a time tracking app. Developing my app on ios 7, everything worked perfectly. After I upgraded to ios 8, not so much. I'm using a custom version of the restsql adapter here - https://github.com/viezel/napp.alloy.adapter.restsql I can retrieve...

HTTP request and module nidification issue

Hi, I use this very useful code by Malcolm Hollingsworth to make ajax requests (I don't post the entire net module, it's very easy to find using this forum): ~~~ var Net = Require('/net'); Net.download({ method: 'POST', // GET is default url:...

HttpClient Authentication not sent

I am trying to implement a call to a REST API of GameAnalytics.com I included their Javascript at the bottom. I seem to have followed their guide but I get the following error. ~~~ [INFO] : { [INFO] : code = 3; [INFO] : error =...

HTTPClient timeout retry pattern

I'm developing for iOS and I have a lot of issues with the timeout error, not depending from server side. If I try immediately after a timeout it works well, both on simulator and physical devices, situation is worse if connected to a 3G network of...

Get data from webpage

Hello everyone, ive made a small piece of code in titanium to get data from a webpage. But when i run the application and press the button that will trigger the function it doesn't show the data. Can someone explain to me what i am doeing wrong, and why...

Http client error

Application type:mobile,Titanium sdk:3.3.0 GA,OS:Mac OSX 10.9.3,Titanium studio:3.3. Hi, I am not able to connect with server using Http client in both android and ios.It was working fine before ~~~ [ERROR] : TiHttpClient: (TiHttpClient-1) [36311,43196]...

HTTPClient on android.

I had created a httpclient on android for load data from comet service (comet service return data same you Ping to a web address on cmd of window, no limit data return). Sample data. ~~~ {"ping": "1407143456.88"} {"ping":...

https not work on titanium 3.3.0

Hi. i have a problem when i create a HTTPclient, i get data from server by: ~~~ xhr.open("GET", 'https://domainname/login?user=user&pass=password'); ~~~ if i used titanium vs 3.2.2 is working ok but titanium 3.3.0 it alway go to onerror. My...

Help HTTPclient response ?

Hi all. I just meet a problem so need any help from everyone. I create one Ti.Network.HTTPclient , i "GET" data from server and server return data frequent (same you ping www.google.com in cmd window). So i don't know how to get if new response...

http connection problem

hi, I am on working on a titanium app for android. from the app i am trying to connect to my localhost. But its showing an error like the connection is refused or something like that. Here I am providing my code. ~~~ var loginReq =...

Titanium SDK 3.3.0 Http Error?

Hey, i am using Kinvey as a backend and trying to make a "normal" http call to them: ~~~ var xhr = Ti.Network.createHTTPClient({ onload: function(e) { console.log(this.responseText); alert('success'); }, ...

Mobile Web Http Client Request

Am using 3.2.2.GA sdk, Alloys and chrome and mozilla for development. I have set CORS for my Jetty server. and its working fine. I have tried to send an ajax from titanium but I dont know what may be the problem. I always getting **cant reach host**, when...

http 303 error using SDK 3.3.0

OSX 10.9.4 Ti Studio 3.3.0.20140710 SDK 3.3.0 Just updated SDK to 3.3.0 and all my HTTP calls started returning 303 errors ~~~ },"code":303,"error":"The operation couldn’t be completed. (kCFErrorDomainCFNetwork error...

Showing 1-50 of 1,029 1 2 3 4 5 621