【发布时间】:2012-01-12 06:12:24
【问题描述】:
我用:
wget --no-check-certificate --http-user=user --http-password=secret --header="Content-Type:text/xml" --post-file=request.xml https://mydominain.com/xml
发送一个xml请求。
xml 文件 (request.xml) 是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<request method="switchvox.call">
<parameters>
<dial_first>1111</dial_first>
<dial_second>2222</dial_second>
<dial_as_account_id>1127</dial_as_account_id>
<caller_id_name>John Doe</caller_id_name>
</parameters>
</request>
在编写程序之前,我需要测试一些 xml 请求。
是否可以使用浏览器发送相同的请求? 是否可以在浏览器中使用复制粘贴来测试请求? 是否可以在浏览器请求中发送 xml 文件?
【问题讨论】:
标签: xml xmlhttprequest