有谁知道我是否可以创建HTML表单来搜索DHL跟踪网站? http://www.dhl.co.uk/en/express/tracking.html
我尝试过使用以下内容但是出现了“维护错误”的错误:
<!DOCTYPE html>
<!--[if IE]>
<![endif]-->
<html><head><meta charset="utf-8" />
</head>
<body>
<form action="http://www.dhl.co.uk/content/gb/en/express/tracking.shtml?brand=DHL&AWB=1212121212" method="post">
<input type="submit" value="go" />
</form>
</body>
</html>
我是否必须使用API?
答案 0 :(得分:2)
以下HTML跟踪示例可让您将单个运单号插入跟踪字段,并通过现有网页提交请求。此链接将您带到DHL跟踪屏幕,自动填充货件信息。
<html>
<head>
<title>DHL - Track By Tracking Number</title>
</head>
<body>
<form name="form1" method="get" action="http://www.dhl-usa.com/content/us/en/express/tracking.shtml?">
< input type=hidden name=brand VALUE="DHL">
<input type="text" name="AWB" size="10"><br>
<input type="submit" value="Submit"><br>
<input type="reset" value="Reset">
</body>
</html>