私は、この Web ページ ( http://consultawebvehiculos.carabineros.cl/index.php ) からの結果を使用する必要がある (楽しみのために) movil アプリケーションを作成することを計画しています。ネット コードでブラウザのインスタンスを作成し、この結果を読み取り、Web サービスを使用して公開する方法はありますか?
var IE= new broswer("http://consultawebvehiculos.carabineros.cl/index.php");
var result=IE.FindElementByID("txtIdentityCar").WriteText(YourIdentityCar);
publicToWebSerivce(result);
更新: Fiddler を使用すると、http 投稿が次のようなものであることがわかります。
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=
PHPページに接続するには、webclientのような.Netクラスが必要かもしれません...わかりません。
更新:最終的に、Fiddler を使用して合計パラメーターを知るソリューションを見つけ、http://www.hanselman.com/blog/HTTPPOSTsAndHTTPGETsWithWebClientAndCAndFakingAPostBack.aspxのコードを使用しました。