Stack Overflow in Spanish

[0] Se está intentando impulsar un Stack Overflow en español en el Area 51 de Stack Exchange (la zona donde la gente sugiere y vota por nuevos proyectos del estilo Q&A). Se necesitan todavía bastantes votos para pasar a una fase beta. Podéis revisar el proyecto y si queréis apoyarlo solo tenéis que registraros y pinchar en ‘commit’.

Gracias y un saludo.

[0] Mensaje original de barrapunto: http://barrapunto.com/articles/13/03/25/232258.shtml

Facebook Hacker Cup 2013

Hermosas palabras, alfabeto rabioso, pesos de letras, mucho procesamiento de por medio.

Consideraciones a tener en cuenta si participamos con PHP(de paso me sirve de checklist para el futuro)

1. memory_limit=3G , SI es una chanchada pero asi podrás terminar de procesar algunos retos

2. max_execution_time=360 que son los 6 minutos admitidos de procesamiento máximo aprox, preferible dejarlo a mas si se tiene una prueba de mucho procesamiento como permutaciones y combinatorias de conjunto de numeros mayores a 5.

ampliaremos… o no 🙂

EDITS

EDIT1: !:mejor usar command line

php-commandline-facebook-hackercup2013

EDIT2: segundo desafío terminado(regex rulz), el primero le falta procesamiento pero va por buen camino 🙂 (ciphers rulz)

EDIT3: si voy a probar algo exhautivo en javascript es mejor Chrome que Firefox, será por el V8 que dice tener? 🙂

EDIT 4: terminado el primer reto, las frecuencias ganan.

EDIT 5: terminado el tercer reto pero falló al procesar el archivo de entrada los 6 minutos no eran suficientes para PHP, al parecer no fué lo mas adecuado en este caso

Edit 6: el lenguaje no fue el problema, sino mas bien analizar los datos para cada serie ya que al número k+1 se volvían a repetir las salidas por tanto no era necesario continuar procesando. nice catch 🙂

Edit 7: nanomo a la próxima ronda, ronda 1, la anterior fué ronda de calificación a cual solo pasaron 10169 personas lo cual me lleva a pensar la poca concurreencia de gente que tuvo el evento o si la dificultad era demasiado lo cual no creo….

A mitad de camino para mi review de “PhoneGap Mobile Application Development Cookbook” packtpub

A mitad de camino para mi review de “PhoneGap Mobile Application Development Cookbook”  packtpub

Probablemente el título mas largo que escribí al momento, quizá gane mas en visitas que en lo que me reintegra packtpub por mi review, debo decir que realmente es interesante la cantidad de tips y códigos para usar la mayoría de las funcionalidades que nos permite el stack de PhoneGap/Cordova, no solo eso, sino también que plantea muchos workarounds a problemas puntuales que nos ahorrarán horas de pruebas, googleo y tirada de pelos.

Enlace al Ebook, para comprar obvio!

320 páginas de puro rock, javascript y tips…

http://www.packtpub.com/phonegap-mobile-application-development-cookbook/book

Blackberry XHR issues

Nuevamente a postear!

Luego de mas de un año de abandono del blog vuelvo a documentar un issue que encontré  en los dispositivos Blackberry con sistema operativo 7.0 o menor.

Al desarrollar una aplicacion para moviles es casi indispensable hacer uso de peticiones XHR [1].

En dispositivos BB se experimenta una diferencia en cuanto al comportamiento de estas peticiones si comparamos sus resultados en el emulador, navegador o en el propio dispositivo.

Background del tema 🙂

Para entender porque estamos hablando de XHR es necesario tener en cuenta que use JQM  v1RC y PG v1 como wrapper.

Se trabaja sobre Blackberry WebWorks 2+ y en sistemas operativos BB OS 4.6, 5.0, 6.0 y 7.0

