Community Questions & Answers

appcelerator.https

Hi I really need to prevent man in the middle attacks and would like to implement the security manager for the http client. Is there a way to purchase this module or has anyone created a module for iOS and android to create the correct inputs for the...

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

Load data using HTTPClient or SQLite?

I've read [here](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Network.HTTPClient) that HTTPClient is intended for a single request. Currently I'm using HTTPClient for multiple requests (getting several xml files from a server to create...

Remove HTML from a string

Hi, with HTTPClient API, I receive a JSON string. Inside this string there is a key containing text in HTML format (with HTML and entities). Since I must dispay this text inside a TextArea, I must previously remove HTML and entities. How can I do? Any help...

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

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