08-15-2012 10:15 AM
I'm back here, BB is alive again.
I'm having an issue that's taking me more time than it should.
heres the scenario,
I have a service that I call like this: http://192.168.0.138/Cps.DomainConnector/CpsDomain
here everything works fine, but when I supply params, like this:
I get HTTP_CODE 400.
Here's the code to make the call:
final String url = MessageFormat.format(UrlBase.concat("GetCustomersC
URLEncodedPostData urlEncoder = new URLEncodedPostData("UTF-8", false);
String newUrl = urlEncoder.toString();
httpConnection = (HttpConnection) Connector.open(newUrl);
final int responseCode = httpConnection.getResponseCode();
I understand that que space inside the Date param should be coded as a %20, but apparently this is not happening, when I paste this URL into my desktop browser I get the expected result.
What am I missing?
Thanks in advance.