Community Questions & Answers

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...

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...

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...

Dynamic picker

Hi I'm developing a Android app and i'm using Titanium SDK 3.2.3. In my application i've to create one picker which receive data from a remote webservice (one title per row). I developed the following code, but I know that's not correct. Can anyone help...

Sending a message via HttpClient()

I'm doing an app to Android. In my application the user have to insert the name, the email, cell phone number and a message. When I click in "Send" the message will be dispatched. But if it is not being performed. Here is my code. What's...

Use textfield as input in PHP

Hi everybody, i have a problem. First of all, i'm a begginer, so maybe is a simply question.i'm creating an android app in windows 7, where there are two textfield containing hour and minute. I would that the other users see in their textfield the hour and...

HTTPClient Timeout On Error

Hi, Having trouble with timeout and onerror. When the HTTPClient timeouts, the onerror doesn't get called. This is the code: ~~~ var xhr = Titanium.Network.createHTTPClient(); Ti.API.info('Logging In:'); xhr.open('POST', url); xhr.send(); ...

Android HTTPClient write to ram

I'm using a HTTPClient on Android 4.4 to download a file. As the file is downloading its written to the app cache. I'm trying to find out how to stop this and make the file get written to the ram of the device since it just needs to be temporary.

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