Dear Bruce,
I finally installed fiddler to watch what the page is doing to read its table values.
If you run fiddler and fetch the follwing URL with the browser:
http://nuevo.bolsar.com/VistasDL/PaginaLideres.aspxthen choose "Cotizaciones/AccionesLideres" from the menu
you will see the page are posting a post to
POST
http://nuevo.bolsar.com/VistasDL/PaginaLideres.aspx/GetDataPack HTTP/1.1
Host: nuevo.bolsar.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Referer:
http://nuevo.bolsar.com/VistasDL/PaginaLideres.aspxContent-Length: 405
Cookie: __utma=132722449.1494634927.1338832271.1338859632.1339777845.3; __utmz=132722449.1338859632.2.2.utmcsr=200.68.94.242|utmccn=(referral)|utmcmd=referral|utmcct=/uVistaDataEspecie; ASP.NET_SessionId=evcuyhygsm5jvdijfw0p3k45; ckLng=ESP; __utmc=132722449
Pragma: no-cache
Cache-Control: no-cache
{"aEstadoTabla":[{"TablaNombre...............................
the values return are a string with JSON format like:
{"d":[{"TablaNombre":"tbAcciones","MRC":20000,"CantidadTotalFilas":15,"aTabla":[{"PrecioCompraCambiado":false,"PrecioVentaCambiado":false,"PrecioUltimoCambiado":false,"CantidadNominalCompraCambiada":false,"CantidadNominalVentaCambiada":false,"VolumenNominalCambiado":false,"VariacionCambiada":false,"TendenciaCambiada":false,"Simbolo":"ERAR","VencimientoID":4,"Estado":0,"CantidadNominalCompra":1000,"PrecioCompra":1.590,"PrecioVenta":1.600,"CantidadNominalVenta":21195,"PrecioUltimo":1.590,"PrecioCierreAnterior":1.580,"PrecioApertura":1.620,"Variacion":0.6329113924050632911392405063,"Tendencia":0,"PrecioMaximo":1.620,"PrecioMinimo":1.580,"VolumenNominal":244726,"MontoOperado":393128,"CantidadOperaciones":61,"HoraCotizacion":"13:31:30","HoraCotizacionNum":133130,"MensajeNro":15246}],"HoraUltimaCotizacion":"13:31:31","UltimaActualizacionListaEspecies":634753530041652909,"MensajeNro":15246,"HashCode":439470373},{"TablaNombre":"tbMontos","MRC":20000,"CantidadTotalFilas":0,"aTabla":[{"Descripcion":"Total negociado BCBA","Rubro":"RUBRO_TOTAL_NEGOCIADO_BCBA","Monto":343252274,"Porcentaje":100},{"Descripcion":"Total negociado acciones","Rubro":"RUBRO_TOTAL_NEGOCIADO_ACCIONES","Monto":60803385,"Porcentaje":17.71},{"Descripcion":"+++Cedears","Rubro":"RUBRO_TOTAL_MONTO_CEDEARS","Monto":1079724,"Porcentaje":0.31},{"Descripcion":"Renta fija","Rubro":"RUBRO_TOTAL_RENTA_FIJA","Monto":210897607,"Porcentaje":61.44},{"Descripcion":"Cauciones","Rubro":"RUBRO_TOTAL_MONTO_CAUCIONES","Monto":69518581,"Porcentaje":20.25},{"Descripcion":"Pase tomador","Rubro":"RUBRO_TOTAL_PASE_TOMADOR","Monto":0,"Porcentaje":-1},{"Descripcion":"Pase colocador","Rubro":"RUBRO_TOTAL_PASE_COLOCADOR","Monto":0,"Porcentaje":-1}],"HoraUltimaCotizacion":"13:31:07","UltimaActualizacionListaEspecies":0,"MensajeNro":15213,"HashCode":1},{"TablaNombre":"tbIndices","MRC":20000,"CantidadTotalFilas":0,"aTabla":[],"HoraUltimaCotizacion":"13:30:16","UltimaActualizacionListaEspecies":0,"MensajeNro":15141,"HashCode":1}]}
My problem is, I try to do the same post with the DEMO/WebClient/Generic Post NT app
Then I entry:
POst URL:
http://nuevo.bolsar.com/VistasDL/PaginaLideres.aspx/GetDataPackPOst String: (the same fiddler is catchig)
Host: nuevo.bolsar.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Referer:
http://nuevo.bolsar.com/VistasDL/PaginaLideres.aspxContent-Length: 405
Cookie: __utma=132722449.1494634927.1338832271.1338859632.1339777845.3; __utmz=132722449.1338859632.2.2.utmcsr=200.68.94.242|utmccn=(referral)|utmcmd=referral|utmcct=/uVistaDataEspecie; ASP.NET_SessionId=evcuyhygsm5jvdijfw0p3k45; ckLng=ESP; __utmb=132722449.2.10.1339777845; __utmc=132722449
Pragma: no-cache
Cache-Control: no-cache
{"aEstadoTabla":[{"TablaNombre":"tbAcciones","FiltroVto":"72","FiltroEspecies":"","FilasxPagina":-1,"MensajeNro":13579,"HashCode":439470373},{"TablaNombre":"tbMontos","FiltroVto":"","FiltroEspecies":"","PagActualNro":"1","FilasxPagina":-1,"MensajeNro":13555,"HashCode":1},{"TablaNombre":"tbIndices","FiltroVto":"","FiltroEspecies":"","PagActualNro":"1","FilasxPagina":-1,"MensajeNro":13554,"HashCode":1}]}
and when I post it I receive a totally differen response, something like an aspx page.
What am I doing wrong?
Thanks
Alberto