Tanto en el dispositivo como en el emulador el comportamiento es correcto si no se encuentra problemas con Javascript, un ejemplo:

        function onErrorOTGS(jqXHR, textStatus, errorThrown)
		{

            // handle an error
			console.log(jqXHR.statusText);
			if (jqXHR.status === 0) {
			 alert('Not connect.\n Verify Network.');
            } else if (jqXHR.status == 404) {
                alert('Requested page not found. [404]');
            } else if (jqXHR.status == 500) {
                alert('Internal Server Error [500].');
            } else if (exception === 'parsererror') {
                alert('Requested JSON parse failed.');
            } else if (exception === 'timeout') {
                alert('Time out error.');
            } else if (exception === 'abort') {
                alert('Ajax request aborted.');
            } else {
                alert('Uncaught Error.\n' + x.responseText);
            }
        }  

       function _doLogin(){
 console.log('click ajax');
                var formData = $("#frmdoLogin").serialize();
                $.ajax({
                    type: "POST",
                    url: "http://opentags.com.ar/clientes/wg/capp/mobile/bb/jsons.php",
                    cache: false,
                    data: formData,
                    success: onSuccessOTGS,
                    error: onErrorOTGS
                });

                return false;
            }

La diferencia radica en que el navegador del dispositivo devuelve 

jqXHR.status = 0
Situación que no se da al iniciar ant load-simulator para empaquetar nuestra aplicación y así iniciarla como si de una app OTA se tratara.
El gran problema de esto es que aumenta considerablemente los tiempos de desarrollo y testing ya que no es lo mismo refrescar 
nuestro navegador o el del dispositivo a tener que empaquetar, iniciar el emulador y desplegar la aplicación.
Si bien para el proyecto este issue no afectaria su curso, ya que lo importante es que funcione empaquetada, igual me decidi a trastear que pasaba,
ya que en teoria el proyecto empaquetado se ejecuta dentro de un BrowserView del core de las clases Java provista por el SDK de RIM, y al final es como
si se ejecutase en el mismo navegador.

El debugger de ant y el aplicativo del SDK de BB nos muestra la siguiente salida al ejecutar una peticion XHR, la cual dara status 0 y corresponde a una solicitud realizada desde el navegador del dispositivo:

