I am planning create a movil application (for fun) that should use the result from this web page (http://consultawebvehiculos.carabineros.cl/index.php). is there any ways to create a instance of a browser in my Net code and read this result and publish it using a web service.. something like:
var IE= new broswer("http://consultawebvehiculos.carabineros.cl/index.php"); var result=IE.FindElementByID("txtIdentityCar").WriteText(YourIdentityCar); publicToWebSerivce(result); Update: Using Fiddler i can see that http post is somthing like that:
POST http://consultawebvehiculos.carabineros.cl/index.php HTTP/1.1 Host: consultawebvehiculos.carabineros.cl Connection: keep-alive Content-Length: 61 Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Origin: http://consultawebvehiculos.carabineros.cl User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17 Content-Type: application/x-www-form-urlencoded Referer: http://consultawebvehiculos.carabineros.cl/index.php Accept-Encoding: gzip,deflate,sdch Accept-Language: es-ES,es;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 accion=buscar&txtLetras=CL&txtNumeros1=sk&txtNumeros2=12&vin= May be i need some .Net class like webclient in order connect with the php page...no sure.
UPDATE: I finally i found the solution using Fiddler to know the total parameters and I've used the code from http://www.hanselman.com/blog/HTTPPOSTsAndHTTPGETsWithWebClientAndCAndFakingAPostBack.aspx