的wget --no檢查證書--http用戶=用戶--http密碼=祕密--header =「內容-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文件?