<2011-09-30 13:59:20.458 BRT>:[1267]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 CreatedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000a:829538668, ReceivingQu
eueSize = 1>
<2011-09-30 13:59:20.458 BRT>:[1268]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 StartExecuting, TAG = 1431027254, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIO
NID = 829538668, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = ht
tpc, PROTOCOL = TCP, PARAMETERS = [opentags.com.ar:80], SIZE = 584>
<2011-09-30 13:59:20.458 BRT>:[1269]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 EndExecuting, TAG = 1431027254, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONI
D = 829538668, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = http
c, PROTOCOL = TCP, PARAMETERS = [opentags.com.ar:80], SIZE = 584>
<2011-09-30 13:59:20.458 BRT>:[1270]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Available threads in DefaultJobPool = 9 running JobRunner: DefaultJobRunner-3>
<2011-09-30 13:59:20.475 BRT>:[1271]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: DefaultJobRunner-3 started>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION =>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = POST /clientes/wg/capp/mobile/bb/jsons.php HTTP/1.1>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = [Headers Section]: 12 headers>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Accept-Encoding:gzip,deflate>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = x-wap-profile:"http://www.blackberry.net/go/mobile/profi
les/uaprof/9800_umts/6.0.0.rdf">
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = profile:http://www.blackberry.net/go/mobile/profiles/uap
rof/9800_umts/6.0.0.rdf>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Referer:http://192.168.1.104:8080/sm/www/>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Accept:text/html,application/xhtml+xml,application/xml,a
pplication/x-javascript,*/*;q=0.5>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Content-Length:24>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Accept-Language:en-GB,en;q=0.5>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = x-rim-conttime:10000>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = User-Agent:Mozilla/5.0 (BlackBerry; U; BlackBerry 9800;
en-GB) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.227 Mobile Safari/53
4.1+>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Origin:http://192.168.1.104:8080>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Content-Type:application/x-www-form-urlencoded; charset=
UTF-8>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Host:opentags.com.ar>
<2011-09-30 13:59:20.475 BRT>:[1272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION =>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = POST /clientes/wg/capp/mobile/bb/jsons.php HTTP/1.1>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = [Headers Section]: 15 headers>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Connection:close>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = x-rim-original-accept:text/html,application/xhtml+xml,applicat
ion/xml,application/x-javascript,*/*;q=0.5>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Accept-Encoding:gzip,deflate>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = x-wap-profile:"http://www.blackberry.net/go/mobile/profiles/ua
prof/9800_umts/6.0.0.rdf">
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = profile:http://www.blackberry.net/go/mobile/profiles/uaprof/98
00_umts/6.0.0.rdf>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Referer:http://192.168.1.104:8080/sm/www/>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Accept:text/html,application/xhtml+xml,application/xml,applica
tion/x-javascript,*/*;q=0.5>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Content-Length:24>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Accept-Language:en-GB,en;q=0.5>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = x-rim-conttime:10000>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = User-Agent:Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-GB)
 AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.227 Mobile Safari/534.1+>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Origin:http://192.168.1.104:8080>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Via:MDS_4.1.5.26>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Content-Type:application/x-www-form-urlencoded; charset=UTF-8>

<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Host:opentags.com.ar>
<2011-09-30 13:59:20.506 BRT>:[1273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION =>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = HTTP/1.1 200 OK>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = [Headers Section]: 6 headers>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Content-Type:text/html; charset=ISO-8859-1>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Vary:Accept-Encoding,User-Agent>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Connection:close>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Date:Fri, 30 Sep 2011 16:59:21 GMT>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Server:Apache>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = Content-Length:19>
<2011-09-30 13:59:21.084 BRT>:[1274]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
668, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION =>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = HTTP/1.1 200 OK>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = [Headers Section]: 7 headers>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Content-Type:text/html; charset=ISO-8859-1>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Vary:Accept-Encoding,User-Agent>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Connection:close>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Date:Fri, 30 Sep 2011 16:59:21 GMT>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = x-rim-etag:"F81496D3908A95AD4DA5651FCB7FDD9FE7E7DC92">
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Server:Apache>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = Content-Length:19>
<2011-09-30 13:59:21.100 BRT>:[1275]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, H
TTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 13:59:21.115 BRT>:[1277]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: DefaultJobRunner-3 stopping>
<2011-09-30 13:59:21.115 BRT>:[1278]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: DefaultJobRunner-3 stopped>
<2011-09-30 13:59:21.115 BRT>:[1279]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Finished JobRunner: DefaultJobRunner-3, available threads in DefaultJobPool = 10
, time spent = 657ms>
<2011-09-30 13:59:21.115 BRT>:[1276]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 CreatedSendingQueue, DEVICEPIN = 2100000a>
<2011-09-30 13:59:21.131 BRT>:[1280]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 Sending, TAG = 1391198306, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = 8
29538668, SEQUENCE = 0, TYPE = DATA, SIZE = 151>
<2011-09-30 13:59:21.147 BRT>:[1281]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 Notification, TAG = 1391198306, STATE = DELIVERED>
<2011-09-30 13:59:21.147 BRT>:[1282]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 Receiving, TAG = 1431027255, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID =
 829538668, SEQUENCE = 1, TYPE = DISCONNECT-ORDER, SIZE = 0>
<2011-09-30 13:59:21.147 BRT>:[1283]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 StartExecuting, TAG = 1431027255, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIO
NID = 829538668, SEQUENCE = 1, TYPE = DISCONNECT-ORDER, SIZE = 0>
<2011-09-30 13:59:21.163 BRT>:[1284]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 RemovedSendingQueue, DEVICEPIN = 2100000a, CONNECTIONID = 829538668, QueueSize
= 1>
<2011-09-30 13:59:21.163 BRT>:[1285]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Device connections: AVG latency (msecs)0>
<2011-09-30 13:59:21.163 BRT>:[1286]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: ListenForClientsPackets stopping>
<2011-09-30 13:59:21.163 BRT>:[1287]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: ListenForClientsPackets stopped>
<2011-09-30 13:59:21.163 BRT>:[1288]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 RemovedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000a:829538668, ReceivingQu
eueSize = 0>
<2011-09-30 13:59:21.163 BRT>:[1289]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 EndExecuting, TAG = 1431027255, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONI
D = 829538668, SEQUENCE = 1, TYPE = DISCONNECT-ORDER, SIZE = 0>
<2011-09-30 13:59:24.774 BRT>:[1290]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 RemovedSendingQueue, DEVICEPIN = 2100000a>

El debugger de ant y el aplicativo del SDK de BB nos muestra la siguiente salida al ejecutar una peticion XHR, la cual dara status 200 y corresponde a una solicitud realizada desde la aplicación empaquetada:

<2011-09-30 14:05:18.617 BRT>:[1296]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 Receiving, TAG = 1431027256, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID =
 829538669, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = httpc,
PROTOCOL = TCP, PARAMETERS = [opentags.com.ar:80], SIZE = 452>
<2011-09-30 14:05:18.633 BRT>:[1297]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 CreatedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000a:829538669, ReceivingQu
eueSize = 1>
<2011-09-30 14:05:18.633 BRT>:[1298]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 StartExecuting, TAG = 1431027256, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIO
NID = 829538669, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = ht
tpc, PROTOCOL = TCP, PARAMETERS = [opentags.com.ar:80], SIZE = 452>
<2011-09-30 14:05:18.633 BRT>:[1299]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 EndExecuting, TAG = 1431027256, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONI
D = 829538669, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = http
c, PROTOCOL = TCP, PARAMETERS = [opentags.com.ar:80], SIZE = 452>
<2011-09-30 14:05:18.633 BRT>:[1300]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Available threads in DefaultJobPool = 9 running JobRunner: DefaultJobRunner-2>
<2011-09-30 14:05:18.633 BRT>:[1301]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: DefaultJobRunner-2 started>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION =>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = POST /clientes/wg/capp/mobile/bb/jsons.php HTTP/1.1>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = [Headers Section]: 10 headers>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = profile:http://www.blackberry.net/go/mobile/profiles/uap
rof/9800/6.0.0.rdf>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = x-wap-profile:"http://www.blackberry.net/go/mobile/profi
les/uaprof/9800/6.0.0.rdf">
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Accept:*/*>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Content-Length:24>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Accept-Language:en-GB,en;q=0.5>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = x-rim-conttime:10000>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = User-Agent:Mozilla/5.0 (BlackBerry; U; BlackBerry 9800;
en-GB) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.227 Mobile Safari/53
4.1+>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = origin:local://>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Content-Type:application/x-www-form-urlencoded; charset=
UTF-8>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Host:opentags.com.ar>
<2011-09-30 14:05:18.633 BRT>:[1302]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION =>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = POST /clientes/wg/capp/mobile/bb/jsons.php HTTP/1.1>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = [Headers Section]: 13 headers>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Connection:close>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = x-rim-original-accept:*/*>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = profile:http://www.blackberry.net/go/mobile/profiles/uaprof/98
00/6.0.0.rdf>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = x-wap-profile:"http://www.blackberry.net/go/mobile/profiles/ua
prof/9800/6.0.0.rdf">
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Accept:*/*>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Content-Length:24>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Accept-Language:en-GB,en;q=0.5>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = x-rim-conttime:10000>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = User-Agent:Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-GB)
 AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.227 Mobile Safari/534.1+>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = origin:local://>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Via:MDS_4.1.5.26>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Content-Type:application/x-www-form-urlencoded; charset=UTF-8>

<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Host:opentags.com.ar>
<2011-09-30 14:05:18.648 BRT>:[1303]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION =>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = HTTP/1.1 200 OK>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = [Headers Section]: 5 headers>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Content-Type:text/html; charset=ISO-8859-1>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Vary:Accept-Encoding,User-Agent>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Connection:close>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Date:Fri, 30 Sep 2011 17:05:19 GMT>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = Server:Apache>
<2011-09-30 14:05:19.212 BRT>:[1304]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = 829538
669, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION =>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = [Transmission Line Section]:>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = HTTP/1.1 200 OK>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = [Headers Section]: 6 headers>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Content-Type:text/html; charset=ISO-8859-1>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Vary:Accept-Encoding,User-Agent>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Connection:close>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Date:Fri, 30 Sep 2011 17:05:19 GMT>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = x-rim-etag:"F81496D3908A95AD4DA5651FCB7FDD9FE7E7DC92">
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = Server:Apache>
<2011-09-30 14:05:19.227 BRT>:[1305]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
 = HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = 829538669, H
TTPTRANSMISSION = [Parameters Section]: 0 parameters>
<2011-09-30 14:05:19.243 BRT>:[1306]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: DefaultJobRunner-2 stopping>
<2011-09-30 14:05:19.243 BRT>:[1307]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: DefaultJobRunner-2 stopped>
<2011-09-30 14:05:19.243 BRT>:[1308]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Finished JobRunner: DefaultJobRunner-2, available threads in DefaultJobPool = 10
, time spent = 610ms>
<2011-09-30 14:05:19.243 BRT>:[1309]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 CreatedSendingQueue, DEVICEPIN = 2100000a>
<2011-09-30 14:05:19.259 BRT>:[1310]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 Sending, TAG = 1391198307, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = 8
29538669, SEQUENCE = 0, TYPE = DISCONNECT-ORDER, SIZE = 149>
<2011-09-30 14:05:19.259 BRT>:[1311]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Device connections: AVG latency (msecs)16>
<2011-09-30 14:05:19.259 BRT>:[1312]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: ConnectionsInputStreamesReader0-DefaultJobRunner-2 stopping>
<2011-09-30 14:05:19.259 BRT>:[1313]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Th
read: ConnectionsInputStreamesReader0-DefaultJobRunner-2 stopped>
<2011-09-30 14:05:19.259 BRT>:[1314]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 RemovedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000a:829538669, ReceivingQu
eueSize = 0>
<2011-09-30 14:05:19.275 BRT>:[1315]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 Notification, TAG = 1391198307, STATE = DELIVERED>
<2011-09-30 14:05:19.494 BRT>:[1316]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Expire records from device storage that are expired or older than 0 hours; 6>
<2011-09-30 14:05:19.494 BRT>:[1317]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Expire records process ended; 6>
<2011-09-30 14:05:19.494 BRT>:[1318]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Admin. Task- refresh media management>
<2011-09-30 14:05:24.775 BRT>:[1319]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
 RemovedSendingQueue, DEVICEPIN = 2100000a>
