Community Questions & Answers

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.

HTTP Error Forbidden on Android

I have an iOS app that pulls json data from a url to populate table views. I have been tasked with now making an android version. After fixing various UI compatibility problems, I keep running into this error seemingly no matter what I do. ~~~ [ERROR] : ...

Synchronous http client

Hi, I have this code : ~~~~~ function downloadImage(url, filename){ var client = Ti.Network.createHTTPClient({ onload: function(f) { var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,...

XHR timeout error code as 0

Hi, I have an xhr network call in my app. where I want to check for timeout. But I am getting the status as "0" instead of "408" in both iOS and android. Please any one help me in this issue. It is happening in Titanium 3.2.2 SDK in...

HTTPClient keep-alive connection

Hi everybody, I need to set "Connection:keep-alive" in the HTTP request header. I tried both xhr.setEnableKeepAlive(true); xhr.setRequestHeader('Connection', 'keep-alive'); The sniffer tells me that the HTTP header still contains Connection:...

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