Community Questions & Answers

HTTPClient - iOS - The network connect was lost

Hi, I am testing my application in iPhone 5 simulator using 3.4.0.GA SDK. I am using Xcode 6 and OS X 10.10.1. Whenever I am making a HTTP call, every alternative call fails and gives an error "The network connection was lost". I did not test it...

HTTPClient timeout doesn't work?

So i have a client request - i can see it go to the client, and i can see the response. I have a timeout in my titanium code of 4500 (4.5 seconds). What I don't understand is that the app itself will take 12 seconds to send the message, and it doesn't...

login a website

I want to get some html data from a website, problem is I have to go through a login page(username and password only). Is it possible to login a website using Titanium.Network.createHTTPClient() or is there another way? example would be logging in to...

service based error

1.Application type: mobile 2.Titanium:3.4.1.GA 3.Platform & version: Android x.x, 4.Device:Android emulator or Samsung Galaxy s3 5.Host Operating System: Windows 8.1 6.Titanium Studio: Titanium Studio, build: 3.4.1.201410281727 (c) Copyright...

Chunk File Upload With Php

Hi All One issue that i have come across quite a lot with the titanium framework and especially android is outofmemory and i have other posts on the forum and the solution is definitely chunk file upload management. I am sure this would benefit a lot of...

Help with loop - JSON

hi, i´m reading data from my server, but only getting the first result of my json. i´m new with this and i don´t know how to make a loop, if someone can help me, that would be great. Sorry for my English this is my code ~~~ function get (){ var url =...

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

Showing 1-50 of 1,059 1 2 3 4 5 622