Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13275

Android: HTTPClient not sending POST vars

    Details

      Description

      When using the current SDK 2.1.4 the POST DATA is not sending on Android.
      A normal json format post is being send:

          //THIS IS NOT RECEIVED ON THE SERVER (ONLY ANDROID) ---
          var orderOptions = {};
          orderOptions.username = 'USERNAME';
          orderOptions.password = 'PASSWORD';
          orderOptions.somevar  = 'Some data';
       
          var client = Ti.Network.createHTTPClient({
      		onload : function(e) {
      			
          		}
      			
              },
              onerror : function(e) {
              	
              	if(errorCallback != null) {
          			errorCallback(false);
          		}
       
              },
              timeout : 5000
      	});
      	
          client.open("POST", 'http://www.somedomain.com/afile.php');
          client.setRequestHeader('Content-Type', 'text/html; charset=utf-8;');
          client.send(orderOptions);
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              patrickjongmans Patrick Jongmans
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16058
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code