cURL – How to send and fetch data in WordPress

wp_remote_get()
and wp_remote_post() and wp_remote_request() should answer on your questions.This is best practice for WordPress.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)