Community Questions & Answers

TCP socket write blob

Hi, I want to write a blob into a tcp socket using the HTTP protocol. If I try to write only text, the response is read correctly, but when I insert a file (video or image) i got a wrong string and the client remains hanging. I think the problem is that...

Android probelm with HTTPClient

I'm porting my iPhone app over to Android and am having a problem with the HTTP Client. Here is my code: ~~~ win.refresh = function() { activity.show(); var loader = Titanium.Network.createHTTPClient(); loader.setTimeout(10000); loader.onload =...

send file to app TCPSocket

Hi What I would like to achieve is that send a file from the web browser to the app, on the app side, I need to receive the file and be able to process it. for?example In the browser, key in http://192.168.11.1:1234/app and inside the app, listen for the...

Titanium web app OPTIONS instead of GET

I'm trying to compile a Titanium app for Web. When I try to contact the server via http request in the browser console I see a OPTIONS method instead of a GET method: ~~~ var request = Ti.Network.createHTTPClient(); request.open('GET', url); ...

JSON http request working example here

I looked around and saw several questions about how to make this work, but no complete example for noob's like me. (or at least I didn't find one) So here is one: **sample.php** ~~~ <?php echo...

JSON parser broken

Well, it seems that it's not an error. This is the way Titanium represents JSON objects. Please ignore my post! Thanks! ========== Hi guys, Do you have problems with JSON parsing after getting some data out Titanium Network HTTP client in the Android...

Generic class to fetch resources over HTTP

Hi All, i'm trying to create a general class which i can instantiate, fetch a resource and let my other code know the resource has been fetched, as it can continue script execution (as synchronous mode does not function properly). The thing i keep...

Can you compress a JSON call?

Hey Guys I am sending data to a webservice for processing, before it is magically sent back to the device to display nice useful data to the user. The problem is I am potentially going to be sending a LOT of GPS coordinates. I really want the app to...

Play audio on Android

Hey, I'm creating an audio streamer by hand. The problem is that I need to progressive download the audio data, that's why I didn't use the Titanium's audio streamer. I'm using Titanium.Network.HTTPClient. How may I feed an audio buffer with the data...

Waiting for an HTTP Client to finish loading?

I am trying to build an app that is 100% based around getting information from web pages. I am brand new to Appcelerator. Right now according to my logging, my app tries to get the information from the web page, then leaves the function and displays that...

What does api.appcelerator.net do?

I have noticed that when I attempt a simple http request - the app (in the simulator) also tries to connect by https to api.appcelerator.net (which resolves to an amazonaws ec2 server). Why would this be needed? What data is being passed there?

Download and parse a JSON file

Hey! I need to acces to a webservice; that returns me a JSON file... The service is set on Force Download; so i think i must write in a file; then read it. There is no result; so here's my code; if anyone can help me: ~~~ var xhr3 =...

Showing 1-50 of 75 1 2