+ -
当前位置:首页 → 问答吧 → XML發送POST資料

XML發送POST資料

时间:2005-12-26

来源:互联网

用xml作發送資料, 如果是GET形式傳輸可以
http_request.open('GET', 'http://www.example.org/some.file?arg1=d&arg2=f', true);
那麼伺服器可以收到arg1, 和arg2這兩個參數, 但是如果是POST呢?
怎樣可以一次性發送兩個POST的資料?

作者: 蔚空   发布时间: 2005-12-26

open部分:
http_request.open('POST', 'http://www.example.org/some.file', true);
send部分:
http_request.send('arg1=d&arg2=f'');

作者: micahriven   发布时间: 2005-12-28