Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11849] BlackBerry: HTTP form-encoded data

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-11-24T18:48:02.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2012 Sprint 24, BB Preview 3
ComponentsBlackBerry
Labelsn/a
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2012-11-24T18:31:07.000+0000
Updated2017-03-08T18:26:44.000+0000

Description

As a developer, I need the ability to send form-encoded POST data in a request.

Comments

  1. Josh Roesslein 2012-11-24

    Acceptance Test

        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'}); 
       
    Pass: alert pops up showing "success: foo=bar"
  2. Lee Morris 2017-03-08

    Closing ticket as resolved.

JSON Source