Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. curl -X POST -d "grant_type=password&username=test30&password=123456" -u"AD2fFTuUmce1jsnMHmCEPGkY3jDROjAAoNPkDyuc:Ve3AOBHsl7oFopZyWHZAwilEOIsblU8CPmU6v0wXMBRUn6UyoF1eM4YlCD94RMtietW0siIlLKarrowJmKUltBHBFt1xGhuCjQrTmpZeX40l7187E9U3V4xDBKtNAPcI" http://103.200.31.xx:8000/o/token/
  2.  
  3. {"token_type": "Bearer", "expires_in": 36000, "refresh_token": "0ULYiq5QpS3V5FjgGTygeoZZ5gO0Yf", "scope": "read write groups", "access_token": "SgFdP7rPBdoYoUG9hmjS3HvlcILFF6"}
  4.  
  5. $request = Requests::post('http://103.200.31.xx:8000/o/token', [
  6. // headers
  7. 'Accept'=>'application/json'
  8. ], ['username'=>'test30', 'password'=>'123456'], [
  9. // options
  10. 'auth' => new Requests_Auth_Basic(['AD2fFTuUmce1jsnMHmCEPGkY3jDROjAAoNPkDyuc', 'Ve3AOBHsl7oFopZyWHZAwilEOIsblU8CPmU6v0wXMBRUn6UyoF1eM4YlCD94RMtietW0siIlLKarrowJmKUltBHBFt1xGhuCjQrTmpZeX40l7187E9U3V4xDBKtNAPcI'])
  11. ]);
  12.  
  13. return $request;
  14.  
  15. Fri Jul 20 11:56:11.450296 2018] [proxy_fcgi:error] [pid 5122:tid 139663067014912] [client 118.113.136.138:19584] AH01071: Got error 'PHP message: [WHMCS Application] ERROR: Requests_Exception: cURL error 28: Connection timed out after 10001 milliseconds in /usr/local/httpd/htdocs/whmcs/qi_cloud/libs/Requests/library/Requests/Transport/cURL.php:422 Stack trace: #0 /usr/local/httpd/htdocs/whmcs/qi_cloud/libs/Requests/library/Requests/Transport/cURL.php(177): Requests_Transport_cURL->process_response('', Array) #1 /usr/local/httpd/htdocs/whmcs/qi_cloud/libs/Requests/library/Requests.php(379): Requests_Transport_cURL->request('http://103.200....', Array, Array, Array) #2 /usr/local/httpd/htdocs/whmcs/qi_cloud/libs/Requests/library/Requests.php(268): Requests::request('http://103.200....', Array, Array, 'POST', Array) #3 /usr/local/httpd/htdocs/whmcs/qi_cloud/utils/utils.php(35): Requests::post('http://103.200....', Array, Array, Array) #4 /usr/local/httpd/htdocs/whmcs/qicloud_dedicate_servers.php(88): fetch_qicloud_access_tokens(Array) #5 {main} {"exception":"[object] (Requests_Exception(code: 0): cURL error 28: Connection timed out after ...n', referer: http://www.example.net/qservers.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement