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[Form] - 指定したURLにフォームデータを送付
使い方
Form(uri, formdata)
パラメータ
uri
-
host、port、url パス(http://host:port/path/to/file の形式)
formdata
フォームのコンテンツ(string=string のリスト形式)
説明
Form は、フォームデータを方程式のリストとして取り入れ、正しい HTTP リクエストとしてフォーマットする高水準コマンドです。
オプション
headers=list
ヘッダー値のリスト。重複した値はひとつのカンマ区切りリストに統合されます。
method - GET または POST の値をとる文字列。
フォームデータを get リクエスト、または post リクエストとして提供するか選択。デフォルトは POST。
timeout=posint
タイムアウトするまでのデータ待ち時間。
forcemode=name
text または binary の値をとり、サーバーが報告するコンテンツ・タイプにかかわらず指定したモードで転送。
互換性
HTTP[Form] コマンドは、Maple 15 より導入されました。
Maple 15 の変更点についての詳細は、Maple 15 の更新情報 をご覧ください。
例
(status, data, headers) := HTTP:-Form("http://www.ssa.gov/cgi-bin/popularnames.cgi",["year"=1990,"top"=20,"number"="n"]):
HTTP:-Code(status);
type(data, 'string');
data[1..39];
type(headers, 'table');
headers["Content-Type"];
(status, data, headers) := HTTP:-Form("http://www.wunderground.com//history/airport/CYKF/2010/05/13/DailyHistory.html", [HideSpecis=0,format=0], method="GET"):
data[1..160];
headers["Connection"];
(status, data, headers) := HTTP:-Form("http://chart.apis.google.com/chart", [chs="100x100", cht="qr", chl="http://mapleprimes.com/"]):
Warning, Content-Type not fully supported: image/png. Content retrieved as binary data.
type(data, 'rtable');
data;
参照
HTTP, HTTP,Code, HTTP,Post
Download Help Document