Curl Response Refactoring
- refactored Network::post() - replaced every Network::post() execution with the new Curl container
This commit is contained in:
parent
2dec8895a9
commit
7c73e8634c
10 changed files with 24 additions and 25 deletions
|
@ -221,7 +221,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
|||
*
|
||||
*/
|
||||
|
||||
$res = Network::post($dfrn_confirm, $params, null, $redirects, 120);
|
||||
$res = Network::post($dfrn_confirm, $params, null, $redirects, 120)->getBody();
|
||||
|
||||
logger(' Confirm: received data: ' . $res, LOGGER_DATA);
|
||||
|
||||
|
|
|
@ -502,7 +502,7 @@ function dfrn_poll_content(App $a)
|
|||
'dfrn_version' => DFRN_PROTOCOL_VERSION,
|
||||
'challenge' => $challenge,
|
||||
'sec' => $sec
|
||||
]);
|
||||
])->getBody();
|
||||
}
|
||||
|
||||
$profile = ((DBA::isResult($r) && $r[0]['nickname']) ? $r[0]['nickname'] : $nickname);
|
||||
|
|
|
@ -59,9 +59,9 @@ function match_content(App $a)
|
|||
}
|
||||
|
||||
if (strlen(Config::get('system', 'directory'))) {
|
||||
$x = Network::post(get_server().'/msearch', $params);
|
||||
$x = Network::post(get_server().'/msearch', $params)->getBody();
|
||||
} else {
|
||||
$x = Network::post(System::baseUrl() . '/msearch', $params);
|
||||
$x = Network::post(System::baseUrl() . '/msearch', $params)->getBody();
|
||||
}
|
||||
|
||||
$j = json_decode($x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue