请求头transit-id: http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/transit-id?userId=00000000&showType=sample
http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/transit-id?userId=00000000
调用方式: GET
解密地址:http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/decryptor?showType=sample
http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/decryptor
调用方式: POST
BODY参数:data=待解密的字符串
指数转换:http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/index2value
调用方式: POST
BODY参数:data[]=[待解密的指数,待解密的指数] eg:data[]:[2341324,3332,43]
1、python调用方式:
import urllib
import urllib2
url = 'http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/decryptor?showType=sample'
values = {
'data' : '8B02839E59200AEF865A28031D9D0924AB91D2C6E723B1D524FFEA85A09AF7F73736C96BADC16E5651E2ACA069526A5F7F51B44DE82B6F042A44F856715FB96246B7D8E26F263096234D7B7503FCAE03B32A65744191B5F9A1BA6B67E4FAD34F56D8C227399B388CE72E311222AC61116D6F2E22DEAE5175BB8798BF5E2061EC18DB90A0EF6EE070F31479EFE97AC97581C5303879635266D61F5DDE9302F8B62E319441D0545A22F5D471170709AD5B00219AC5528D100E09F55039F3B46A9266D2889888C9D1E7DBF229D293542FFF2A142B6EF17732A94B0CF4EA35BABB900E74BDC9980F8293A1F82487009E7A2E8784A25C3B53BFEA9CEA6CFE8AA741144F9035A35F367D65941DE58D2C40FEBF8F07B5FF67720BF87E53A895ECA5351B512BEC2E321ED72BD4342A05D73E815B54B18A90783096A368EA9F8E3F549CD1C00D62131E1EAFDCDA8E345385152E434B27BDDDB5F3D33A144CE75BCD9BB96132F2F3131E68D8985E591A3C43CC66AC799A142702FC5EB537BFEA86EAB1ABBC2E952BDF587A805EDD956C9C3A1FB92ADAE065BD90BCE8C8367886A9C56E6E36CC0E401C32F4C9F916A04945751603E83B96434B8C155C468C81B5FD5FD03D369096EE30AD9469DA1FCACD1906F0155D79604A0A99896202D5737B99C9AAC2159D8942825DCC7DF75F5E98212E1C254120D28D5203536BF5020AED4B3776D2D7BF9225194A7A818C5164634CB3070F1A6AF4EE9E5293446F6F9D7E3F841349B8983E5E503BC1BEA716FE951ECC6AC975B3F19C79C9BFA2F0549FD27DDCEB08C1F6146E872A78F045BEA503739E985002FB5F9340C7A3DD2AA4E004D2F2DA4A570BC472CB0DCDC3BB0549054007886FA22770B5BB4F8384D1282AD176D38C1ABCC2F2AF475C5F8BB8923331C0A7B822DE9385FBE2B3DEE4BC02C9F733354DCCC0304D769C321E1E086318DDBE840BA001764BBE413F4E42D27AC6CB7125E652E8EAA05DDAD132DD318A3264DCAF3D68B9583FE573A24EB049BB2A975F5E642263FDCDE2264A8DBDBD9EBF1DCAE3C5ADED238D1ED7F83A108E1DD19E62BBB642BA2FA3AC0A1A2CC87506B4E4046BD881EDF2C219318ECB9686F2E76D346F7732E6A3B554FC15AB474809057963E008691CB937759271BCBBA89C24E18DFBD7B9593F1C1C678E4C1308A95FB4C378ABF10214FF9990F9E0E941C8B473108C05B890591626F6C5155131B5E0BCA8A690F9487485A7375E4D4D54C00F71AC736E848806817295894D3500C86E563844937C87BB2B6CEA4A35423A1408175A92B81E2563404EDF051D50452741235DDA54F3D1E1E2C03C4378F52E12B6804035D52BD22A51880B3CC5CB8CA533D09E98D67D3EF3001EAFFB7814DDC537BB7F140CCFC765D3E9F1ACCC5210E3AD3B3322807549375930787B0CD500A8D4F16BD73F65907C23F8C9685E98C8503B98D0113C127CEE1847B45382885BF182A21FEB80DAF34672DCA07DF1F932496B3F13E6145E4EA36CB1C3C71D5D375C0CFD9398147681410724B65B1C27EBE6633AE4C9922959C8B2AFD46B11775DE97B9D04E807F4891D3440DD00052B8EB4D8F221071CD1F19AFF602F912F02F44A6005A2BFB84A8C7C799BB7C542C35A7551B6EB745AF78E752244744BCA50EA5D5FFC3769474CE117C38B7F8BF558ECDDB9140115B14066'
}
data = urllib.urlencode(values) # 编码工作
req = urllib2.Request(url, data) # 发送请求同时传data表单
response = urllib2.urlopen(req) #接受反馈的信息
the_page = response.read() #读取反馈的内容
url='http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/decryptor?showType=sample'
values = {
'data' : '8B02839E59200AEF865A28031D9D0924AB91D2C6E723B1D524FFEA85A09AF7F73736C96BADC16E5651E2ACA069526A5F7F51B44DE82B6F042A44F856715FB96246B7D8E26F263096234D7B7503FCAE03B32A65744191B5F9A1BA6B67E4FAD34F56D8C227399B388CE72E311222AC61116D6F2E22DEAE5175BB8798BF5E2061EC18DB90A0EF6EE070F31479EFE97AC97581C5303879635266D61F5DDE9302F8B62E319441D0545A22F5D471170709AD5B00219AC5528D100E09F55039F3B46A9266D2889888C9D1E7DBF229D293542FFF2A142B6EF17732A94B0CF4EA35BABB900E74BDC9980F8293A1F82487009E7A2E8784A25C3B53BFEA9CEA6CFE8AA741144F9035A35F367D65941DE58D2C40FEBF8F07B5FF67720BF87E53A895ECA5351B512BEC2E321ED72BD4342A05D73E815B54B18A90783096A368EA9F8E3F549CD1C00D62131E1EAFDCDA8E345385152E434B27BDDDB5F3D33A144CE75BCD9BB96132F2F3131E68D8985E591A3C43CC66AC799A142702FC5EB537BFEA86EAB1ABBC2E952BDF587A805EDD956C9C3A1FB92ADAE065BD90BCE8C8367886A9C56E6E36CC0E401C32F4C9F916A04945751603E83B96434B8C155C468C81B5FD5FD03D369096EE30AD9469DA1FCACD1906F0155D79604A0A99896202D5737B99C9AAC2159D8942825DCC7DF75F5E98212E1C254120D28D5203536BF5020AED4B3776D2D7BF9225194A7A818C5164634CB3070F1A6AF4EE9E5293446F6F9D7E3F841349B8983E5E503BC1BEA716FE951ECC6AC975B3F19C79C9BFA2F0549FD27DDCEB08C1F6146E872A78F045BEA503739E985002FB5F9340C7A3DD2AA4E004D2F2DA4A570BC472CB0DCDC3BB0549054007886FA22770B5BB4F8384D1282AD176D38C1ABCC2F2AF475C5F8BB8923331C0A7B822DE9385FBE2B3DEE4BC02C9F733354DCCC0304D769C321E1E086318DDBE840BA001764BBE413F4E42D27AC6CB7125E652E8EAA05DDAD132DD318A3264DCAF3D68B9583FE573A24EB049BB2A975F5E642263FDCDE2264A8DBDBD9EBF1DCAE3C5ADED238D1ED7F83A108E1DD19E62BBB642BA2FA3AC0A1A2CC87506B4E4046BD881EDF2C219318ECB9686F2E76D346F7732E6A3B554FC15AB474809057963E008691CB937759271BCBBA89C24E18DFBD7B9593F1C1C678E4C1308A95FB4C378ABF10214FF9990F9E0E941C8B473108C05B890591626F6C5155131B5E0BCA8A690F9487485A7375E4D4D54C00F71AC736E848806817295894D3500C86E563844937C87BB2B6CEA4A35423A1408175A92B81E2563404EDF051D50452741235DDA54F3D1E1E2C03C4378F52E12B6804035D52BD22A51880B3CC5CB8CA533D09E98D67D3EF3001EAFFB7814DDC537BB7F140CCFC765D3E9F1ACCC5210E3AD3B3322807549375930787B0CD500A8D4F16BD73F65907C23F8C9685E98C8503B98D0113C127CEE1847B45382885BF182A21FEB80DAF34672DCA07DF1F932496B3F13E6145E4EA36CB1C3C71D5D375C0CFD9398147681410724B65B1C27EBE6633AE4C9922959C8B2AFD46B11775DE97B9D04E807F4891D3440DD00052B8EB4D8F221071CD1F19AFF602F912F02F44A6005A2BFB84A8C7C799BB7C542C35A7551B6EB745AF78E752244744BCA50EA5D5FFC3769474CE117C38B7F8BF558ECDDB9140115B14066'
}
data = urllib.urlencode(values) # 编码工作
page=requests.post(url=url,data=data).content.decode('utf-8')
print(page)
2、html ajax调用:
methods:{
post:function(){
//发送 post 请求
this.$http.post('http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/decryptor?showType=sample',{data:"8B02839E59200AEF865A28031D9D0924AB91D2C6E723B1D524FFEA85A09AF7F73736C96BADC16E5651E2ACA069526A5F7F51B44DE82B6F042A44F856715FB96246B7D8E26F263096234D7B7503FCAE03B32A65744191B5F9A1BA6B67E4FAD34F56D8C227399B388CE72E311222AC61116D6F2E22DEAE5175BB8798BF5E2061EC18DB90A0EF6EE070F31479EFE97AC97581C5303879635266D61F5DDE9302F8B62E319441D0545A22F5D471170709AD5B00219AC5528D100E09F55039F3B46A9266D2889888C9D1E7DBF229D293542FFF2A142B6EF17732A94B0CF4EA35BABB900E74BDC9980F8293A1F82487009E7A2E8784A25C3B53BFEA9CEA6CFE8AA741144F9035A35F367D65941DE58D2C40FEBF8F07B5FF67720BF87E53A895ECA5351B512BEC2E321ED72BD4342A05D73E815B54B18A90783096A368EA9F8E3F549CD1C00D62131E1EAFDCDA8E345385152E434B27BDDDB5F3D33A144CE75BCD9BB96132F2F3131E68D8985E591A3C43CC66AC799A142702FC5EB537BFEA86EAB1ABBC2E952BDF587A805EDD956C9C3A1FB92ADAE065BD90BCE8C8367886A9C56E6E36CC0E401C32F4C9F916A04945751603E83B96434B8C155C468C81B5FD5FD03D369096EE30AD9469DA1FCACD1906F0155D79604A0A99896202D5737B99C9AAC2159D8942825DCC7DF75F5E98212E1C254120D28D5203536BF5020AED4B3776D2D7BF9225194A7A818C5164634CB3070F1A6AF4EE9E5293446F6F9D7E3F841349B8983E5E503BC1BEA716FE951ECC6AC975B3F19C79C9BFA2F0549FD27DDCEB08C1F6146E872A78F045BEA503739E985002FB5F9340C7A3DD2AA4E004D2F2DA4A570BC472CB0DCDC3BB0549054007886FA22770B5BB4F8384D1282AD176D38C1ABCC2F2AF475C5F8BB8923331C0A7B822DE9385FBE2B3DEE4BC02C9F733354DCCC0304D769C321E1E086318DDBE840BA001764BBE413F4E42D27AC6CB7125E652E8EAA05DDAD132DD318A3264DCAF3D68B9583FE573A24EB049BB2A975F5E642263FDCDE2264A8DBDBD9EBF1DCAE3C5ADED238D1ED7F83A108E1DD19E62BBB642BA2FA3AC0A1A2CC87506B4E4046BD881EDF2C219318ECB9686F2E76D346F7732E6A3B554FC15AB474809057963E008691CB937759271BCBBA89C24E18DFBD7B9593F1C1C678E4C1308A95FB4C378ABF10214FF9990F9E0E941C8B473108C05B890591626F6C5155131B5E0BCA8A690F9487485A7375E4D4D54C00F71AC736E848806817295894D3500C86E563844937C87BB2B6CEA4A35423A1408175A92B81E2563404EDF051D50452741235DDA54F3D1E1E2C03C4378F52E12B6804035D52BD22A51880B3CC5CB8CA533D09E98D67D3EF3001EAFFB7814DDC537BB7F140CCFC765D3E9F1ACCC5210E3AD3B3322807549375930787B0CD500A8D4F16BD73F65907C23F8C9685E98C8503B98D0113C127CEE1847B45382885BF182A21FEB80DAF34672DCA07DF1F932496B3F13E6145E4EA36CB1C3C71D5D375C0CFD9398147681410724B65B1C27EBE6633AE4C9922959C8B2AFD46B11775DE97B9D04E807F4891D3440DD00052B8EB4D8F221071CD1F19AFF602F912F02F44A6005A2BFB84A8C7C799BB7C542C35A7551B6EB745AF78E752244744BCA50EA5D5FFC3769474CE117C38B7F8BF558ECDDB9140115B14066"},{emulateJSON:true}).then(function(res){
document.write(res.body);
},function(res){
console.log(res.status);
});
}
}
3、vue.js调用
post:function(){
//发送 post 请求
this.$http.post('http://localhost:11898/ajaxApi.ashx/@/dontlogin/sycm/index2value',{data[]:[2341324,3332,43]},{emulateJSON:true}).then(function(res){
document.write(res.body);
console.log(res.body);
},function(res){
console.log(res.status);
});
}
4、.net调用
int[] myArray = { 1111, 222, 333, 444 };
var BaseRequest = new JavaScriptSerializer().Serialize(new { data = myArray });
string[] myArray2 = { "1111", "222", "333", "444"};
var BaseRequest2 = new JavaScriptSerializer().Serialize(new { data = myArray2 });
byte[] request_body = Encoding.UTF8.GetBytes(( BaseRequest ));//System.Web.HttpUtility.UrlEncode
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(string.Format($"http://app.miiow.com.cn:8181/ajaxApi.ashx/@/dontlogin/sycm/index2value"));
request.Method = "post";
request.ContentLength = request_body.Length;
Stream request_stream = request.GetRequestStream();
request_stream.Write(request_body, 0, request_body.Length);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream response_stream = response.GetResponseStream();
int count = (int)response.ContentLength;
int offset = 0;
byte[] buf = new byte[count];
while (count > 0) //读取返回数据
{
int n = response_stream.Read(buf, offset, count);
if (n == 0) break;
count -= n;
offset += n;
}
request_result = Encoding.UTF8.GetString(buf);
测试工具: http://app.miiow.com.cn:8181/Sycm/Tools.html
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/chenxiaotao22/article/details/88712846