Всем привет. Ребята, прошу Вашей помощи. Есть массив $Reee = json_encode($Reee1);:
{"id":2,"firstName":"\u0422\u0435\u0441\u0442","lastName":"\u0422\u0435\u0441\u0442","patronymic":"\u0422\u0435\u0441\u0442","sexId":101252,"birthDate":"1980-01-13","birthPlace":";dshflkjhsdf","birthCountryId":101042,"educationId":1011010,"highSchool":"","faculty":"","studyGraduationYear":"","studyForm":"","professionId":null,"maritalStatusId":101155,"dependent":false,"passport":{"id":5,"seria":"1231","no":"123123","extraNumber":null,"issueDate":"2018-10-01","closeDate":"2025-01-13","manager":"cascasca","subdivisionCode":"","complementaryDocTypeId":102124},"mobilePhone":"71111111111","mobileNumberOwner":false,"additionalPhone":"72222222222","homePhone":"","fax":"","rnn":"121212121212","snils":"","activitySubtypeId":null,"title":"","shortTitle":"","foreignTitle":"","registrationNumber":{"id":6,"seria":"","no":"","extraNumber":"","issueDate":null,"closeDate":null,"manager":"","subdivisionCode":"","complementaryDocTypeId":null},"director":"","accountant":"","employeesQty":0,"monthlyProfit":0,"legalForm":"","charteredCapital":"","oktmo":"","okved":"","okogu":"","okfs":"","okato":"","okopf":"","kpp":"","foreignFirmCode":"","foreignRegNumber":"","personRelatives":[{"id":4,"lastName":"dsv","firstName":"sd","patronymic":"","resident":false,"passport":{"id":43,"seria":"","no":"","extraNumber":null,"issueDate":null,"closeDate":null,"manager":"","subdivisionCode":"","complementaryDocTypeId":null},"rnn":"","telephone":"","email":"","workPlace":"","address":"","birthDate":null,"collateralRelId":102147,"verified":null,"comments":""}],"personIncomes":[],"personConstitutors":[],"personAccounts":[],"settlementDebts":[],"clientRiskStatus":[{"id":5,"insertDate":1539244552517,"userId":1027,"comments":"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0430\u0432\u0442. \u043f\u0440\u0438 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0438 \u0437\u0430\u044f\u0432\u043a\u0438: ID= 6, name=6","valueId":102184},{"id":8,"insertDate":1540396776913,"userId":1027,"comments":"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0430\u0432\u0442. \u043f\u0440\u0438 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0438 \u0437\u0430\u044f\u0432\u043a\u0438: ID= 8, name=8","valueId":102184},{"id":9,"insertDate":1540397890848,"userId":1027,"comments":"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0430\u0432\u0442. \u043f\u0440\u0438 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0438 \u0437\u0430\u044f\u0432\u043a\u0438: ID= 9, name=9","valueId":102184},{"id":10,"insertDate":1540398177463,"userId":1027,"comments":"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0430\u0432\u0442. \u043f\u0440\u0438 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0438 \u0437\u0430\u044f\u0432\u043a\u0438: ID= 10, name=10","valueId":102184},{"id":11,"insertDate":1540398590878,"userId":1027,"comments":"\u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0430\u0432\u0442. \u043f\u0440\u0438 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0438 \u0437\u0430\u044f\u0432\u043a\u0438: ID= 11, name=11","valueId":102184},{"id":2,"insertDate":1539067291379,"userId":1027,"comments":"\u041d\u043e\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442","valueId":102185}],"extraFields":{"name":"hello"},"beneficialOwners":[],"naturalperson":true,"businessman":false,"businessOwner":false,"clientAgent":0,"childrenCount":8,"children16Count":0,"childrenAge":"\u044b\u0444\u0432\u0444\u044b\u0432","dependents":0,"meanIncome":0,"additionalIncome":0,"rentIncome":0,"bonusIncome":0,"averageMonthlyCost":0,"loanPaymentExpense":0,"additionalExpense":0,"monthlyIncome2NDFL":23400,"alimony":0,"pensionTypeId":4,"monthlyPension":0,"managerId":101081,"complementaryDoc":{"id":2,"no":"","issueDate":null,"closeDate":null,"manager":"","complementaryDocTypeId":null},"migrationCard":{"id":7,"seria":"","no":"","extraNumber":null,"issueDate":null,"closeDate":null,"manager":"","subdivisionCode":"","complementaryDocTypeId":null},"livingDocument":{"id":8,"seria":"","no":"","extraNumber":null,"issueDate":null,"closeDate":null,"manager":"","subdivisionCode":"","complementaryDocTypeId":null},"oldPassport":"","workPlaceData":{"id":2,"workPlace":"\u041e\u041e\u041e \"\u0410\u043d\u0433\u0435\u043b\"","previousWorkPlace":"","workPosition":"\u042d\u0441\u043f\u0435\u0440\u0442","workStartDate":null,"nextPayDay":"2018-11-24","workAge":"180","inn":"2323423431412412","workPhone":"73333333333","employeeFirst":"","employeeSecond":"","employeePhone":"74444444444","employee2Phone":"","activityTypeId":null,"employmentRateId":null,"employmentTypeId":102341,"employeeDirectorPhone":"","comments":"","website":"","doNotWorkForReason":"","workPlaceTypeId":null,"workPositionTypeId":102553},"howYouKnowId":null,"headPositionId":null,"jurDocument":"","availabilityAuto":false,"availabilityPropertyInfo":"","email":"2@2.ru","pinCode":"","maidenName":"jhljkjg","changeName":false,"changeNameReason":"","oldFirstName":"","oldLastName":"","oldPatronymic":"","latinFirstName":"","latinLastName":"","latinPatronymic":"","additionalInfo":{"id":2,"haveYouAppliedToBanks":false,"enterName":"","conviction":false,"lawsuits":false,"alimony":false,"foreignPerson":false,"moneyOrigin":"\u044b\u0444\u0432\u0444\u044b\u0430\u0444\u044b\u0430","taxesDebt":false,"unsettledDebt":false,"financialDoc":"","businessReputationDoc":"vcsvsdbdsb","extremistCheckResult":"","extremistRelationCheckResult":"","regAddressExtremistCheckResult":"","publicOfficialInfo":"","moneyLaunderingTiesInfo":"","regAddressTerrorRiskCheckResult":"","ngoTiesInfo":"","businessRelationsPurposeInfo":"","formRegistrationDate":null,"criminalRiskLevelInfo":"","unfulfilledJudgment":false,"psychoOrNarcoRecord":false,"diminishedCapacityRecord":false,"creditDealRestriction":false,"pregnancy":false,"licensesInfo":"cadge hdslgkh ghdslgh","clientRepresentativeConfirmation":null,"riskStatusTypeId":null,"checkPlanDate":null,"propertyInfoList":[],"vehiclePropertyInfoList":[],"guaranteeInfoList":[],"formUpdateInfoList":[]},"clientType":"BORROWER","guid":null,"creationDate":"2018-10-09","personalAccount":"","subcode":"","roleId":null,"certificateTypeId":null,"certificate":null,"originalExperience":0,"joiningDate":"2018-10-09","exitDate":null,"leavingReasonId":null,"inRedList":false,"inBlackList":false,"bureauConsent":true,"bureauConsentDate":"2018-10-09","personalDataConsent":true,"personalDataConsentDate":"2018-10-09","comment":"","groupId":null,"inSMSList":true,"inEmailList":true,"cardNumber":"","validThruMonth":"","validThruYear":"","resident":true,"investor":false,"shareholder":false,"msp":false,"creditLimit":0,"creditMaxLimit":0,"rating":null,"ratingDate":null,"smsBlockHistory":null,"createUserId":1027,"createSubdivisionId":101791,"addressData":{"id":101261198,"countryId":101060,"fiasId":"","fullAddressText":"","fiasChainText":null,"houseNo":"","blockNo":"","buildingNo":"","apartmentNo":"","telephone":"","postalCode":"","regDate":null,"housingType":"Lives with parents\/ relatives","metroStation":"","regionName":"Western- Kazakshtani region","localityName":"Aktobe","streetName":"","oldAddressText":""},"registrationAddressData":{"id":101261199,"countryId":101060,"fiasId":"","fullAddressText":"","fiasChainText":null,"houseNo":"","blockNo":"","buildingNo":"","apartmentNo":"","telephone":"","postalCode":"","regDate":null,"housingType":"At employer's cost","metroStation":"","regionName":"East- Kazakhstan region","localityName":"Atyrau","streetName":"","oldAddressText":""},"businessAddressData":{"id":101261200,"countryId":101042,"fiasId":"","fullAddressText":"","fiasChainText":null,"houseNo":"","blockNo":"","buildingNo":"","apartmentNo":"","telephone":"","postalCode":"","regDate":null,"housingType":"","metroStation":"","regionName":null,"localityName":null,"streetName":"","oldAddressText":""},"addresses":null}
Пытаюсь его отправить через PUT, но каждый раз получаю ошибку
Error #:transfer closed with outstanding read data remaining
запрос следующий:
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "Тут указываю url запроса",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => $Reee,
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"Postman-Token: Токен",
"bsauth: ключ",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
Подскажите, пожалуйста, что делаю не так?
Виртуальный выделенный сервер (VDS) становится отличным выбором
При нажатии мышкой на PushButton текст Label должен меняться
Что такое "static initialization order fiasco" (SIOF)?