From fd2bd9ee0f39aca6e740f92318d2b148a0b65103 Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Tue, 12 Jun 2018 16:21:56 +0800 Subject: [PATCH] auth --- auth/linkedin/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth/linkedin/index.php b/auth/linkedin/index.php index 8fba479..f2e0293 100644 --- a/auth/linkedin/index.php +++ b/auth/linkedin/index.php @@ -28,12 +28,14 @@ $data = array( $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, true); -curl_setopt($ch, CURLOPT_POSTFIELDS, build_query($data)); +curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_TRANSFERTEXT, true); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_HEADER, false); $result = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); +echo '
';
 print_r($info);
-var_dump($result);
\ No newline at end of file
+print_r($result);
+echo '
'; \ No newline at end of file