[TIMOB-2420] Blackberry: HTTPClient with Parameters Missing Ampersand.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2011-08-15T14:58:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | BB Preview 2 |
| Components | BlackBerry |
| Labels | blackberry, defect |
| Reporter | Don Thorp |
| Assignee | Don Thorp |
| Created | 2011-04-15T03:19:14.000+0000 |
| Updated | 2011-11-21T07:12:38.000+0000 |
Description
See http://developer.appcelerator.com/helpdesk/view/57221">Helpdesk 57221
Attachments
| File | Date | Size |
|---|---|---|
| Untitled1.png | 2011-08-15T14:57:21.000+0000 | 99505 |
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