Title: wp_remote_get responding 404
Last modified: August 18, 2020

---

# wp_remote_get responding 404

 *  [M. Ali Saleem](https://wordpress.org/support/users/zinger252/)
 * (@zinger252)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp_remote_get-responding-404/)
 * [https://developer.wordpress.org/plugins/http-api/](https://developer.wordpress.org/plugins/http-api/)
   
   wp_remote_get responding 404
 *     ```
       $args = array(
       'timeout'     => 30,
       'httpversion' => '1.1',
       'method' => 'GET',
       'redirection' => 5,
       'blocking' => true,
       'sslverify'=> false,
       'body' => array('api'=>'SOMEAPIKEY','url'=>'REQUIRED_BY_SERVICE','formal'=>'json'),
       'headers' => array(
       'Content-Type' => 'application/json'
       ),
       'cookies' => array(),
   
       );
       wp_remote_get('https://MYSITE/api/',$args );
       ```
   
 * The same request works fine with CURL and even directly on browser.
 * CURL CODE:
 *     ```
       $curl = curl_init();
       $url = "https://MYSITE/api/?api=SOMEAPIKEY&url=REQUIRED_BY_SERVICE&format=json";
       		curl_setopt_array($curl, array(
       		CURLOPT_RETURNTRANSFER => 1,
       		CURLOPT_SSL_VERIFYPEER => 0,
       		CURLOPT_SSL_VERIFYHOST => 0,
       		CURLOPT_URL => $url
       		));
       		$Response = curl_exec($curl);
       		curl_close($curl);
       		return ($Response);
       ```
   
 * Anyone else facing issue when using wp_remote_get? Any ideas?

The topic ‘wp_remote_get responding 404’ is closed to new replies.

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)
 * [http api](https://wordpress.org/support/topic-tag/http-api/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [M. Ali Saleem](https://wordpress.org/support/users/zinger252/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/wp_remote_get-responding-404/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
