[TIMOB-11849] BlackBerry: HTTP form-encoded data
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-11-24T18:48:02.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.1.0, 2012 Sprint 24, BB Preview 3 |
| Components | BlackBerry |
| Labels | n/a |
| Reporter | Josh Roesslein |
| Assignee | Josh Roesslein |
| Created | 2012-11-24T18:31:07.000+0000 |
| Updated | 2017-03-08T18:26:44.000+0000 |
Description
As a developer, I need the ability to send form-encoded POST data in a request.
Acceptance Test
Pass: alert pops up showing "success: foo=bar"var client = Ti.Network.createHTTPClient({ onload : function(e) { var response = client.responseText; Ti.API.info("Received text: " + response); var data = JSON.parse(response); alert('success: foo=' + data.form.foo); }, onerror : function(e) { Ti.API.debug(e.error); alert('error'); }, timeout : 5000 }); client.open('POST', 'http://httpbin.org/post'); client.send({foo: 'bar'});Closing ticket as resolved.