Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
HTTP[Get] - HTTP GET メソッドを用いて指定した URL からデータを取得
使い方
Get(uri, options)
パラメータ
uri
-
host、port、url パス(http://host:port/path/to/file?query 形式)
説明
Get メソッドは、リクエスト URI で指定した情報を(エンティティーの形で)取得します。
現在は、テキスト型のコンテンツだけがサポートされています。
Get はシーケンス(コード、コンテンツ、ヘッダー)を返します。ただし、コードはサーバーから送られるリターンコード、コンテンツはサーバーの返答内容の本体で、ヘッダーはテーブル形式となります。
オプション
forcemode=name
text または binary の値をとり、サーバーが報告するコンテンツ・タイプにかかわらず指定したモードで転送。
headers=list
ヘッダー値のリスト。重複した値はひとつのカンマ区切りリストに統合されます。
timeout=posint
タイムアウトするまでのデータ待ち時間。
互換性
HTTP[Get] コマンドは Maple 15 より導入されています。
Maple 15 の変更点についての詳細は、Maple 15 の更新情報 をご覧ください。
例
(status, data, headers) := HTTP:-Get("http://www.maplesoft.com/", timeout=100):
HTTP:-Code(status);
type(data, 'string');
data[1..72];
type(headers, 'table');
headers["Content-Type"];
(status, data, headers) := HTTP:-Get("http://www.maplesoft.com/common/images/logo.jpg"):
Warning, Content-Type not fully supported: image/jpeg. Content retrieved as binary data.
data;
HTTP:-Get("http://0.0.0.0");
エラー。(HTTP:-Get) ポート 80 の 0.0.0.0 に TCP 接続を確立できません。
参照
HTTP, HTTP/Code, HTTP/Post
Download Help Document