cURL fails with timeout when posting to a location that redirects
|Reported by:||simsmaster||Owned by:||dd32|
I have the following code in my plugin:
$response = $request->request($fetch_url, array('method' => 'POST', 'body' => $post_data));
If $post_data == array(); everything works fine. But when I set something to that array, like this:
$post_data['tmp'] = 'abc';
$response is WP_Error with an timeout message.
I use PHP 5.3.1 on Windows (XAMPP)
Sounds to me like a bug...
Change History (21)
- Milestone changed from Awaiting Review to Future Release
- Summary changed from HTTP API fails with timeout, if POST-Headers are present to cURL fails with timeout when posting to a location that redirects