HTTP Header:
URL:http://www.ibinhub.com/data.php
方式:POSTcontent-type:application/x-www-form-urlencoded
HTTP Body:
key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&format=xxxxx
— - ———————————————————- - —— - ——
1 2 3 4 5 6 7
1:参数1,必须为小写;
2:“=”符号,前后不能有空格;
3:参数1的值,32位字符串,对应产品的API-Key,字母不区分大小写;
4:“&”符号,前后不能有空格;
5:参数2,必须为小写;
6:“=”符号,前后不能有空格;
7:参数2的值,在此可以设置系统HTTP应答body的格式,可设为json或者plaintext,不区分大小写;
POST /data.php HTTP1.1\r\n
Host:ibinhub.com\r\n
Accept:image/gif,image/x-xbitmap,image/jpeg,image/pjpeg,*/*\r\n
User-Agent: Mozilla/4.0 (compatible;MSTE 5.5;Windows 98)\r\n
Content-Length:48\r\n
Content-Type:application/x-www-form-urlencoded\r\n
Cache-Control:no-Cache\r\n
Connection:close\r\n
\r\n
key=6f1dcfdd95a2ff799258de4d2b41a3e3&format=json
plaintext:
ver=x.x.x.xjson:
{
"ver": "x.x.x.x",
"uri": "http://www.ibinhub.com/upload/xxxxxxxxxx.xxx",
"len": "xxx",
"hashtype": "xxx",
"hashvalue": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"info": "xxxxxxxx"
}
值
错误类型
1
key格式错误
2
format格式有误
3
系统中无该产品
4
系统中无该产品的APP
100
系统数据错误