【发布时间】:2020-01-27 12:50:07
【问题描述】:
我有一个考试,我需要使用网络方法。请看下面的链接
https://www.w3schools.com/xml/tempconvert.asmx?op=CelsiusToFahrenheit
我不知道我做得对不对。
我不知道该打电话给哪个。所以我检查页面元素
我发现了这个
<form target="_blank" action="http://www.w3schools.com/xml/tempconvert.asmx/CelsiusToFahrenheit" method="POST">
<table cellspacing="0" cellpadding="4" frame="box" bordercolor="#dcdcdc" rules="none" style="border-collapse: collapse;">
<tbody><tr>
<td class="frmHeader" background="#dcdcdc" style="border-right: 2px solid white;">Parameter</td>
<td class="frmHeader" background="#dcdcdc">Value</td>
</tr>
<tr>
<td class="frmText" style="color: #000000; font-weight: normal;">Celsius:</td>
<td><input class="frmInput" type="text" size="50" name="Celsius"></td>
</tr>
<tr>
<td></td>
<td align="right"> <input type="submit" value="Invoke" class="button"></td>
</tr>
</tbody></table>
</form>
所以我打电话给http://www.w3schools.com/xml/tempconvert.asmx/CelsiusToFahrenheit
我尝试使用邮递员
但结果是
404 Not Found
在表单中粘贴 50 时也是如此。并单击 HTML 中的按钮
404 - Page not found
我的问题是我做得对吗?我现在真的很困惑。如果我在做什么是正确的。如果不是,那么正确的做法是什么
【问题讨论】:
-
端点需要
Content-Type: application/x-www-form-urlencoded,但我仍然测试了端点,看起来服务器端实现已损坏。
标签: html web-services post postman