Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2420] Blackberry: HTTPClient with Parameters Missing Ampersand.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2011-08-15T14:58:12.000+0000
Affected Version/sn/a
Fix Version/sBB Preview 2
ComponentsBlackBerry
Labelsblackberry, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T03:19:14.000+0000
Updated2011-11-21T07:12:38.000+0000

Description

See http://developer.appcelerator.com/helpdesk/view/57221">Helpdesk 57221

Attachments

FileDateSize
Untitled1.png2011-08-15T14:57:21.000+000099505

Comments

  1. Jon Alter 2011-08-15

    Marking as invalid. Test code below. Step 1: host the php code below Step 2: point the url to the php page that you just made Step 3: run the app below Step 4: notice the output is what was expected Attached screenshot of output
       <?php 
       	if(empty($_GET)) 
          		echo "No GET variables"; 
       	else 
       		print_r($_GET); 
       ?>
       
       var win = Ti.UI.createWindow({
         backgroundColor:'white',
         fullscreen: true
       });
       var label = Ti.UI.createLabel({
         text: "this will be the responseText",
         top: 105,
         width: 320,
         height: 300
       });
       win.add(label);
       
       var webView = Ti.UI.createWebView({
       
       });
       
       var xhr = Titanium.Network.createHTTPClient();
       
       var callparams = {
         a: 'Hello',
         b: 'World!'
       };
       
       xhr.onload = function() {
         var result = this.responseText;
         label.text = result;
         Ti.API.info("responseText: ["+result+"]");
         webView.html= result;
       };
       xhr.open("POST", 'http://192.168.34.76/resources/post.php');//GET method worked as well
       xhr.send(callparams);
       
       win.add(webView);
       win.open();
       

    Tested with

    Ti BB mobileSDK 1.7.0.RC2 BB Simulator 8520

JSON Source