我正在使用下面的代码进行http post,但是因为moduAsHex参数长度很长而失败了。
可以传递的数据长度是否有任何限制
.when('/xyz/abc/step2', {
templateUrl: partial('abc.html'),
controller: 'abcCtrl',
resolve: {
cardTypeDetails: ['$http','$rootScope', function ($http,$rootScope) {
return $http.post(appContext('abc.json'),{"mobilePhoneNumbers":null,"personalCardsOfferedForSelection":[{"nickName":"test card","cardNumberStarred":"**** **** **** 4340","cardNumber":"1223434343434340"}],"selectedCardNumber":null,"modulusAsHex":"da382df866da946c201009a30ec8f74bf1f8024e574ff41466dbe16fb97c7d6fecb3b08cad007f1203c45f34b23a83c3e16a20aded9a86ad2e89035c704e0e1ae9c10e7259739366b1688a42f05fc733b5f5be6b033d06d7cad3e8020fc1636efb4d4721e424b56e0e84f28b18261bbc8b307eeaf31624b9e8b0a88c3e41520a63702e78da237ace430a7a9ba54de6c300dabdb495287b8d6b3134174d3f68bd98d0bd4ade19e8eabf217389acae23409f59574684dc010e37c450d1a8af7d5c0af2cab5ec7da2165990b4ad6aa3c53fc27012ab5a707cffd351cbedea0ea9a78bbd63bd73ff5b0accd7dc71dbeae5b85b26ae0d24948b7c8c1b98429942a53f"
});
}]
}
});
模数AsHex就是这么长,如果我删除这个参数,它可以正常工作
"modulusAsHex":"da382df866da946c201009a30ec8f74bf1f8024e574ff41466dbe16fb97c7d6fecb3b08cad007f1203c45f34b23a83c3e16a20aded9a86ad2e89035c704e0e1ae9c10e7259739366b1688a42f05fc733b5f5be6b033d06d7cad3e8020fc1636efb4d4721e424b56e0e84f28b18261bbc8b307eeaf31624b9e8b0a88c3e41520a63702e78da237ace430a7a9ba54de6c300dabdb495287b8d6b3134174d3f68bd98d0bd4ade19e8eabf217389acae23409f59574684dc010e37c450d1a8af7d5c0af2cab5ec7da2165990b4ad6aa3c53fc27012ab5a707cffd351cbedea0ea9a78bbd63bd73ff5b0accd7dc71dbeae5b85b26ae0d24948b7c8c1b98429942a53f"