Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 1.304 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href=./style.css>
</head>
<body>
<p>POST请求 <a href="http://172.16.102.208:8089/wiapi/score?leaderboard_id=1&amp;score=36&amp;app_key=66">http://172.16.102.208:8089/wiapi/score?leaderboard_id=1&amp;score=36&amp;app_key=66</a></p>
<p>目的1:通过脚本发送post请求。
答案: curl -d &quot;leaderboard<em>id=7778a8143f111272&amp;score=19&amp;app</em>key=8d49f16fe034b98b&amp;<em>test</em>user=test01&quot; &quot;<a href="http://172.16.102.208:8089/wiapi/score">http://172.16.102.208:8089/wiapi/score</a>&quot;</p>
<p>目的2:通过脚本发送post请求,顺便附带文本数据,比如通过&quot;浏览&quot;选择本地的card.txt并上传发送post请求
答案: curl -F &quot;blob=@card.txt;type=text/plain&quot; &quot;<a href="http://172.16.102.208:8089/wiapi/score?leaderboard_id=7778a8143f111272&amp;score=40&amp;app_key=8d49f16fe034b98b&amp;_test_user=test01">http://172.16.102.208:8089/wiapi/score?leaderboard_id=7778a8143f111272&amp;score=40&amp;app_key=8d49f16fe034b98b&amp;_test_user=test01</a>&quot; </p>
<p>其中-F 为带文件的形式发送post请求, blob为文本框中的name元素对应的属性值。<type="text" name="blob"></p>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.