{{{ GoogleAdsense
<script type="text/javascript"><!--
google_ad_client="pub-3720045127958150";
google_ad_host="pub-9941151214016196";
google_alternate_color="FFFFFF";
google_ad_width=468;
google_ad_height=60;
google_ad_format="468x60_as";
google_ad_type="text_image";
google_color_border="003399";
google_color_bg="EEEEEE";
google_color_link="0000FF";
google_color_url="0000FF";
google_color_text="000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
}}}
[FrontPage ← 前のページに戻る]
== HTTPクライアント機能によるWWW情報の取得と加工
注) このプログラムは、デカルト言語のリリース0.23.0から動作します。
デカルト言語のHTTPクライアント機能とHTMLの加工機能により、任意のインターネット上の情報を取得して加工することが出来ます。
なお、ダウンロードには、実行例のパッケージとして次のものを用意しました。Windows上で動作するプログラムです。
[[BR]]
- [http://sourceforge.jp/projects/descartes/scm/svn/blobs/head/trunk/descartes/example/httpclient/denryoku.dec 2012年夏版 全国電力供給状況表示プログラム V1.0]
- [http://sourceforge.jp/projects/descartes/scm/svn/blobs/head/trunk/descartes/example/httpclient/headline.dec ニュースヘッドライン表示プログラム V1.0]
- [http://sourceforge.jp/projects/descartes/scm/svn/blobs/head/trunk/descartes/example/httpclient/keizai.dec 経済指標表示プログラム V1.0]
[[BR]]
説明については、クライアント機能だけではなく、WWWサーバ上のWWWアプリとするための説明も行います。
=== 処理のイメージ
HTTPクライアント機能により、目的WWWサイトのhtmlファイルを取得し、必要な情報を抜き出して
それを加工し、HTTPサーバで公開するような処理を行うことが可能です。
=== [ExHttpSample 1. HTTPクライアントとHTTPサーバの例題]
=== [ExHttpPred 2. HTTPクライアント機能]
=== [ExHttpIconv 3. コード変換機能]
=== [ExHttptag 4. HTTPタグ加工機能]
=== 5. HTTPサーバ
=== [ExHttpKnowhow 6. HTTPクライアント機能で取得したHTMLファイルを加工するコツ]
{{{ GoogleAdsense
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3720045127958150";
/* 728x90, 作成済み 10/04/09 */
google_ad_slot = "4963196949";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
}}}