<2011-09-30 14:05:44.603 BRT>:[1320]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Statistics save task started>
<2011-09-30 14:05:44.603 BRT>:[1321]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT =
Statistics save task finished -- number of rows inserted:5>
 
Si comparamos el valor HTTPTRANSMISSION de ambos logs, veremos que si bien se realiza exitosamente la peticion HTTP, en el caso del navegador
devuelve status = 0 ya que el proxy que renderiza las peticiones del navegador las bloquea al no aceptar determinados ¨Content-Type¨.
Este mismo proxy es el que decide si ¨las salidas¨ seran por el servicio de internet de Blackberry, por WAP del operador, etc.

Bug detectado y reportado 🙂

Conclusiones

Nos podemos volver locos si solo debuggueamos en una herramienta que simula vagamente lo que realmente sucederá al desplegar la aplicación nativa, en este caso me estoy refiriendo al navegador del dispositivo.

Para testing en OS 6 y 7 recomiendo Ripple una extensión para Chrome de la mano de RIM que nos permite ejecutar nuestras aplicaciones WebView comportándose TAL CUAL lo haría la aplicación nativa ejecutándose en el dispositivo (tanto físico como en emulador).

Como extra propongo una forma de debuggear nuestra app ya sea en el navegador del dispositivo, en el emulador o en el dispositivo físico.

Para ello se debe  incluir en el body incluimo <ul id=”console”></ul> y  el siguiente script: https://raw.github.com/gist/608947/2a9ccd81892556d1cf32a1c1763cc0558681dd3f/phonegap-console.js

Luego en el header, se debe incluir la siguiente hoja de estilos: https://raw.github.com/gist/608947/40b5cee252de978e1a0c75eb644db3b13b76da08/style.css

Ahora nos resta usar console.log, console.warn, etc. para que este debugger nos muestre en un lindo alert o porción de la pantalla la información necesaria, cosa que es mas complejo de realizar cuando se ejecuta  la aplicación en forma nativa.

[1]  XMLHTTPRequest: