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[Post] - HTTP POST を用いて指定した URL にデータをポストし、結果を取得
使い方
Post(uri, content, options)
パラメータ
uri
-
host、port、url パス(http://host:port/path/to/file の形式)
content
HTTP リクエストの内容
説明
Post は Get を拡張したものです。リクエスト URI によりデータを取得するだけでなく、Post で引数の content を用いて他のデータもサーバーに送ることもできます。このコマンドは、通常 HTML フォームによるデータ送信に利用されます。
Post はシーケンス(コード、コンテンツ、ヘッダー)を返します。ただし、コードはサーバーから送られるリターンコード、コンテンツはサーバーの返答内容の本体で、ヘッダーはテーブル形式となります。
オプション
headers=list
ヘッダー値のリスト。重複した値はひとつのカンマ区切りリストに統合されます。
timeout=posint
タイムアウトするまでのデータ待ち時間。
forcemode=name
text または binary の値をとり、サーバーが報告するコンテンツ・タイプにかかわらず指定したモードで転送。
互換性
HTTP[Post] コマンドは Maple 15 より導入されました。
Maple 15 の変更点についての詳細は、Maple 15 の更新情報 をご覧ください。
例
(status, data, headers) := HTTP:-Post("http://www.ssa.gov/cgi-bin/popularnames.cgi","year=1990&top=20&number=n", 'headers'=["Content-Type"="application/x-www-form-urlencoded"], 'timeout'=100):
HTTP:-Code(status);
type(data, 'string');
data[1..39];
type(headers, 'table');
headers["Content-Type"];
参照
HTTP, HTTP/Code, HTTP/Get
Download Help Document